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
Identify life events in panel dataHi Statalist. I would like to be able to identify life events within a panel dataset with multiple w…
How to remove " and "?Dear All, I have this dataset:
Code:
* Example generated by -dataex-. To install: ssc install datae…
Formatting Several Variables using a Loop
Hello
I have several variables (68) consisting of strings, integers, and floats. I am trying to for…
How to resolve numeric overflow while performing xtlogit,fe in stata?Dear all,
Apologies if this question seems to be a repetition of a previous question. I had made som…
Draw figure like this?Dear All, I have this dataset
Code:
* Example generated by -dataex-. To install: ssc install dataex…
Subscribe to:
Post Comments (Atom)
0 Response to graph the predicted probability
Post a Comment