Compute "Rt" for a set of simulated trajectories (e.g., the result
of dust::dust_iterate(), mcstate::pmcmc() or
mcstate::pmcmc_predict(). The trajectories may or may not share
parameters.
carehomes_Rt_trajectories( step, S, pars, initial_step_from_parameters = TRUE, shared_parameters = NULL )
| step | A vector of steps |
|---|---|
| S | A 3d (19 x n trajectories x n steps) array of "S" compartment counts |
| pars | Either a single |
| initial_step_from_parameters | If |
| shared_parameters | Should |
As for carehomes_Rt(), except that every element is a
matrix, not a vector.