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
Error message: no room to add more variablesHi all, I am trying to combine three DHS surveys by appending them all using following command. us…
Expand rolling sequencies of observation within ID ifHi, I am using a panel dataset with different countries (example below). For each date there are tw…
Is there a model for Spatial Panel Regression with a binary/dummy dependent variable?Hello, this is my first topic in Statalist. However, I have been using it as reader throughout the l…
Error message: Repeated time values within panelHi, I am struggling to understand why I am unable to xtset my panel data. I have used the Understa…
Adding a new empty row(year) to an existing datasetHi stata users, I have a dataset from 2008-2018, but want to add a new row 2019. I tried some codes …
Subscribe to:
Post Comments (Atom)
0 Response to graph the predicted probability
Post a Comment