gail: Geo-Assignment of Irregular Locations

Description Usage Arguments Details Value See Also

Description

Stochastic allocation of irregular spatial units to nearby regular spatial units. Both sets of of spatial units are assummed to be represented by their centroid (hence they should be POINT objects, and not POLYGON objects). Several methods are available for allocating irregular units, including equal probability, inverse centroid distance, and use of an index variable. Alternatively the user may specify a custom function to determine allocation probabilities.

Usage

1
2
gail(sp_units, cases, suid, num_cases, max_dist, RAP = gail_rap,
  seed = NULL, unit_value = "m", convert = FALSE, ...)

Arguments

sp_units

Data frame of regular spatial units, see details.

cases

Data frame containing the the cases, see details.

suid

Column name in both cases and sp_units which contains the spatial unit identification / name.

num_cases

Column name from cases containing the number of cases, see details.

max_dist

The maximum distance at which two locations can be considered neighbors.

RAP

Function to be used for calculating assignment probabilities, see details.

seed

If given, sets the seed for the RNG.

unit_value

The units of distance, default to meters. See units::set_units.

convert

Logical, convert returned object to Spatial* type objects (from sp).

...

Space for additional arguments (e.g., for RAP).

Details

The dataset of cases should be aggregated and have a column for the number of cases. If the column given by num_cases does not exist in cases, then cases will be aggregated by suid to create the column.

The user may also specify only method and/or index_val to control the behavior of gail_rap appropriately.

Value

Returns a list containing four elements:

See Also

gail_mc


jelsema/GAIL documentation built on June 29, 2019, 11:48 a.m.