create_substitution function

Constructor function for substitution class.

Constructor function for substitution class.

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 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 bsubmargins or NULL
  • within_avg_sub: A list of results from wsubmargins or NULL
  • avg_sub: A list of results from submargins or NULL
  • 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

Returns

An object of class substitution

See Also

substitution