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;
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).
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).
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.