compute_metric: Compute the pullback metric tensor from an sf data frame and...

Description Usage Arguments Value

Description

Compute the pullback metric tensor from an sf data frame and an accompanying set of demographic data.

Usage

1
2
compute_metric(tracts, data, km = T, r_sigma = 100, s_sigma = 1,
  smooth = F, hessian = euc_)

Arguments

tracts

the sf data.frame supplying geographic information

data

the tibble supplying demographic data

km

whether to compute rectangular distances in km

r_sigma

regression smoother for derivative computation

s_sigma

geographic smoother for derivative computation

smooth

boolean should a geographic smoother be used for derivatives?

hessian

the hessian function to be used, one of c(DKL_, euc_, cum_euc_)

Value

a tibble in which each row has a list-column containing the pullback metric tensor stored as a matrix.


PhilChodrow/compx documentation built on May 8, 2019, 1:34 a.m.