SurvMatrix: SurvMatrix Class Constructors

View source: R/response.R

SurvMatrixR Documentation

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())

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.

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.

See Also

performance, metrics


MachineShop documentation built on Sept. 11, 2024, 6:28 p.m.