Skip to contents

One-time preparation step called before the decomposition loop. Use this for expensive setup operations like running an initial simulation to extract denominators, converting counts to percentages, etc.

Usage

prepare_decomp(model, params, ...)

Arguments

model

An S3 model object

params

Model parameters

...

Additional arguments

Value

A list with components:

model

Possibly modified model object

params

Possibly modified parameters

full_sim

Optional: output of a full (observed) simulation, used for warm starts and as the "all-on" reference

full_summary

Optional: summary of the full simulation

Details

The default method returns the model and params unchanged.