Dear all,
currently I'm analyzing Linked-Employer-Employee Daten via fixed effects regression models. To illustrate the effects nicely, I want to display my results with marginsplots. The regression model looks like this: I have a metric variable as a depent variable in a fixed effects model, thats why I calculate with xtreg var1 var2 ..., fe vce (cluster groupvar). My groupvariable is organization/employer. I want to analyze the impact of special organizational policies on the dependent variable. I know, since I do a fixed effects regression I can only include the organizational variables using an interactional term with an individual variable. My interaction terms are built like this: categorical organizational level var (dummy; called cfam) x categorical individual level var (4 categories; called par). Since this can be very complex, I want to use marginsplots to illustrate this interaction more properly.
I already studied a book about margins and marginsplots, but my plots aren't very decent and either don't display the effects from the regression model (esp. regarding significance), or they don't display any effect, since they are "not estimable". I think maybe the problems originate from the lacking main effect of the organizational variable (fixed effects), but I actually don't know how to fix this.
Does anybody know, how I can solve this problem und get decent marginsplots for my analyses?
I already tried:
contrast cfam#par
contrast cfam@par
margins cfam#par
marginsplot
and
margins par, at (cfam = (0 (1) /*
*/ 1)) level (90) contrast noestimcheck
marginsplot
I would really appreciate your time and effort for reading and answering this post!
Best regards,
Charlotte
currently I'm analyzing Linked-Employer-Employee Daten via fixed effects regression models. To illustrate the effects nicely, I want to display my results with marginsplots. The regression model looks like this: I have a metric variable as a depent variable in a fixed effects model, thats why I calculate with xtreg var1 var2 ..., fe vce (cluster groupvar). My groupvariable is organization/employer. I want to analyze the impact of special organizational policies on the dependent variable. I know, since I do a fixed effects regression I can only include the organizational variables using an interactional term with an individual variable. My interaction terms are built like this: categorical organizational level var (dummy; called cfam) x categorical individual level var (4 categories; called par). Since this can be very complex, I want to use marginsplots to illustrate this interaction more properly.
I already studied a book about margins and marginsplots, but my plots aren't very decent and either don't display the effects from the regression model (esp. regarding significance), or they don't display any effect, since they are "not estimable". I think maybe the problems originate from the lacking main effect of the organizational variable (fixed effects), but I actually don't know how to fix this.
Does anybody know, how I can solve this problem und get decent marginsplots for my analyses?
I already tried:
contrast cfam#par
contrast cfam@par
margins cfam#par
marginsplot
and
margins par, at (cfam = (0 (1) /*
*/ 1)) level (90) contrast noestimcheck
marginsplot
I would really appreciate your time and effort for reading and answering this post!
Best regards,
Charlotte
Comment