SurvMatrix {MachineShop} | R Documentation |
Create a matrix of survival events or probabilites.
SurvEvents(data = NA, times = NULL) SurvProbs(data = NA, times = NULL)
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. |
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.