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.
Try adding the SIMPLE option to your PROC statement, I can't recall how it handles categorical variables though.
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 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.