Desktop productivity for business analysts and programmers

Proc glm - Coefficients

Reply
N/A
Posts: 1

Proc glm - Coefficients

Hello, I am very new to SAS and am currently trying to translate some Stata code, including a regression. I am able to successfully get the same coefficients in the output but I haven't been able to save them. This is the code I am using:

proc glm;

absorb ID;

model kw = i txi / solution noint;

run;

quit;

I haven't been able to use the OUTPUT command (it says this can not be used with absorb) and OUTSTAT doesn't contain the coefficients. OUTEST doesn't seem to work with Proc glm either. I just need to save the coefficients since I'll be running this multiple times on large datasets.

Any help would be greatly appreciated!

Trusted Advisor
Posts: 2,114

Re: Proc glm - Coefficients

You can output the coefficients using the ODS capabilities.  See the ODS Output section of the SAS documentation for your version of PROC GLM.  In 12.1, the table is named ParameterEstimates.

Super User
Posts: 9,874

Re: Proc glm - Coefficients

ods trace on;
proc glm data=sashelp.class;
class sex;
 model weight=sex height;
ods output FitStatistics=want1 OverallANOVA=want2;
run;
ods trace off;

Ksharp

Ask a Question
Discussion stats
  • 2 replies
  • 2774 views
  • 0 likes
  • 3 in conversation