Learn R Programming

kaps (version 1.0.2)

plot: Visualize an object "kaps"

Description

plot method for "kaps" with extended facilities. It provides four panels consisting of a scatter plot, a Kaplan-Meier survival curve, an overall p-values, and a plot with the worst-pair p-values against K.

Usage

"plot"(x, y = NA, K, ...)

Arguments

x
an object from kaps
y
the "y" argument is not used in the plot-method for "OutlierDM" object.
K
a scalar object that plots the Kaplan-Meire survival curves for the K. If missing, it works with selected K in the model fitting.
...
other arguments to the plot.default function can be passed here.

Details

This function generates four plots. The top left panel is the scatterplot of survival times against the selected prognostic factor with the line fitted by local censored regression using locfit. The top right panel is a Kaplan-Meier survival curve for the subgroups selected with the optimal K. At the bottom are displayed the plots of the overall and worst-pair p-values against K. The dotted lines indicate thresholds for significance 0.05.The outputs for a specific K can also be printed out with the argument K.

For the sake of the Kaplan-Meire curve with estimated subgroups, in addition, the function km.curve is provided.

See Also

kaps km.curve