Predict method for colf_nlxb
## S3 method for class 'colf_nlxb' predict(object, newdata, ...)
object
: A colf_nls objectnewdata
: A new data.frame which contains the same column names and classes as the original data.frame...
: Currently not usedA vector with the predictions
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.
mymod <- colf_nlxb(mpg ~ hp + cyl, mtcars) #prediction predict(mymod, mtcars)