[R] lm with predictor matrix

About this list Date view Thread view Subject view Author view Attachment view

From: Claus Gwiggner (cgwiggner@yahoo.com)
Date: Tue 11 May 2004 - 11:37:15 EST


Message-id: <20040511013715.13522.qmail@web90104.mail.scd.yahoo.com>

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

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:08 EST