BookmarkSubscribeRSS Feed
Ronein
Onyx | Level 15

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?

 

 

 

 

 

2 REPLIES 2
PaigeMiller
Diamond | Level 26

Joint Test and Type 3 tests

 

If you want the Type 3 tests in descending order, you output them to a data set and then sort the data set.

 

--
Paige Miller
Ksharp
Super User

"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;

Ksharp_0-1734158756715.png

 

 

 

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

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 373 views
  • 0 likes
  • 3 in conversation