Stata - graph predicted probability

Hi guys!

Not sure if this is the right platform to ask for help for STATA programming. I`m new with programming and try to practice linear regression.

I would like to ask for help to write the right commands for these exercises:

1.predicted probability of marital happiness for the female and male over
various years of education (set church=1). (happymar, female, educ)

  1. substantive effect of gender on the predicted probability
    of marital happiness over various years of education (set church=1).

// find a basic command for predicted probability, but not sure how to fill it with my datas:

quietly logit happymar i.female educ
margins ?, at( ? ) atmeans
marginsplot, ?
title("Predicted Probability")

Hi @Koletta, and welcome to the ODK forum! When you have a chance, I'd encourage you to introduce yourself here. Doing so helps build community!

This doesn't seem like an ODK-specific question, but rather a more general question about Stata and data analysis. I think you'll find more help by visiting Statalist, which is a great resource for asking Stata questions. In the meantime, let us know if you have other questions about collecting and managing your data using ODK, importing your ODK data into Stata, or other ODK-specific questions. :slight_smile:

1 Like