Learn R Programming

survivalPLANN (version 0.4)

dataK: 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)

Arguments

Format

The format is "data.frame". The names of the columns are:

sexA numeric vector equals 1 for male and 2 for male.
ageA numeric vector with the age of the patient at the time of cancer diagnosis (baseline).
yearA numeric vector with the date of diagnosis (in date format, i.e.,
the number of days since 1Jan60).
stadeA 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.
delayA numeric vector indicating early diagnosis: 1 for delayed diagnosis and 0 otherwise.
biomarkerA numeric vector with a biomarker associated with cancer-specific mortality.
sexcharaA character vector with the patient gender: "male" or "female".
eventA numeric vector equals 1 for death and 0 for censoring.
timeA 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

Run this code
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")

Run the code above in your browser using DataLab