From Friedrich.Leisch@ci.tuwien.ac.at  Thu Feb  5 17:05:11 1998
From: Friedrich.Leisch@ci.tuwien.ac.at (Friedrich Leisch)
Date: Thu, 5 Feb 1998 18:05:11 +0100
Subject: linear models
In-Reply-To: <199802050949.KAA00669@pc25.none>
References: <199802030810.JAA12226@elendil.ci.tuwien.ac.at>
 <199802050949.KAA00669@pc25.none>
Message-ID: <199802051705.SAA18856@galadriel.ci.tuwien.ac.at>

>>>>> On Thu, 5 Feb 1998 10:49:46 +0100,
>>>>> Kurt Hornik (KH) wrote:

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

KH> The problem is the final line

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

KH> in the multivariate version of lm.fit().

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

KH> Could we replace the line by

KH> 	rownames(z$effects) <- NULL

KH> ?

As it seems to work I've committed the change.

.f
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
Friedrich Leisch