setup_RE_model: Setup random effects part for longitudinal marker k
Description
Setup random effects part for longitudinal marker k (internal function)
input:
Usage
setup_RE_model(formula, dataset, k)
Value
colnames(RE_mat) names of the random effects
RE_mat values of the random effects
Arguments
- formula
with lme4 format (fixed effects and random effects in the same object)
- dataset
that contains the outcome
- k
identifies the longitudinal marker among 1:K markers
output: