I am using HPLOGISTIC and HPREG to analyze a model with thousands of fixed effects as control variables. They are not the independent variables that I am interested in. Now the output has thousands of rows in the estimated coefficient report table. Is there anyway to prevent these fixed effects from showing up?
A sample code would go as follows, where "fixed" has thousands of levels. I am only interested in the coefficients of x1 and x2, but not fixed.
PROC HPREG data=test;
CLASS fixed;
MODEL y = x1 x2 fixed;
RUN;
PROC HPREG data=test;
CLASS fixed;
MODEL y = x1 x2 fixed;
ods exclude ParameterEstimates;
ods output ParameterEstimates=PE;
RUN;
proc sgrender data=PE template=HPSTAT.HPREG.ParameterEstimates;
where Effect ^= "fixed";
run;
PROC HPREG data=test;
CLASS fixed;
MODEL y = x1 x2 fixed;
ods exclude ParameterEstimates;
ods output ParameterEstimates=PE;
RUN;
proc sgrender data=PE template=HPSTAT.HPREG.ParameterEstimates;
where Effect ^= "fixed";
run;
I wrote a short blog post that describes, in general, how to use a built-in ODS template to display a table of values:
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Select SAS Training centers are offering in-person courses. View upcoming courses for: