Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to store coefficients for single-country logistic regressions and turn them into a country-level variable for multilevel analysis

    Dear members of Statalist,

    I am using xtmelogit for explaining the probability of attaining a MA-level diploma versus a BA-level diploma among people with some university-level degree in 29 countries participating in the Survey of Adult Skills (PIAAC) carried out some years ago by the OECD. A key independent variable at the individual level is father's education.

    There is an obvious selection issue here. The effect of social origin (father's education) on the probability of attaining a MA-level diploma vs. BA-level diploma is conditional on entry into university, and this in turn is explained by social origin. It is reasonable to assume that there has been some social selection at entry into university, and that such a social selection is not homogeneous across countries.

    As a preliminary way of controlling this selection effect, I have thought of running a logistic regression for each country of analysis, regressing the probability of getting some university degree on father's education. I would then store the coefficients (betas) corresponding to father's education for each country. Finally, I would use these coefficients as country-level controls in the multilevel logistic regression aimed at explaining the probability of attaining a MA-level vs a BA-level diploma.

    I would very much appreciate any guidance about how to store these coefficients and turn them into a country-level variable.

    Thanks for your attention

    Luis Ortiz

  • #2
    Dear members,

    I have found the solution by myself, using the parmby command.

    I do apologise for the inconvenience, if someone has read the post, and I hope it helps if somebody come across the same problem.

    All the best

    Luis Ortiz

    Comment

    Working...
    X