set_strat: Stratification setup by covaraites

Description Usage Arguments Details Value

View source: R/utils.R

Description

set_strat makes group indicators based on model_options$X_reg_*

Usage

1
set_strat(X, X_reg)

Arguments

X

A data frame of covariates

X_reg

The vector of covariates that will stratify the analyses. These variables have to be categorical.

Details

the resuls from this function will help stratify etiology or FPR for different strata; the ways of stratification for etiology and FPR can be based on different covariates.

Value

A list with following elements:


zhenkewu/nplcm documentation built on May 4, 2019, 10:19 p.m.