summary.kcurves: Summarizing fits of 'kcurves' class produced by 'ksurvcurves'...

Description Usage Arguments Details Value Author(s) Examples

View source: R/summary.kcurves.R

Description

Takes a kcurves object and produces various useful summaries from it.

Usage

1
2
## S3 method for class 'kcurves'
summary(object, ...)

Arguments

object

a kcurves object as producted by ksurvcurves and kregcurves

...

additional arguments.

Details

print.kcurves tries to be smart about summary.kcurves.

Value

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.

Author(s)

Nora M. Villanueva and Marta Sestelo.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
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)

clustcurv documentation built on Jan. 14, 2021, 5:32 a.m.