Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

predict

Predict new values using the fitted object "kaps".


Description

This function provides the predicted subgroup or test statistics.

Usage

## S4 method for signature 'kaps'
predict(object, newdata, type = c("predict","kaps"))

Arguments

object

object from kaps.

newdata

An optinal argument in which the name of predicted object is located. If omitted, the dataset used in the model fitting is utilized.

type

a type of preddiction. If "predict", predict subgroups based on the fitted model. If a type is "kaps", it returns the overall and worst-pair test staiststics for estimated subgroups.

See Also


kaps

K-Adaptive Partitioning for Survival data

v1.0.2
GPL-3
Authors
Soo-Heang Eo [aut, cre], Seung-Mo Hong [ctb], HyungJun Cho [aut]
Initial release
2014-11-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.