Learn R Programming

colf (version 0.1.3)

predict.colf_nls: Predict method for colf_nls

Description

Predict method for colf_nls

Usage

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

Value

A vector with the predictions

Details

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

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

Examples

Run this code
# NOT RUN {
mymod <- colf_nls(mpg ~ hp + cyl, mtcars)

#prediction
predict(mymod, mtcars)

# }

Run the code above in your browser using DataLab