From the course: SAS Essential Training: 2 Regression Analysis for Healthcare Research
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Basic PROC LOGISTIC code - SAS Tutorial
From the course: SAS Essential Training: 2 Regression Analysis for Healthcare Research
Basic PROC LOGISTIC code
- [Instructor] In this movie we are going to get into some SAS code that can be used to run a logistic regression. You'll see I'm still using the same exercise file as the last movie, named 600_logistic models one and two. We are going to start with a little history lesson. The PROC that used to be used for logistic regression most often in SASS was PROC GENMOD. GENMOD stands for general model. And that's what it means. It is general. It is not customized for logistic regression so in PROC GENMOD you have to tell the PROC what kind of regression you want to do. See how the model statement is the same as in PROC GLM? The dependent variable equals the independent variable. But then see here, after the slash we have two options. The link is logit and the dist is binomial. Those are the options you have to set on PROC GENMOD in order to run a logistic regression. Just for fun, let's run this code. Notice how it is a simple model with the exposure as the independent variable and the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.