census_weighting: Distance-weighting of spatial census variable

View source: R/census_weighting.R

census_weightingR Documentation

Distance-weighting of spatial census variable

Description

To account for the diminishing effect of spatial variables (e.g. SES exposure) as distance increases, we fitted a logit function to weight each incremental isochrone. From a census shapefile, the spatially weighted areal mean of the isochrones are calculated.

Usage

census_weighting(
  isochrones,
  tag = "tag",
  time = "time",
  census,
  b = 8,
  m = 0.5,
  cores = 1
)

Arguments

isochrones

object of class sf containing road features, derived from the isodistances function.

tag

character or NA; string containing the column name, that indicates the unique tag column.

time

character; string containing the column name, that indicates the time column.

b

numeric; slope of distance decay function

m

numeric; x for g(x) = 0.5

cores

the number of cores to use.

census_sf

object of class sf containing a census shapefile.

Details

For a detailed explanation of this method, see documentation on GitHub.

Value

A tibble containing the spatially weighted census variable(s) of the intersects of the isochrone and Landsat objects.


STBrinkmann/DRIGLUCoSE documentation built on Oct. 14, 2022, 11:26 a.m.