predict.kclass: Predict values based on a fitted kclass model

Description Usage Arguments Value

View source: R/s3_methods.R

Description

Generates a vector of outcome predictions based on new regressor data. The new data must be a data frame or matrix with the same number of columns as coefficients in the model.

Usage

1
2
## S3 method for class 'kclass'
predict(object, newdata, na.action = na.pass, ...)

Arguments

object

a model object of class 'kclass'.

newdata

a data frame or vector. If no data is submitted, the original fitted values are returned.

Value

a vector of predicted values.


potterzot/rkclass documentation built on May 25, 2019, 11:24 a.m.