BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Polina_Utah
Calcite | Level 5

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;

1 ACCEPTED SOLUTION

Accepted Solutions
1zmm
Quartz | Level 8

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

1 REPLY 1
1zmm
Quartz | Level 8

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).

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

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