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: 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!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 602 views
  • 0 likes
  • 2 in conversation