[R] error with effects package.
jfox at mcmaster.ca
Wed Mar 18 15:40:00 CET 2009
The effect function won't handle a model with a nested effect.
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
> Behalf Of Frédéric Hérault
> Sent: March-18-09 9:57 AM
> To: r-help at r-project.org
> Subject: [R] error with effects package.
> Dear R helpers,
> I have the following model
> with: options(contrasts=c("contr.sum", "contr.poly"))
> A,B and E are 2-levels factor,
> C is covariate,
> D is 20 levels factor with 10 in relation with the first levels of
> factor A, the other in relation with the second levels of factor A
> Here is my data, and the contrast I use for factor D.
> I'm trying to use the effects package of Prof. J. Fox ,
> but I get this error message:
> " Error in apply(mod.matrix[, components], 1, prod) : subscript out
> of bounds"
> I suppose that the problem comes from the interaction A:D, but I can't
> find a solution to solve it.
> Does anyone know how to solve this problem??
> Frederic Herault
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help