Learn R Programming

relsurv (version 1.6-5)

srvxp.fit: Work Function to Compute Expected Survival

Description

Compute expected survival for a group of people. This function is not to be called by the user.

Usage

srvxp.fit(x, y, ratetable)

Arguments

x
a data.frame or a matrix. Each row represents one person. The columns must match the dimensions of the ratetable, in the correct order.
y
a vector of survival times of the same length as the number of rows of x.
ratetable
a table of event rates, organized as a ratetable object, such as survexp.us.

Value

  • A vector of survival times.