Hello
I run logitic regression.(Credit score model)
I want to display in the ODS destinations only one table called -wald statsitics for type3 analysis.
The code I run first was
proc genmod data=panel namelen=60 descending ;
ods output parameterestimates=want;
class X W Z R;
model TARGET=X W Z R/ dist=binomial link=logit type3 wald ;
output out=want
p=P_BAD xbeta=logit;
ODS SELECT Type3;
run;
But I had a warning and I changed it to (Instead ODS SELECT Type3 I wrote ODS SELECT ModelANova)
proc genmod data=panel namelen=60 descending ;
ods output parameterestimates=want;
class X W Z R;
model TARGET=X W Z R/ dist=binomial link=logit type3 wald ;
output out=want
p=P_BAD xbeta=logit;
ODS SELECT ModelANOVA;
run;
Note-
The warning was -
WARNING: The Genmod output formerly named Type3 is now named ModelANOVA. Please use the new output name in the future; the old
syntax might not work in the next release.
My question-
How can I see the printed table wald statsitics for type3 with ordered rows by Chi-Square descending order?
What does the name type3 mean? is it a word in statistics type3 or it is the defintion in SAS only?
If you want the Type 3 tests in descending order, you output them to a data set and then sort the data set.
"How can I see the printed table wald statsitics for type3 with ordered rows by Chi-Square descending order?"
Save it and order it .
proc genmod data=sashelp.heart(obs=1000) namelen=60 descending ;
ods output ModelANOVA=ModelANOVA;
class sex;
model status=sex height weight/ dist=binomial link=logit type3 wald ;
output out=want
p=P_BAD xbeta=logit;
run;
proc sort data=ModelANOVA;
by descending ChiSq;
run;
proc print;run;
"What does the name type3 mean? is it a word in statistics type3 or it is the defintion in SAS only?"
It is a word in statistics theory. it is square sum of each independent varible for the model, there are four type SS in statistic theory (TYPEI TYPEII TYPEIII TYPEIV).
It is used to judge the independent variable is signifant or not(a.k.a the importance of independent variables for model).
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.