- object
A fitted brmcoda object.
- delta
A integer, numeric value or vector indicating the amount of substituted change between compositional parts.
- ref
Either a character value or vector or a dataset.
Can be "grandmean" and/or "clustermean", or
a data.frame or data.table of user's specified reference grid consisting
of combinations of covariates over which predictions are made.
User's specified reference grid is only possible for simple substitution.
Single level models are default to "grandmean".
- level
A character string or vector.
Should the estimate of multilevel models focus on the "between" and/or "within" or "aggregate" variance?
Single-level models are default to "aggregate".
- summary
A logical value to obtain summary statistics instead of the raw values. Default is TRUE.
Currently only support outputing raw values for model using grandmean as reference composition.
- aorg
Internal use. A logical value indicating whether the results should be average across reference grid.
- at
An optional named list of levels for the corresponding variables in the reference grid.
- parts
A optional character string specifying names of compositional parts that should be considered
in the substitution analysis. This should correspond to a single set of names of compositional parts specified
in the complr object. Default to the first composition in the complr object.
- base
An optional base substitution.
Can be a data.frame or data.table of the base possible substitution of compositional parts,
which can be computed using function build.base.
- type
A character string to indicate the type of substitution.
If "one-to-all", all possible one-to-remaining reallocations are estimated.
If "one-to-one", all possible one-to-one reallocations are estimated.
If "equal", give equal weight to units (e.g., individuals).
If "proportional", weights in proportion to the frequencies of units being averaged
(e.g., observations across individuals).
Default to "equal" for ref = "grandmean" and "proportional" for ref = "clustermean".
- weight
A character value specifying the weight to use in calculation of the reference composition.
- scale
Either "response" or "linear".
If "response", results are returned on the scale of the response variable.
If "linear", results are returned on the scale of the linear predictor term,
that is without applying the inverse link function or other transformations.
- cores
Number of cores to use when executing the chains in parallel,
we recommend setting the mc.cores option
to be as many processors as the hardware and RAM allow (up to the number of compositional parts).
For non-Windows OS in non-interactive R sessions, forking is used instead of PSOCK clusters.
Default to "one-to-one".
- ...
Further arguments passed to posterior_summary.