View source: R/summary.kcurves.R
summary.kcurves | R Documentation |
kcurves
class produced by ksurvcurves
and
kregcurves
Takes a kcurves object and produces various useful summaries from it.
## S3 method for class 'kcurves'
summary(object, ...)
object |
a kcurves object as producted by |
... |
additional arguments. |
print.kcurves
tries to be smart about summary.kcurves
.
summary.kcurves
computes and returns a list of summary
information for a kcurves
object.
levels |
Levels of the factor. |
cluster |
A vector containing the assignment of each factor's level to its group. |
Nora M. Villanueva and Marta Sestelo.
library(clustcurv)
library(survival)
data(veteran)
# Survival: 2 groups k-means
s2 <- ksurvcurves(time = veteran$time, status = veteran$status,
x = veteran$celltype, k = 2, algorithm = "kmeans")
summary(s2)
# Regression: 2 groups k-means
r2 <- kregcurves(y = barnacle5$DW, x = barnacle5$RC,
z = barnacle5$F, k = 2, algorithm = "kmeans")
summary(r2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.