Tal Galili
2009-Sep-13 16:07 UTC
[R] is it possible: predict.lm on a matrix instead of a data.frame ?
Hello dear R-help members. I need to run many "predict.lm" routines, and was hoping to have it run faster then it does now. One way I was thinking about was to have it run on a matrix instead on a data.frame (since in my situation a matrix will suffice). Can someone suggest to me of ways to have predict.lm run faster, or To have it run on a matrix? (I started breaking the code open, and found many model.frame, and model.matrix which seems to need a data.frame to work.) Any hints will be welcomed. Thanks, Tal -- ---------------------------------------------- My contact information: Tal Galili Phone number: 972-50-3373767 FaceBook: Tal Galili My Blogs: http://www.r-statistics.com/ http://www.talgalili.com http://www.biostatistics.co.il [[alternative HTML version deleted]]