srvxp.fit {relsurv}R Documentation

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.


[Package relsurv version 1.5 Index]