Dear all,
I would like to view the interaction effect between education level and age while trying to predict their health status (continuous variable) with the Oaxaca-Blinder decomposition approach (linear model).
Education level is measured by 3 dummy variables for lower than high school degree, high school degree and university degree. Age is measured by 8 age groups: 25-29, 30-34, 35-39, 40-44, 45-49, 50-54, 55-59 and 60-64.
I am unsure how to measure this interaction. Options I see are:
1) 3x8 interaction, but this seems over-complicated.
2) Interacting the two categorical variables directly as follows: educationlevel##age, but this is not allowed in the oaxaca command
3) Treating the age variable as a continuous variable and writing the code as follows: normalize(lessthanhighschool highschool university) normalize(lessthanhighschoolxage highschoolxage universityxage # age), but this does not seem technically correct.
What do you think?
Related Posts with Interaction effect between two non-dichotomous categorical variables
Area Under Curve (AUC) after random Effects modelsI would like to know how can I calculate AUC after I run a logit model using runmlwin command throug…
Merging datasets based on recorded timeHello, I have a data file that contains activities done during certain times (for the purpose of th…
line of fit for two skewed continuous variablesI am conducting Spearman's correlation on two skewed continuous variables. I do not wish to log tran…
Collapse says varlist requiredHi! I tried to collapse the following data but it says varlist required, why? collapse smi1 smi2 l…
State-level time series: tool for calculating requisite number of observations per state/year?Greetings, I'm running Stata 15.1 on OSX. My ultimate goal is to examine whether changes in a speci…
Subscribe to:
Post Comments (Atom)
0 Response to Interaction effect between two non-dichotomous categorical variables
Post a Comment