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
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.