dataK {survivalPLANN} | R Documentation |
Observed Mortality Data of Patients with Cancer
Description
An data frame with a simulated sample of patients with a cancer and their follow-up.
Usage
data(dataK)
Format
The format is "data.frame". The names of the columns are:
sex | A numeric vector equals 1 for male and 2 for male. |
age | A numeric vector with the age of the patient at the time of cancer diagnosis (baseline). |
year | A numeric vector with the date of diagnosis (in date format, i.e., |
the number of days since 1Jan60). | |
stade | A numeric vector with the disease stage: 1 for advanced cancer and 0 otherwise. |
according to the time. Only the dimension related to sex equals 1. |
|
delay | A numeric vector indicating early diagnosis: 1 for delayed diagnosis and 0 otherwise. |
biomarker | A numeric vector with a biomarker associated with cancer-specific mortality. |
sexchara | A character vector with the patient gender: "male" or "female". |
event | A numeric vector equals 1 for death and 0 for censoring. |
time | A numeric vector with the follow-up time in days since the cancer diagnostic. |
Details
The data frame was obtained by simulations. The French mortality tables were used for the expected mortality and a proportional hazard model with an Exponential distribution for the baseline hazard.
Examples
data(dataK)
# Plotting the observed survival by using the Kaplan-Meier estimator
plot(survfit(Surv(time/365.241, event) ~ 1, data = dataK),
ylab="Patient survival", xlab="Post-diagnostic time in years")
[Package survivalPLANN version 0.1 Index]