Hello,
I am trying to graph Probability of contraceptive use( everused ) against the years of female education divided into four splines. Moreover, I want the probability to look as in the screenshots where it is linear and it has 4 knots from a spline specification. I want the probability of contraceptive use to be calculated using a a logit model where we allow education (within each spline) to vary but hold the rest of the variables at their mean.
So far I have tried the following logit regression:
mkspline edu1 5 edu2 8 edu3 12 edu4 = education
logit everused age age2 edu1 edu2 edu3 edu4 urban low_caste middle_caste high_caste hindu muslim christian poorer middle richer richest, robust
I have the three following questions:
1) How do I predict the probability of everused, only allowing education to vary and holding the other variables at their mean?
2) How do I show this in a graph like the one attached?
3) Can the slope be interpreted as the change in probability from one extra year within each spline?
I am trying to graph Probability of contraceptive use( everused ) against the years of female education divided into four splines. Moreover, I want the probability to look as in the screenshots where it is linear and it has 4 knots from a spline specification. I want the probability of contraceptive use to be calculated using a a logit model where we allow education (within each spline) to vary but hold the rest of the variables at their mean.
So far I have tried the following logit regression:
mkspline edu1 5 edu2 8 edu3 12 edu4 = education
logit everused age age2 edu1 edu2 edu3 edu4 urban low_caste middle_caste high_caste hindu muslim christian poorer middle richer richest, robust
I have the three following questions:
1) How do I predict the probability of everused, only allowing education to vary and holding the other variables at their mean?
2) How do I show this in a graph like the one attached?
3) Can the slope be interpreted as the change in probability from one extra year within each spline?
Comment