{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

day11prs

# day11prs - PADP 8120 Data Analysis and Sta6s6cal Modeling...

This preview shows page 1. Sign up to view the full content.

This is the end of the preview. Sign up to access the rest of the document.

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

{[ snackBarMessage ]}

Ask a homework question - tutors are online