Learn R Programming

MachineShop (version 1.6.0)

SurvMatrix: SurvMatrix Class Constructor

Description

Create an object of predicted survival events or probabilites for use with metrics provided by the MachineShop package.

Usage

SurvEvents(object = numeric(), times = NULL)

SurvProbs(object = numeric(), times = NULL)

Arguments

object

matrix, or object that can be converted to one, of predicted survival events or probabilities with columns and rows representing prediction times and cases, respectively.

times

numeric vector of the survival prediction times.

Value

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

See Also

performance, metrics