predict.FSA {rFSA}R Documentation

Prediction function for FSA solutions

Description

Prediction function for FSA solutions

Usage

## S3 method for class 'FSA'
predict(object, ...)

Arguments

object

FSA object to conduct predictions on.

...

other parameters passed to fitmodels or predict functions. See help(fitmodels) or help(predict) for assistance.

Value

list of predicted values from each FSA model.

Examples

#use mtcars package see help(mtcars)
data(mtcars)
colnames(mtcars)
fit<-lmFSA(formula="mpg~hp*wt",data=mtcars,fixvar="hp",
             quad=FALSE,m=2,numrs=10,save_solutions=FALSE,cores=1)
predict(fit)
predict(fit,newdata=mtcars[1:15,])

[Package rFSA version 0.9.6 Index]