| nbmatrix-class | R Documentation |
"nbmatrix"The class "nbmatrix" contains the results of a neighborhood matrix analysis,
built by the nbmatrix function and the "nbmatrix" methods.
Use summary(nbmatrix) and plot(nbmatrix) for results summary and plotting, respectively.
Objects may be created by the function nbmatrix.
nbObject of class "nb": Neighborhood matrix list generated by spdep::poly2nb
nbmatObject of class "data.frame": Linear neighborhood matrix calculated from the nb list
weightsObject of class "listw": Spatial weights generated by spdep::nb2listw
nbcountObject of class "data.frame": Table with the number of neighbors
regions_col_nameObject of class "character": Column name which represents the unique ID of the polygon features
geodataObject of class "sf": Original geodata (sf object) with unique ID and "geometry" columns
NObject of class "numeric": No. of features (total, with valid unique ID, with valid geometry)
N_neighborsObject of class "numeric": Total and average no. of neighbors
polygon_dataObject of class "sf": Geodata (sf object containing the geometries and the analysis column)
nbmat_dataObject of class "data.frame": Neighborhood matrix data
nbmat_data_aggregateObject of class "data.frame": Aggregated neighborhood matrix data
funcObject of class "character": Function used for the calculation of the neighborhood statistic
moranObject of class "list": Results of the Global Moran's I calculation (estimate, expected value, etc.)
getisordObject of class "list": Results of the Global Getis-Ord calculation (estimate, expected value, etc.)
gstarObject of class "list": Results of the Local Gi* calculation (data.frame with estimates and expected values etc., analysis configuration)
data_colObject of class "character": Column name which represents the analysis data for nbstat, Moran's I, etc.
configObject of class "list": Configuration details with respect to zero policy of the neighborhood matrix etc.
timestampObject of class "list": Time stamps of any update of the instance
signature(object = "nbmatrix"): Calculates a specified statistic for the neighboring regions.
signature(object = "nbmatrix"): Calculates the Global Moran's I statistic for the neighborhood matrix
signature(object = "nbmatrix"): Calculates the Global Getis-Ord statistic for the neighborhood matrix
signature(object = "nbmatrix"): Calculates the Local Getis-Ord Gi* statistic for the neighborhood matrix
signature(x = "nbmatrix"): Plots the results of the calculation (Neighborhood statistic or Local Getis-Ord Gi*)
signature(x = "nbmatrix"): Prints an nbmatrix object; use summary(nbmatrix) for results
signature(object = "nbmatrix"): Prints an nbmatrix object; use summary(nbmatrix) for results
signature(object = "nbmatrix"): Prints a summary of nbmatrix objects (results of the spatial statistics calculation)
Thomas Wieland
Cliff AD, Ord JK (1981) Spatial Processes: Models & Applications. https://archive.org/details/spatialprocesses0000clif
GeoDa Center (2026) GeoDa. An Introduction to Spatial Data Science. https://geodacenter.github.io/
Wieland T (2020) Flatten the Curve! Modeling SARS-CoV-2/COVID-19 Growth in Germany at the County Level. REGION 7(2), 43–83. \Sexpr[results=rd]{tools:::Rd_expr_doi("https://doi.org/10.18335/region.v7i2.324")}
Wieland T (2022) Spatial patterns of excess mortality in the first year of the COVID-19 pandemic in Germany. European Journal of Geography 13(4), 18-33. \Sexpr[results=rd]{tools:::Rd_expr_doi("https://doi.org/10.48088/ejg.t.wie.13.4.018.033")}
nbstat, moran, getisord, gstar, nbmatrix
showClass("nbmatrix")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.