BookmarkSubscribeRSS Feed
AJones2020
Calcite | Level 5

Hello. Does anyone know any programming codes to get the group frequencies for categorical variables in a regression model? For example, say you have an independent variable in the model that is yes/no own a vehicle. What should I include in my code to have the output show how many people are in the yes vs. no group? I know when doing a logistic regression in SPSS, the output automatically includes the # of people in each group on all independent, categorical variables.

1 REPLY 1
Reeza
Super User

Try adding the SIMPLE option to your PROC statement, I can't recall how it handles categorical variables though.

 

SIMPLE

displays simple descriptive statistics (mean, standard deviation, minimum, and maximum) for each explanatory variable in the MODEL statement.

 

 


@AJones2020 wrote:

Hello. Does anyone know any programming codes to get the group frequencies for categorical variables in a regression model? For example, say you have an independent variable in the model that is yes/no own a vehicle. What should I include in my code to have the output show how many people are in the yes vs. no group? I know when doing a logistic regression in SPSS, the output automatically includes the # of people in each group on all independent, categorical variables.


 

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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
  • 1 reply
  • 849 views
  • 0 likes
  • 2 in conversation