Re: [R] Error in summary.mlm: formula not subsettable

2011-10-26 Thread Duncan Murdoch
On 26/10/2011 9:48 AM, Helios de Rosario wrote: When I fit a multivariate linear model, and the formula is defined outside the call to lm(), the method summary.mlm() fails. This works well: > y<- matrix(rnorm(20),nrow=10) > x<- matrix(rnorm(10)) > mod1<- lm(y~x) > summary(mod1) ... But this

Re: [R] Error in summary.mlm: formula not subsettable

2011-10-26 Thread Duncan Murdoch
On 26/10/2011 9:48 AM, Helios de Rosario wrote: When I fit a multivariate linear model, and the formula is defined outside the call to lm(), the method summary.mlm() fails. This works well: > y<- matrix(rnorm(20),nrow=10) > x<- matrix(rnorm(10)) > mod1<- lm(y~x) > summary(mod1) ... But this

[R] Error in summary.mlm: formula not subsettable

2011-10-26 Thread Helios de Rosario
When I fit a multivariate linear model, and the formula is defined outside the call to lm(), the method summary.mlm() fails. This works well: > y <- matrix(rnorm(20),nrow=10) > x <- matrix(rnorm(10)) > mod1 <- lm(y~x) > summary(mod1) ... But this does not: > f <- y~x > mod2 <- lm(f) > summary(mod