Learn R Programming

kaps (version 0.9-8)

predict: Predict new data witgh the fitted model kaps .

Description

This function produces predicted values, obtained by evaluationg the kaps in the frame newdata predict.

Usage

## S3 method for class 'apss':
predict(object, newdata, type = c("predict","apss"))
## S3 method for class 'Tree':
predict(object, newdata)

Arguments

object
object of S4 class apss.
newdata
An optinal data frame in which to look for variables with which to predict. If omitted, the fitted values are used.
type
A logical argument. If "predict", predict an apss class. The type of "apss" is used for the internal useness.

See Also

kaps, lrtree