Description Objects from the Class Slots Methods Examples

A S4 class for *K*-adaptive partitioning for survival data (kaps).

Objects can be created by calls of the form `new("kaps")`

. The most important slot is `groupID`

, which is a vector consisting of the information about classified subgroups.

`call`

:evaluated function call

`formula`

:formula used in the model fitting

`data`

:data used in the model fitting

`groupID`

:information about the classified subgroup

`index`

:index for the optimal subgroup among the candidate K

`X`

:test statistic with the worst pair of subgroups for the split set

`Z`

:overall test statistic with K subgroups using the split set

`pair`

:selected pair of subgroups

`split.var`

:selected covariate in the model fitting

`split.pt`

:selected set of cut-off points

`mindat`

:minimum number of observations at a subgroup

`test.stat`

:Bonferroni corrected p-value matrix. The first row means overall p-values and the second one denotes p-values of the worst-pair against K. The column in the matrix describes the order of K.

`over.stat.sample`

:adjusted overall test statistic by Bootstrapping

`pair.stat.sample`

:adjusted worst-pair test statistic by Bootstrapping

`groups`

:candidate K used in the argument

`results`

:a list of results about each K

`Options`

:tuning parameters

- show
`signature(object = "kaps")`

: Same as the show method without the optional arguments`signature(x = "kaps", K)`

: Same as the print method with the specified number of subgroups K.- plot
`signature(x = "kaps", K)`

: Plot an object- predict
`signature(object = "kaps")`

: Predict an object by the estimated cut-off points- summary
`signature(object = "kaps")`

: Summarize an object by survival times for each subgroup

1 | ```
showClass("kaps")
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.