predict: Predict new values using the fitted object "kaps".
Description
This function provides the predicted subgroup or test statistics.
Usage
"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.