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
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
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
3 matches
Mail list logo