View source: R/census_weighting.R
census_weighting | R Documentation |
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.
census_weighting( isochrones, tag = "tag", time = "time", census, b = 8, m = 0.5, cores = 1 )
isochrones |
object of class |
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 |
For a detailed explanation of this method, see documentation on GitHub.
A tibble
containing the spatially weighted census variable(s) of the
intersects of the isochrone and Landsat objects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.