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 predictor.

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 effects.

Author(s)

Wenying Deng

Examples

1
2
generic_formula0 <- generate_formula(formula = Y ~ X1 + X2,
label_names = list(X1 = c("x1", "x2"), X2 = c("x3", "x4")))

IrisTeng/CVEK documentation built on May 31, 2019, 4:50 p.m.