`get_distexp()` takes counterfactual densities and and returns the expected number of treatment events based on distances from a user-specified focus.
get_distexp(
cf_sim_results,
entire_window,
dist_map,
dist_map_unit = "km",
use_raw = FALSE
)
A list of resulting dataframe (`result_data`), windows (`window_list`), data for distance quantiles, and a window object for the entire window
output of `sim_cf_dens()`
owin object of the entire region
im object whose cell values are the distance from a focus (e.g., city)
either `"km"` or `"mile"`
logical. `use_raw` specifies whether to use the raw value of expectations or percentiles. By default, `FALSE`.