Skip to contents

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 or NULL

within_simple_sub

A list of results from wsub or NULL

simple_sub

A list of results from sub or NULL

between_avg_sub

A list of results from bsubmargin or NULL

within_avg_sub

A list of results from wsubmargin or NULL

avg_sub

A list of results from submargin or NULL

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.

Value

An object of class substitution

See also