get_cf_dens {geocausal} | R Documentation |
Get counterfactual densities
Description
'get_cf_dens' takes the target (expected) number, baseline density, and power density, and generates a hyperframe with counterfactual densities.
Usage
get_cf_dens(expected_number, base_dens, power_dens = NA, window)
Arguments
expected_number |
the expected number of observations. |
base_dens |
baseline density (im object) |
power_dens |
power density (im object) |
window |
owin object |
Details
There are two ways of generating counterfactual densities. First, users can keep the locations of observations as they are and change the expected number of observations. In this case, users do not have to set 'power_dens' and simply modify 'expected_number'. Alternatively, users can shift the locations as well. In this case, 'power_dens' must be specified. To obtain power densities, refer to [get_power_dens()].
Value
an im object of a counterfactual density
[Package geocausal version 0.3.2 Index]