#load the SEER-9 prostate cancer dataset.
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);
# Fit the survival join point model on a subset of the dataset.
fit2 = joinpoint(~Year, data=prostate, Site_and_age_for_total_stage == 18 & Sex == 1, numJPoints = 0);
# Fit the survival join point model for non-SEER*Stat datasets.
fit3 = joinpoint(~Alive_at_Start + Died + Lost_to_Followup + Expected_Survival_Interval
+ Interval + Year, prostate, numJPoints = 0);
plot(fit1);
Run the code above in your browser using DataLab