get_stage2: Simulate a data set for stage 2 for the the cross-validate...

View source: R/getStage2.R

get_stage2R Documentation

Simulate a data set for stage 2 for the the cross-validate adaptive enrichment risk scores (CADEN) design

Description

Create a data set for stage 2 by sampling with replacement from the stage 1 data set

Usage

get_stage2(datalist1, seed)

Arguments

datalist1

A list with two data frames (patients, covar) and avector of binary responses patients: a data frame with one row per patient and the following columns: FID (family ID), IID (individual ID), treat (1 for treatment and 0 for control) covar: a data frame with covariate data response: a vector of simulated binary responses

seed

Value

datalist2 A list with two data frames (patients, covar) and avector of binary responses patients: a data frame with one row per patient and the following columns: FID (family ID), IID (individual ID), treat (1 for treatment and 0 for control) covar: a data frame with covariate data response: a vector of simulated binary responses

Author(s)

Svetlana Cherlin, James Wason

See Also

analyse_realdata, function.

Examples

data(realdata_stage1)
data(realdata_stage2)
real <- analyseReal(realdata_stage1, realdata_stage2, 0.04, 0.01, 123)

svetlanache/caden documentation built on Aug. 27, 2023, 3:36 p.m.