Re: [R] Marginal effects from interaction regression model

2010-07-25 Thread Guillem R.
du/~mrg217/interaction.html#code Thanks again David Winsemius wrote: > > > On Jul 25, 2010, at 10:24 PM, Guillem R. wrote: > >> >> Dear all, >> >> I'd like to plot the marginal effect of a variable in a multiplicative >> interaction regression, that is, t

[R] Marginal effects from interaction regression model

2010-07-25 Thread Guillem R.
Dear all, I'd like to plot the marginal effect of a variable in a multiplicative interaction regression, that is, the effect of a variable conditional on the values of another variable. As an illustration, given model lm1 lm1 <- lm(y ~ x*z) I'd like to get the effects of x on y conditional on t