On Jul 25, 2010, at 11:47 PM, Guillem R. wrote:
As far as I know, the predict command gives the predicted values (and
intervals) of y, but what I'm looking for is the conditional effects
(betas)
of x on y conditional on values of z.
If you want the betas, then simply print the object.
The plots you are looking for are called 'effect plots'. See the
effects package by John Fox.
Guillem R. wrote:
As far as I know, the predict command gives the predicted values (and
intervals) of y, but what I'm looking for is the conditional effects (betas)
of x on y conditional on values of
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, the effect of a variable
conditional on the
values of another variable. As an illustration, given model lm1
lm1 - lm(y ~ x*z)
As far as I know, the predict command gives the predicted values (and
intervals) of y, but what I'm looking for is the conditional effects (betas)
of x on y conditional on values of z.
I'm trying to produce a plot similar to the first shown in this link:
4 matches
Mail list logo