Learn R Programming

rFSA (version 0.9.6)

predict.FSA: Prediction function for FSA solutions

Description

Prediction function for FSA solutions

Usage

# S3 method for 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

Run this code
# NOT RUN {
#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,])
# }

Run the code above in your browser using DataLab