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

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 865 views
  • 0 likes
  • 2 in conversation