Skip to content

geostan 0.3.0

Compare
Choose a tag to compare
@ConnorDonegan ConnorDonegan released this 12 Jul 02:57
· 87 commits to main since this release

New additions

  • New exploratory spatial data analysis functions have been added: the Geary Ratio (GR) and the local Geary's C. These complement the Moran coefficient and local Moran's I.
  • The vignette on spatial autocorrelation has been updated and expanded, including with a short discussion of exploratory spatial data analysis (ESDA).
  • The vignette on spatial measurement error models/working with ACS data has been completely re-written.

Minor changes

  • geostan models can now be used with the bridgesampling package for model camparison with Bayes factors (e.g., use bridge_sampler(geostan_fit$stanfit)). By default, geostan only collects MCMC samples for parameters that are expected to be of some interest for users. To become compatible with bridgesampling, the keep_all argument was added to all of the model fitting functions. For important background and details see the bridgesampling package documentation and vignettes on CRAN.
  • stan_car now has an option to provide the connectivity matrix C, which is used to calculate spatial-lag of X (SLX) terms and residual spatial autocorrelation. Previously, there was no option to provide this matrix, as it was taken from the car_parts argument. However, that choice is only appropriate when the WCAR specification is used. Now, if C is missing and the WCAR specification has not been used a warning will appear.
  • Previously, the lisa function would automatically center and scale the variate before computing local Moran's I. Now, the variate will be centered and scaled by default but the user has the option to turn the scaling off (so the variate will be centered, but not divided by its standard deviation). This function also row-standardized the spatial weights matrix automatically, but there was no reason why. That's not done anymore.