predict.FSA: Prediction function for FSA solutions

Description Usage Arguments Value Examples

View source: R/predict.FSA.R

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,])

joshuawlambert/rFSA2 documentation built on July 2, 2021, 12:50 a.m.