Compute scaling factors for neighbor list components
scale_nb_components.Rdhttps://github.com/stan-dev/example-models/blob/master/knitr/car-iar-poisson/nb_data_funs.R
Examples
nb <- spdep::cell2nb(3, 3)
cityClimateHealth:::scale_nb_components(nb)
#> [1] 0.409709