grasp.pred {grasper} | R Documentation |
Predicts each RVs using a new set of PVs
grasp.pred(gr.Yi)
gr.Yi |
Selected responses to be used in the form of a vector with column numbers |
This function is the most time and ressource consuming, along with the stepwise selection.
It predicts each response variables (RVs) using a new set of predictor variables (PVs) contained in XXXpred.
The XXXpred variable is initialized by grasp.in
. The predict.gam
function from the mgcv package is used.
The predictions are saved in the variable gr.predmat. The grasp.pred.plot() function plots the results.
Fabien Fivaz fabien.fivaz@bluewin.ch. Ported to R from GRASP for S-Plus written by A. Lehmann, J.R. Leathwich and J. McC Overton. Look at http://www.cscf.ch/grasp for details and update.
grasp.step.gam
, grasp.model
and predict.gam