Index of "interesting" elements for the carehomes model. This function conforms to the mcstate interface.

carehomes_index(info)

Arguments

info

The result of running the $info() method on an initialised basic model

Value

A list with element run, indicating the locations of (in order) (1) ICU, (2) general, (3) deaths in community, (4) deaths in hospital, (5) total deaths, (6) cumulative confirmed admissions,(7) cumulative confirmed new admissions, (8) probability of a positive sero test, (9) probability of a positive pillar 2 test, and with element state containing the same values followed by 17 S compartments (one per age group, then one for carehome workers and carehome residents respectively) and 17 "cumulative admission" compartments.

Examples

p <- carehomes_parameters(sircovid_date("2020-02-07"), "england") mod <- carehomes$new(p, 0, 10) carehomes_index(mod$info())
#> $run #> icu general deaths_comm deaths_hosp admitted #> 7 8 11 10 3 #> new sero_prob_pos sympt_cases #> 4 13 14 #> #> $state #> icu general deaths_comm deaths_hosp admitted #> 7 8 11 10 3 #> new sero_prob_pos sympt_cases hosp deaths #> 4 13 14 9 12 #> infections S_0 S_5 S_10 S_15 #> 2 15 16 17 18 #> S_20 S_25 S_30 S_35 S_40 #> 19 20 21 22 23 #> S_45 S_50 S_55 S_60 S_65 #> 24 25 26 27 28 #> S_70 S_75 S_80 S_CHW S_CHR #> 29 30 31 32 33 #> cum_admit_0 cum_admit_5 cum_admit_10 cum_admit_15 cum_admit_20 #> 129 130 131 132 133 #> cum_admit_25 cum_admit_30 cum_admit_35 cum_admit_40 cum_admit_45 #> 134 135 136 137 138 #> cum_admit_50 cum_admit_55 cum_admit_60 cum_admit_65 cum_admit_70 #> 139 140 141 142 143 #> cum_admit_75 cum_admit_80 cum_admit_CHW cum_admit_CHR #> 144 145 146 147 #>