get_stage2 | R Documentation |
Create a data set for stage 2 by sampling with replacement from the stage 1 data set
get_stage2(datalist1, seed)
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 |
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
Svetlana Cherlin, James Wason
analyse_realdata
, function.
data(realdata_stage1)
data(realdata_stage2)
real <- analyseReal(realdata_stage1, realdata_stage2, 0.04, 0.01, 123)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.