Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
Dmitriy Poznyak <poznyack@yahoo.com> |

To |
"statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |

Subject |
st: Marginal effects for cross-level interactions |

Date |
Sat, 3 Mar 2012 07:37:35 -0800 (PST) |

Hello everyone, I am running a random slope model with cross-level interactions. All variables in the model are continuous. Context-level predictors are grand-mean centered. All other predictors are standardized on a scale 0-1. My context level predictors indeed happen to moderate the effect of the independent variables and the effects are in the expected direction. My set-up (much simplified) looks as follows: xtmixed: y x z x*z||cluster: x Note, that z is a context-level predictor My goal is to compute the marginal effects for the change in x for each unit change in z in order to visualize my interactions. I am using the following magins command: margins, at(z =(-1 0 1) x=(0 .5 1)) This however--I believe--computes the probabilities for the dependent variable, given the change in both indep. variable and context-level moderator. While it is illustrative, it does not really tell me about the actual moderation effect of z on x. Again, I need to see the marginal effect (the mean effect will suffice) of my indep. variable on the dependent var. conditional on the change in the macro-level predictor. I assume, I should be able to plot this effect using margins command, but the exact model specification escapes me. Thank you for your inputs, Dmitriy * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

- Prev by Date:
**Re: st: flagging significant values in a variable** - Next by Date:
**Re: st: Re: repeat do-file over multiple files** - Previous by thread:
**Re: st: missing factor variables in table of estimates** - Next by thread:
**st: IV identification test using svy** - Index(es):