linear models

Kurt Hornik Kurt.Hornik@ci.tuwien.ac.at
Thu, 5 Feb 1998 10:49:46 +0100


>>>>> Andreas Weingessel writes:

> How can I use linear model regression for more than 1 dependent (response)
> variable?

> In S it is possible to do something like
S> x<-matrix(rnorm(300),100,3)
S> lm(x[,1:2]~x[,3])
> to get

The problem is the final line

	dimnames(z$effects)[1] <- list(NULL)

in the multivariate version of lm.fit().

I think this used to work for some time, but now does neither in 0.61.1
nor in 0.62.

Could we replace the line by

	rownames(z$effects) <- NULL

?

-k

	

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._