Programming the statistical procedures from SAS

proc GENMOD vs GLM

Accepted Solution Solved
Reply
Occasional Learner
Posts: 1
Accepted Solution

proc GENMOD vs GLM

Could you please explain why I'm getting different results when I ran this two procedures?

title2 "Multiple linear regression using Proc Genmod categorical smoking covariate";

proc genmod data=included2 ;

  weight MEC6YR;

  class smoker RIAGENDR RIDRETH1;

  model LBDVID=smoker RIAGENDR RIDAGEYR RIDRETH1;

run;

title2 "Multiple linear regression using Proc GLM categorical smoking covariate";

proc glm data=included2 ;

  weight MEC6YR;

  class smoker RIAGENDR RIDRETH1;

  model LBDVID=smoker RIAGENDR RIDAGEYR RIDRETH1/ solution;

run;


Accepted Solutions
Solution
‎07-05-2017 07:46 AM
Regular Contributor
Posts: 152

Re: proc GENMOD vs GLM

PROC GENMOD uses likelihood ratios rather than the sums of squares used in PROC GLM.  Specify in the MODEL statement of PROC GENMOD the options, WALD, TYPE3, and TYPE1.  The WEIGHT statements of the two procedures also perform different functions (cf., the documentation).

View solution in original post


All Replies
Solution
‎07-05-2017 07:46 AM
Regular Contributor
Posts: 152

Re: proc GENMOD vs GLM

PROC GENMOD uses likelihood ratios rather than the sums of squares used in PROC GLM.  Specify in the MODEL statement of PROC GENMOD the options, WALD, TYPE3, and TYPE1.  The WEIGHT statements of the two procedures also perform different functions (cf., the documentation).

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 639 views
  • 1 like
  • 2 in conversation