However, it requires a prespecified object, x, which would be the distances between facilities (AEDs) and users (OHCAs) in it's wide form, and the variable is_covered. Ideally this distance calculation can be performed quickly using some nifty c++ code, so that this function doesn't grind and grind.
Then there's model_coverage and the subsequent tidying functions to produce tables. These need to be
This final function assumes that the model coverage problem has been mapped over a few different n_aed levels, and produces a table of how coverage changes from n_aeds = 20 ... 100.
OK just while I remember, there need to be a couple of functions that assist in viewing the coverage from the model, before and after.
First function,
table_coverage
, looks like the followingHowever, it requires a prespecified object,
x
, which would be the distances between facilities (AEDs) and users (OHCAs) in it's wide form, and the variableis_covered
. Ideally this distance calculation can be performed quickly using some nifty c++ code, so that this function doesn't grind and grind.Then there's
model_coverage
and the subsequent tidying functions to produce tables. These need to beThis final function assumes that the model coverage problem has been mapped over a few different
n_aed
levels, and produces a table of how coverage changes from n_aeds = 20 ... 100.Would be really cool to functionalise this.