From Kurt.Hornik@ci.tuwien.ac.at  Thu Feb  5 09:49:46 1998
From: Kurt.Hornik@ci.tuwien.ac.at (Kurt Hornik)
Date: Thu, 5 Feb 1998 10:49:46 +0100
Subject: linear models
In-Reply-To: <199802030810.JAA12226@elendil.ci.tuwien.ac.at>
References: <199802030810.JAA12226@elendil.ci.tuwien.ac.at>
Message-ID: <199802050949.KAA00669@pc25.none>

>>>>> 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


linear models
Kurt Hornik