build_covform {dmutate} | R Documentation |
Build a object or formula to use with covset.
Description
build_covform
formulates then parses a formula that
can be used in a covset. build_covobj
just assembles
the object directly.
Usage
build_covform(
var,
dist,
args,
lower = NULL,
upper = NULL,
by = NULL,
envir = parent.frame()
)
build_covobj(
var,
dist,
args,
upper = NULL,
lower = NULL,
by = NULL,
envir = parent.frame()
)
Arguments
var |
variable name, character |
dist |
distribution function name |
args |
character vector of arguments for |
lower |
lower limits for var |
upper |
upper limits for var |
by |
grouping variable |
envir |
environment for resolving symbols in expressions |
Details
When length of var
is greater than one,
both lower
and upper
must be named vectors when specifiation is
made. However, it is acceptable to specify nothing or to use unnamed limits
when the lenght of var is 1.
Examples
build_covform("WT", "rnorm", c("mu = 80", "sd = 40"), lower = 40, upper = 140)
build_covform("WT", "rnorm", "80,40", lower = 40, upper = 140)
build_covobj("WT", "rnorm", "80,40", lower = 40, upper = 140)
[Package dmutate version 0.1.3 Index]