srvxp.fit {relsurv} | R Documentation |
Compute expected survival for a group of people. This function is not to be called by the user.
srvxp.fit(x, y, ratetable)
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 .
|
A vector of survival times.