change_mecc_names: <private function> Change variable names in MECC sample

View source: R/extreme_case_control.R

change_mecc_namesR Documentation

<private function> Change variable names in MECC sample

Description

<private function> Change variable names in MECC sample

Usage

change_mecc_names(dat, mecc_names)

Arguments

dat

MECC data generated from draw_mecc.

mecc_names

Names to assign to the following four variables (in sequence): the indicator for extreme events, the estimated survival probability at each time point, the estimated survival probability at tau, and the ID for matched sets (see Details). These four variables correspond to the last four columns of the MECC sample.

Value

Returns dat with names changed for the outcome and set id columns.


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