Constructor function for substitution class.
Source: R/substitution-helpers.R
create_substitution.RdConstructor function for substitution class.
Usage
create_substitution(
between_simple_sub,
within_simple_sub,
simple_sub,
between_avg_sub,
within_avg_sub,
avg_sub,
brmsformula,
delta,
ref,
level,
parts,
weight,
at,
type
)Arguments
- between_simple_sub
A list of results from
bsuborNULL- within_simple_sub
A list of results from
wsuborNULL- simple_sub
A list of results from
suborNULL- between_avg_sub
A list of results from
bsubmarginorNULL- within_avg_sub
A list of results from
wsubmarginorNULL- avg_sub
A list of results from
submarginorNULL- brmsformula
A
brmsformulaobject- delta
A numeric vector of the amount of substitution
- ref
A character value specifying the reference grid
- level
A character value specifying the level of substitution
- parts
The parts of the composition
- weight
The weight to use in calculation of the reference composition
- at
An named list of levels for the corresponding variables in the reference grid or
NULL- type
A character value specifying the type of substitution.