Desktop productivity for business analysts and programmers

Proc glm - Coefficients

Not applicable
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;



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,127

Re: Proc glm - Coefficients

Posted in reply to StataUser

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: 10,850

Re: Proc glm - Coefficients

Posted in reply to StataUser
ods trace on;
proc glm data=sashelp.class;
class sex;
 model weight=sex height;
ods output FitStatistics=want1 OverallANOVA=want2;
ods trace off;


Ask a Question
Discussion stats
  • 2 replies
  • 3 in conversation