Get a data frame with one row for each change made to each state variable at each time step.
Arguments
- spec
Model specification (
mp_tmb_model_spec
).
Examples
("starter_models"
|> mp_tmb_library("sir", package = "macpan2")
|> mp_change_frame()
)
#> state change
#> 1 S -infection
#> 2 I +infection
#> 3 I -recovery
#> 4 R +recovery