forked from statmlhb/CVEK
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgenerate_formula.Rd
37 lines (29 loc) · 897 Bytes
/
generate_formula.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/util.R
\name{generate_formula}
\alias{generate_formula}
\title{From Vectors to Single Variables}
\usage{
generate_formula(formula, label_names)
}
\arguments{
\item{formula}{(formula) A symbolic description of the model to be fitted.}
\item{label_names}{(list) A character string indicating all the interior
variables included in each group of random effect.}
}
\value{
\item{generic_formula}{(formula) A symbolic description of the model
written in single variables format.}
\item{length_main}{(integer) A numeric value indicating the length of main
random effects.}
}
\description{
Transform format of predictors from vectors to single variables.
}
\examples{
generic_formula0 <- generate_formula(formula = Y ~ X + Z1 + Z2,
label_names = list(Z1 = c("z1", "z2"), Z2 = c("z3", "z4")))
}
\author{
Wenying Deng
}