spatial_hetero_test {hgwrr} | R Documentation |
Generic method to test spatial heterogeneity
Description
Generic method to test spatial heterogeneity
Usage
spatial_hetero_test(x, ...)
## Default S3 method:
spatial_hetero_test(x, ...)
## S3 method for class 'matrix'
spatial_hetero_test(x, coords, ...)
## S3 method for class 'numeric'
spatial_hetero_test(x, coords, ...)
## S3 method for class 'vector'
spatial_hetero_test(x, coords, ...)
## S3 method for class 'data.frame'
spatial_hetero_test(x, coords, ...)
## S3 method for class 'sf'
spatial_hetero_test(x, ...)
Arguments
x |
The data to be tested. |
... |
Arguments passed on to
|
coords |
The coordinates used for testing.
Accepts a matrix or vector.
For matrix, it needs to have the same number of rows as |
Methods (by class)
-
spatial_hetero_test(default)
: Default behavior. -
spatial_hetero_test(matrix)
: For the matrix,coords
is necessary. -
spatial_hetero_test(numeric)
: Takesx
as values of a series variables stored by column, andcoords
as coordinates for each row inx
. -
spatial_hetero_test(vector)
: Takesx
as values of the variable, andcoords
as coordinates for each element inx
. -
spatial_hetero_test(data.frame)
: Takesx
as variable values (each column is a variable), andcoords
as coordinates for each row inx
. -
spatial_hetero_test(sf)
: For thesf
object, coordinates of centroids are used. Only the numerical columns are tested.