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
Lagged VariablesDear all, in a lot of econometric studies in finance they use lagged variables. Why would they do t…
Generalised Ordered Logit (gologit2) with Categorical Nonparallel VariableHello, I am currently studying the relationship between firm size and access to finance by using th…
matching husband-wife and father-daughter observations and generating new variablesDear Statlisters I am working on household survey data. Here I have variables on responses by house…
Cox regressions for Twitter data (proportional hazards)Dear all, first and foremost a happy new year to all of you! In my current research project, I am …
coefficent of variationHello, I have run my dataset only discovered that my CV are more that 30 percent and some are even 4…
Subscribe to:
Post Comments (Atom)
0 Response to graph the predicted probability
Post a Comment