search for: tailmatrix

Displaying 1 result from an estimated 1 matches for "tailmatrix".

2004 May 11
2
lm with predictor matrix
Hello, can someone give me an example of how to fit a linear model where the response is a matrix, please? (other than a loop over lm calls) The ?lm points me to model.matrix but it is not clear to me how to use a model matrix in an lm call. fit<-lm(headmatrix ~ tailmatrix) causes problems as soon as I use predict(fit,newframe). The variables in tailmatrix are not found in newframe. Thanks, Claus --------------------------------- [[alternative HTML version deleted]]