predict.colf_nlxb: Predict method for colf_nlxb

Description Usage Arguments Details Value Examples

Description

Predict method for colf_nlxb

Usage

1
2
## S3 method for class 'colf_nlxb'
predict(object, newdata, ...)

Arguments

object

A colf_nls object

newdata

A new data.frame which contains the same column names and classes as the original data.frame

...

Currently not used

Details

predict.colf_nlxb will use the fit model to predict on a new data set.

When using predict.colf_nlxb make sure the column names and classes of the new data set are the same as the data the model was trained on.

Value

A vector with the predictions

Examples

1
2
3
4
mymod <- colf_nlxb(mpg ~ hp + cyl, mtcars)

#prediction
predict(mymod, mtcars)

colf documentation built on May 2, 2019, 8:23 a.m.