[R] Predict using SparseM.slm

T. Balachander tbalacha at yahoo.com
Wed Aug 1 23:42:09 CEST 2007


Hi,

I am trying out the SparseM package and had the a
question. The following piece of code works fine:

...
fit = slm(model, data = trainData, weights = weight)  
   
...

But how do I use the fit object to predict the values
on say a reserved testDataSet? In the regular lm
function I would do something like this:

predict.lm(fit,testDataSet)

Thanks
-Bala



      ____________________________________________________________________________________



More information about the R-help mailing list