generate_formula: From Vectors to Single Variables

Description Usage Arguments Value Author(s) Examples

Description

Transform format of predictors from vectors to single variables.

Usage

1
generate_formula(formula, label_names)

Arguments

formula

(formula) A symbolic description of the model to be fitted.

label_names

(list) A character string indicating all the interior variables included in each group of random effect.

Value

generic_formula

(formula) A symbolic description of the model written in single variables format.

length_main

(integer) A numeric value indicating the length of main random effects.

Author(s)

Wenying Deng

Examples

1
2
generic_formula0 <- generate_formula(formula = Y ~ X + Z1 + Z2,
label_names = list(Z1 = c("z1", "z2"), Z2 = c("z3", "z4")))

statmlhb/CVEK documentation built on May 5, 2019, 3:47 a.m.