gail_rap: Region Assignment Probability

Description Usage Arguments Details Value Note See Also

Description

Function to calculate the (relative) probability of assigning an irregular unit to a neighboring regular unit.

Usage

1
gail_rap(rUnits, iUnits, rUclose, rUdist, max_dist, method, index_val)

Arguments

rUnits

Data frame of regular spatial units.

iUnits

Data frame of irregular spatial unit being allocated.

rUclose

The set of regular units that are considered close (within max_dist)

rUdist

Vector of distances of rUclose to iUnits

max_dist

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

method

The method of allocation, see details.

index_val

If method="index", the name of the variable (in rUnits) to be used as an index variable.

Details

Value

Returns a set of weights which has length equal to the number of spatial units in rUclose.

Note

This is an internal function designed to be used within gail. This function provides several default options for the RAP argument to gail. Users can alternatively supply a custom function as the argument for the RAP argument in gail, provided it accepts the same arguments and the returns is the same type and dimension.

The returned value is passed to sample as the argument prob.

See Also

gail


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