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.
How to clear preserve? "Already preserve error"Hi, I have been running a piece of code through various universe of assets and I am getting the "al…
ConditionalsHI how can I change this list ??? converting those texts to missing? x: sales in $ x | Freq. Perc…
Replacing pieces of code with one lineIs there a code with which i can replace certain areas of a larger code while only one line For exa…
Dropping all but the highest value per individual, multiple recordsHi Statalist colleagues! Thanks to your previous help, I was able to create an indicator variable f…
How to generate two variables from a variable?Hi guys, I have a group variable (GROUPS8) and I want to generate two new variables from it- Caste a…
Subscribe to:
Post Comments (Atom)
0 Response to Margins for maximum value of independent variable.
Post a Comment