Constructor function for substitution
class.
Source: R/substitution-helpers.R
create_substitution.Rd
Constructor 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
bsub
orNULL
- within_simple_sub
A list of results from
wsub
orNULL
- simple_sub
A list of results from
sub
orNULL
- between_avg_sub
A list of results from
bsubmargin
orNULL
- within_avg_sub
A list of results from
wsubmargin
orNULL
- avg_sub
A list of results from
submargin
orNULL
- brmsformula
A
brmsformula
object- 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.