Dear all,
I have two categorical variables that are socialclass (1=low, 2=middle, 3=high) and jobtype (1=manufacturing, 2=services, 3=construction, 4=other). I am running a logit regression and want to interact them with the level of unemployment in the region. Normally I would just do:
gen unemploymentsocialclass=socialclass*unemployment
gen unemploymentjobtype=jobtype*unemployment
However, I think that for jobtype the interpretation would not make sense as an increase in jobtype is not really meaningful given the variable options. In this case, should I create 4 new independent binary variables for each of the options of jobtype and then interact those with unemployment?
Thank you very much!
Joan
Related Posts with Interacting Categorical Variable
Obtaining 5 year rolling standard deviation of RETHello everyone: I am calculating the estimate of stock volatility, which use annualized standard de…
Regression tables : Dependent variable in rows with coeff in columns & mean of control groupHi, I need help with constructing regression tables which look like this: Panel A Control Group …
Generating variableHi everyone, I've been struggling with a project, and would appreciate some help. In brief, I’m wo…
Using egen function to create variablesClyde Schechter I will like to find out how I can use egen to find 1. how do i create a new variabl…
int(runiform(1,499999)) stata 13Hello to all, do you have a idea of wich command to use to have the same result... In stata 15 gen …
Subscribe to:
Post Comments (Atom)
0 Response to Interacting Categorical Variable
Post a Comment