Hi STATA friends,
I aim to generate indicator variables regarding the interaction term c.budgetbalance15#Left_right_placement:
xi, prefix(_Y) c.budgetbalance15#i.Left_right_placement
Ultimately, I try to plot the interaction term with the grinter command. Because it doesn`t work with factor variables, I try take a way around it, including the indicator variable in the model like this:
xi: reg index_EU_support budgetbalance15 membership_length ib2.Political_discussions i.Gender Age i.Education ib2.Left_right_placement Y* i.Community i.country , vce(robust)
final step:
grinter budgetbalance15, inter(Y*) const02(i.Left_right_placement)
i.Left_right_placement is coded:
1: being politically orientated toward the left-wing,
2: being orientated politically toward the center and
3: being orientated politically toward the right-wing.
But somehow STATA doesn't recognize Y* when I try to run the regression. Does anyone have a hint for me how to create indicator varibales for the interaction c.budgetbalance15#Left_right_placement in a way I can include them in the regression?
Thank you!!!
Related Posts with Creating indicator variables xi, prefix() for an interaction term
Stored critical values of a DF-GLS unit-root test?I'm looking for the stored critical values of a DF-GLS unit-root test for a certain "maxlag". All I …
Interpretation of regression with multiple large dummiesHi all, I have a regression on the effect between Corporate Performance and Corporate Social Respon…
graph combine | control distance between two combined graphs, of which one is itself a combined graph (working with maps from spmap)Dear Statalisters, I want to control the distance between two graphs that I want to combine. One of…
Creating a new variable comparing two othersHi, I've information about ID's current and previous city of residence. I want to create a new varia…
String into numerical but didn't work. destring ANOPRIDI, generate (date_dx) ANOPRIDI: contains nonnumeric characters; no generate . d A…
Subscribe to:
Post Comments (Atom)
0 Response to Creating indicator variables xi, prefix() for an interaction term
Post a Comment