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.


 

 

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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