I want to set a single base level for an interaction between two categorical variables marital status (de facto or married) and education level (edlev1 ... edlev5) - as a de facto couple with the lowest level of education (i.e. base: de facto # edlev1) - with which to compare all other categories as I want to understand the effect of both increasing levels of education and marital status, not just one or the other. At present, if I run the interaction:
Code:
i.marstat#i.edlev
Thank you in advance.
N.B. I did not provide sample data as I thought this is a fairly generic coding issue, though I can do so if needed.
Stata v.15.1. I'm not sure it matters, but I am using Cox Regression analysis.
0 Response to How can we set a single base level for an interaction between two variables?
Post a Comment