BookmarkSubscribeRSS Feed
abarnett313
Calcite | Level 5

Greetings,

 

I am trying to obtain standardized beta coefficients for the categorical variables in my model in Proc Logistic. I've used the STB option in the Model statement, but it only produces beta coefficients for the continuous variables. Is there a way to obtain these estimates for the categorical variables, too? (Or do such estimates not exist for categorical variables?) Any help would be greatly appreciated. I'm using SAS Enterprise Guide v 4.3.


Thanks!

Andrew

8 REPLIES 8
stat_sas
Ammonite | Level 13

Hi,

 

Why standardized beta coefficients for the categorical variables?

Reeza
Super User

What version of SAS do you have, not EG. 

 

You can run the following to see your SAS/STAT version which is the most important thing:

proc product_status;run;

Note that I could not replicate your issue. I ran the second example in the PROC LOGISTIC documentation with the STB option and I received parameter estimates for all variables, including the categorical variables. 

 


@abarnett313 wrote:

Greetings,

 

I am trying to obtain standardized beta coefficients for the categorical variables in my model in Proc Logistic. I've used the STB option in the Model statement, but it only produces beta coefficients for the continuous variables. Is there a way to obtain these estimates for the categorical variables, too? (Or do such estimates not exist for categorical variables?) Any help would be greatly appreciated. I'm using SAS Enterprise Guide v 4.3.


Thanks!

Andrew


 

abarnett313
Calcite | Level 5

Thanks for responding, and I apologize for not including the SAS version. It's SAS v9.3.

Reeza
Super User

Did you run the documentation example? Did that work for you? Like I mentioned, can't replicate your issue so I suspect it has to do with your data or your code and not an issue with PROC LOGISTIC or SAS. 

Reeza
Super User

Yes, but I highly recommend using the latest SAS documentation and the corresponding program is available as text:

 

http://documentation.sas.com/?docsetId=statug&docsetTarget=statug_logistic_examples02.htm&docsetVers...

 

There's a small link at the top of the page to the text program that makes it easier to copy/paste and run the example.

abarnett313
Calcite | Level 5

Ah, thank you! I used similar statements and didn't receive standardized coefficients for the categorical variables as part of the output. The documentation specifies that the /stb option only provides standardized coefficients for continuous variables. Now that I better understand what standardization means for logistic regression, I see that it doesn't really make sense for categorical variables. Thanks all the same!

Reeza
Super User

That's not what I get, but I agree with the concept of it not being valid. 

 

proc logistic data=Neuralgia;
class Treatment Sex;
model Pain= Treatment Sex Treatment*Sex Age Duration / expb stb;
run;

 

Note that Treatment and Sex are categorical variables and there are standardized estimates for them. 

delete_standardized_coefficients.JPG

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 8 replies
  • 3867 views
  • 2 likes
  • 3 in conversation