Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

relsurv (version 1.5.3)

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.