This preview shows page 1. Sign up to view the full content.
Unformatted text preview: 4/13/11 PADP 8120: Data Analysis and Sta6s6cal Modeling Logis&c Regression PRACTICE Spring 2011 Angela Fer6g, Ph.D. Let's run a logit in Stata Use day7f.dta! Gen educsq=educhd*educhd! Logit marriedhd agehd educhd educsq black hisp! Gen agesq=agehd*agehd! Logit marriedhd agehd agesq educhd educsq black hisp! 1. Which is the beGer model? 2. Using the beGer model, what is the probability of being married if you are white, have 12 years of educa6on, and are age 30? a - bX ^ = e 1 + e a - bX 1 4/13/11 How to get the graph Predict yhat! scatter yhat agehd if educhd==12 & black==0 & hisp==0! How to get the graph two groups Predict yhat! Twoway scatter yhat agehd if educhd==12 & black==0 & hisp==0 ||scatter yhat agehd if educhd==17 & black==0 & hisp==0 ! White, Postgrad White, HS grad 2 4/13/11 How to get the graph interac6on gen hstatage=hstat*agehd! logit marriedhd agehd agesq hsdropout collgrad black hstat hstatage! predict yhat! twoway scatter yhat agehd if educhd==12 & black==0 & hstat==1 || scatter yhat agehd if educhd==12 & black==0 & hstat==5! Excellent health, HS grad, white Poor health, HS grad, white 3 ...
View Full Document
This note was uploaded on 01/18/2012 for the course PADP 8120 taught by Professor Fertig during the Summer '11 term at University of Georgia Athens.
- Summer '11