I want to create a model like so : dependent var = independent var1 + indep var2 +...indep var_n
My dependent var is dichotomous. (Not met = 0, met = 1)
My independent vars are categorical. I will have sex (M,F), meal_status (F,R), Race (W, B, I, H, P, O) eng_prof (1-9) and school_ID.
I want SAS to examine how much explanation each indep var contributes toward the model. (I have some experience using logistic regression. I'm just not sure in this case.)
I also recall a test that SAS will do that introduces one indep variable at a time to determine if it should be included in the model but I don't remember the particulars.
Any advice/comments would be a great help.
Use selection with LOGISTIC or create the design matrix that you want to see for the different effects in CATMOD (reference the documentation or ask if more help is needed).
The documentation has pretty good examples and details.
I'd consider looking into proc CATMOD and LOGISTIC.
I also recall a test that SAS will do that introduces one indep variable at a time to determine if it should be included in the model but I don't remember the particulars
In Proc Logisitic (and a few others) you are likely thinking of the SELECTION option for the model statement.
Use selection with LOGISTIC or create the design matrix that you want to see for the different effects in CATMOD (reference the documentation or ask if more help is needed).
independent variables are all category variables ?
Use proc CATMOD
and post is at SAS Statistical Procedures to get better answer.
Xia Keshan
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!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.