I am currently working on a multilevel model, which shows the relationship between education and prejudice, interacted by regimescore.
mixed socialdistance c.Education##c.regimescore unemployment GDP Migration5y GINI ||Nations:, covariance(independent) reml
Now i want to show the marginal effects of education on prejudice at different levels of regimescore, and report the marginal effects graphically.
However, i get that when you make the margins command, it only computes the effects of an increase in the independent variable, from 0 to 1 across different levels of the moderator. What i want to do is show the marginals effects of going from 0 to the maximum value on my independent variabel (Education).
Is that possible? So far i have used:
margins, dydx(Eduref) at(DemSc=(1/7)) vsquish
marginsplot
Related Posts with Margins for maximum value of independent variable.
Extract numbers (with varying lengths) from variable labelHi friends, I now face the following problem: Code: webuse auto,clear lab var make "STATA#1, 90" …
Esttab Indicate Option - Not Turning Off (Yes Instead of No)Hi all! I am using Stata 16. I am having an issue with esttab. I am running several regressions, an…
Graph dot: General DoubtHello I want to make a comparative graph between the results that I have. There are four variables …
Interaction term significant; main terms significant but with an opposite signDear colleagues, I am studying the effect of hospital efficiency on absorbing the negative impact o…
Categorical variable and the constantHello! Please bare with me for this question. I'm a STATA novice and have just begun learning about …
Subscribe to:
Post Comments (Atom)
0 Response to Margins for maximum value of independent variable.
Post a Comment