Learn R Programming

MachineShop (version 3.8.0)

SurvMatrix: SurvMatrix Class Constructors

Description

Create a matrix of survival events or probabilites.

Usage

SurvEvents(data = NA, times = numeric(), distr = character())

SurvProbs(data = NA, times = numeric(), distr = character())

Value

Object that is of the same class as the constructor name and inherits from SurvMatrix. Examples of these are predicted survival events and probabilities returned by the predict function.

Arguments

data

matrix, or object that can be coerced to one, with survival events or probabilities at points in time in the columns and cases in the rows.

times

numeric vector of survival times for the columns.

distr

character string specifying the survival distribution from which the matrix values were derived.

See Also

performance, metrics