BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
UGAstudent
Calcite | Level 5
proc genmod data= ugastudent_data;
class cd4_levels /param=glm;
model  Factor1 =  cd4_levels;  
run;

I want to know if Im able to generate f-statistics or r-squared values like i am able to do in a PROC Reg statement? As of right now, Im only getting wald statistics. 

1 ACCEPTED SOLUTION

Accepted Solutions
StatDave
SAS Super FREQ

Since the model you specify is a simple ANOVA model, you can fit it using least squares estimation in PROC GLM and get both R-square and F statistics. GENMOD uses maximum likelihood estimation to fit models in the class of generalized linear models, which yours is one such. GENMOD normally produces chi-square tests for the model effects. However, F tests can be generated if you specify one of SCALE=PEARSON or SCALE=DEVIANCE options as well as either the TYPE3 or TYPE1 option. These options are specified in the MODEL statement. R-square for generalized linear models is computed differently and does not have the simple interpretation that it has in models fit using least squares. However, there have been various R-square-like measures proposed for generalized linear models and one of them is available from this macro

View solution in original post

1 REPLY 1
StatDave
SAS Super FREQ

Since the model you specify is a simple ANOVA model, you can fit it using least squares estimation in PROC GLM and get both R-square and F statistics. GENMOD uses maximum likelihood estimation to fit models in the class of generalized linear models, which yours is one such. GENMOD normally produces chi-square tests for the model effects. However, F tests can be generated if you specify one of SCALE=PEARSON or SCALE=DEVIANCE options as well as either the TYPE3 or TYPE1 option. These options are specified in the MODEL statement. R-square for generalized linear models is computed differently and does not have the simple interpretation that it has in models fit using least squares. However, there have been various R-square-like measures proposed for generalized linear models and one of them is available from this macro

sas-innovate-2024.png

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.

 

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
  • 3143 views
  • 1 like
  • 2 in conversation