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)
- 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