Hi guys!
I am totally new with statistics, just started to learn using Stata. On the last class we were learning about linear regressions, predicted probability, logit, margins etc. I am trying to practice but it doesn`t go very well. So before we made this:
/*Graph the predicted probability of Pi with/without a confidence interval*/
quietly logit grade gpa tuce i.psi
margins psi, at(gpa = (2(.1)4) ) atmeans
marginsplot, noci scheme(sj) xtitle("GPA") ytitle("Pr(Y=1)") ///
title("Predicted Probability of Getting An A")
quietly logit grade gpa tuce i.psi
quietly margins psi, at(gpa = (2(.1)4) ) atmeans
marginsplot, scheme(sj) xtitle("GPA") ytitle("Pr(Y=1)") ///
title("Predicted Probability of Getting An A")
I tried to copy these commands to solve an excercise, but it doesn`t really work, can you help make write the right command for these (happymar, female, educ)
1.predicted probability of marital happiness for the female and male over
various years of education (set church=1).
2. substantive effect of gender on the predicted probability
of marital happiness over various years of education (set church=1).
Related Posts with graph the predicted probability
Redesigning dataset with categorical variableDear Statalist, I need a help with redesigning a dataset. It contains information on validity of co…
plabel(_all percent) with graph pieArray I have to graph a pie in stata. Everything is perfect exept I'm not able to see all percent …
How to find the controls from a subset of cases in an already case-control matched sampleHi, I am new to this forum but have been using STATA for a while for very basic statistical analysis…
How to create an averaged scale from multiple variables?I would like to create an averaged scale created from five variables for each observation. Each of m…
Testing for heteroskedasticity after xtregarHow do I test for heteroskedasticity after xtregar? My code is below: xtregar gp expansion populatio…
Subscribe to:
Post Comments (Atom)
0 Response to graph the predicted probability
Post a Comment