Learn R Programming

JPSurv (version 1.0.1)

aapc: Trend summary measures for joint point relative survival model

Description

Get the trend summary measures for joint point relative survival model. Meausres include annual percentage changes of hazard, annual percentage changes of cumulative relative survival, annual changes of cumulative relative survival.

Usage

aapc(fit, type="HAZ_AC(CS)", interval=5)

Arguments

fit
Object of class "joinpoint".
type
Type of trend summary measure. Supported measures are: HAZ_APC(HR) - annual percentage changes of hazard, HAZ_APC(CS) - annual percentage changes of cumulative relative surviva, HAZ_AC(CS) - annual changes of cumulative relative survival. The default is HAZ_AC(CS).
interval
Years after diagnosis. Only needed for HAZ_APC(CS) and HAZ_AC(CS).

Value

Examples

Run this code
data(prostate);
# Fit the survival join point model with zero join points, i.e., fit the proportional hazard relative survival model.
fit1 = joinpoint(~Year, data=prostate, numJPoints = 0);
# Get the estimates and standard errors of the annual changes of cumulative relative survival.
haz_ac = aapc(fit1, type="HAZ_AC(CS)", interval=5);

Run the code above in your browser using DataLab