incidence.sample: Generates incidence sample for discrete survival data

Description Usage Arguments Value Author(s) See Also

Description

Generates incidence sample for discrete survival data. Uses output from create.discrete() or user must match the naming structure. For each event, a random sample from the risk set at the same time window is selected.

Usage

1
2
incidenceSample(long.DATA, n.controls = 1)
createDiscrete(time, event, dataX, delta.upper = NULL, n.delta=100)

Arguments

long.DATA

output from create.discrete

n.controls

Number of randomly sampled observations. If set to 0, the function returns the entire long.DATA data frame.

time

follow-up time

event

event indicator

dataX

data.frame with covariates

delta.upper

used to pass in already defined time windows

n.delta

number of time windows

Value

Returns a data frame containing the subsample

Author(s)

Eric C Polley ecpolley@berkeley.edu

See Also

SuperLearner.hazard


ecpolley/SuperLearner_Old documentation built on May 15, 2019, 10:08 p.m.