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,
delta,
ref,
level,
weight,
parts,
summary
)
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
bsubmargins
orNULL
- within_avg_sub
A list of results from
wsubmargins
orNULL
- avg_sub
A list of results from
submargins
orNULL
- 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
- weight
The weight to use in calculation of the reference composition
- parts
The parts of the composition
- summary
A logical value specifying whether to summarize the results