predict.FSA: Prediction function for FSA solutions

Description Usage Arguments Value Examples

Description

Prediction function for FSA solutions

Usage

1
2
## 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

1
2
3
4
5
6
7
#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,])

rFSA documentation built on May 2, 2019, 12:54 a.m.