sample_data {WeightCalibSurvival}R Documentation

Sample Data for examples

Description

Sample cohort with simulated nested case-control study where N = 1000 and 173 cases with m = 1 control per case. This dataset is used to run the provided examples in this package.

Usage

sample_data

Format

A data frame with N = 1000 rows and 10 variables:

eventime

time-to-event (event = either case or censored)

ind.fail

binary outcome status (1 = case; 0 = non-case)

X1

binary model covariates with time-varying effects; available in a full cohort

X2

binary model covariates with time-varying effects; available in a full cohort

Z1

binary model covariates with time-invariant effects; available in a full cohort

Z2

binary model covariates with time-invariant effects; only available in nested case-control samples; NA if missing

U

an ancillary predictor for Z2

ind.ph2

phase 2 inclusion status (1 = included as a case or selected control; 0 = otherwise)

nrisk

number of at-risk subjects at each 'eventime'

incl.prob

inclusion probability

Examples


 data(sample_data, package="WeightCalibSurvival")

 sample_data[1:5, ]


[Package WeightCalibSurvival version 1.0.0 Index]