recode_extreme: <Private function> Recode subjects as cases and potential...

View source: R/extreme_case_control.R

recode_extremeR Documentation

<Private function> Recode subjects as cases and potential controls for (M)ECC sampling

Description

<Private function> Recode subjects as cases and potential controls for (M)ECC sampling

Usage

recode_extreme(t, delta, tau0, tau)

Arguments

t

Event/censoring time.

delta

Event/censoring status.

tau0

Only subjects who had event before tau0 are considered as cases.

tau

Only subjects who did not have event at or before tau are eligible to be selected as controls. Extreme case-control (ECC) has tau = tau0, and more extreme case-control (MECC) has tau > tau0.


nyilin/SamplingDesignTools documentation built on Nov. 20, 2022, 8:07 a.m.