A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [spatial-statistics]

The field of study concerning statistical methods that use space and spatial relationships (such as distance, area, volume, length, height, orientation, centrality and/or other spatial characteristics of data) directly in their mathematical computations.

Filter by
Sorted by
Tagged with
2
votes
0answers
20 views

How to quantify polygon as potential exposure to points

I have a set of points and a series of ellipses (polygons) that I can overlay on the points. Let's say that the ellipses represent where an individual spends most of their time—an activity space. And ...
-2
votes
0answers
20 views

How to simulate data from a population divided in clusters which are in turn divided in to strata in R from a uniform distribution [closed]

Of interest is to have data with missing values to be imputed nonparametrically...suppose we let y to be the survey variable and X be the the auxiliary variable.
0
votes
1answer
30 views

Perform calculations in GEE for each polygon in one layer [closed]

I have layer that contains many polygons. I want to run calcuation for each polygon in the layer so for each polygon I have the mean and the std. deviation and from this I can run calculation for each ...
0
votes
0answers
42 views

Comparing spatial distributions using QGIS

How can I compare the spatial distribution of sea surface temperatures measured during winter and summer using QGIS? Is there a statistical method that will allow determining if the spatial ...
1
vote
0answers
17 views

Can poly2nb() or nb2listw() be made time-sensitive?

I was wondering if there is a way to make the poly2nb() or nb2listw() temporally sensitive. For example, let's say we have a spatialobject that tracks a set of polygons for 2019 and 2020. Some of the ...
0
votes
0answers
12 views

Derivation of Mean and Variance of Moran's I Statictic [closed]

Does anyone have any insight on the actual derivations of the Expectation and Variance of I.
0
votes
1answer
39 views

Find optimal distance band after running Incremental Global Moran I with PySAL?

My observations are points along a transect, irregularly spaced. I aim at finding the distance values that maximize the clustering of my observation attribute, in order to use it in the following ...
0
votes
0answers
18 views

GRASS r.statistics method=average for non-integer maps

I need use the functionality of r.statistics using the average method. I have one map with cell clumps for a base layer and another containing various non-integer cell values for a cover layer. ...
1
vote
0answers
31 views

Count of majority value for each cell?

I ran 10 classifications (Random Trees) in ArcMap. Each time the output will be somewhat different. I have made a final map based on the majority value of each pixel using cell statistics (majority). ...
5
votes
1answer
73 views

Variogram for clustered data point

I would like to study the spatial dependency in my dataset of a variable (crop yield) spread across a country with 250 sites. A first guess was to use a variogram on the data. However, I am not sure ...
3
votes
0answers
36 views

Statistic for test of significant difference between 3 spatial distributions [closed]

I have three spatial averages of Particulate matter over a certain area as seen below. There clearly seems to be a difference between average PM concentrations for each of these months, but how can ...
1
vote
0answers
28 views

Aggregate Willmott and Matsuura Temperature Climate Data on Country Level

I'm looking for monthly mean temperature data on the country-level since 1900, or at least 1950, with temperature weighted according to population density. The common database for the spatial ...
0
votes
0answers
22 views

Field summary with hooking one side

I have line like Road and points are like housenumbers! I have fields like side and ID_T Highlighted blue apts having same ID_T because hooking one edge and side, if it hook right get R or else get ...
1
vote
1answer
39 views

Checking accuracy of supervised classification method in ArcGIS Pro

I have a question about my image classification method in ArcGIS Pro 2.4. I'm looking at a field of grain sorghum and doing a project that requires me to define certain features within the image for ...
-1
votes
2answers
41 views

R Remove upper and lower percentile from SpatialLines (DataFrame) [closed]

How can I make a selection depending on the statistics of a SpatialLinesDataFrame in R? The goal is to select and subset the lower and upper quartile of a data frame at once.
2
votes
2answers
48 views

Calculating number of points within polygon which are filtered according to a given rule

Description of my problem (somewhat simplified) I have two datasets: One polygon layer "villages" which represents the boundary of villages One point layer "buildings" which represent buildings. ...
0
votes
1answer
33 views

Choosing tool to create raster with probability of occurence on each cell using ArcGIS Desktop?

I have two different datasets: 1) seal occurence (point data) 2) fishing boat tracks (line data) First, I need to create two density maps, i.e. one for each dataset. ...
2
votes
1answer
83 views

Moran's I test on regression residuals with spatial autocorrelation

Suppose we want a regression model $y_i = f(x_i^t) + e_i$, where $y_i$ and $x_i$ are collected spatially, and we believe there would be spatial autocorrelation (SAC). I read some popular methods like ...
0
votes
0answers
20 views

Generating envelope for Gcross function in R?

I am using R to generate envelope for the Gcross function. At first I used Gcross to generate the theoretical value together with true G(r) value with border correction, my codes are: Bind_ppp <- ...
2
votes
1answer
147 views

R (spatstat, sp, sf): Grid a single polygon, divide, alphanumeric labels based on column/row

I am trying to take a polygon and add grid lines over top, then divide the polygon into many polygons based on the grids. I've accomplished this through st_make_grid() and raster::intersect(). The ...
2
votes
1answer
152 views

GeoPandas: Get distance from geom in tableA to a geom in tableB that matches attribute from tableA

UPDATE WITH SOLUTION (at bottom) Using GeoPandas I am trying to identify the distance between an election candidate's home address (Point) and the electoral district they are running in (Polygon). ...
1
vote
0answers
49 views

Multiple Spatial Point Patterns, create “average” heatmap

I am using R's spatstat package to analyze spatial patterns of objects across plant leaves. Let's say I have 10 leaves, each with corresponding X,Y coordinates of the objects and a window in the ...
0
votes
1answer
27 views

Assessing if two variables (measured at point locations) covary in space?

I have a number of (point) locations at which two variables are measured. The two variables proves correlated (when using Spearman's r; the direction of the correlation is irrelevant here). How can ...
1
vote
1answer
54 views

Apply function from rgeos package to data sets

I am using gDistance function from rgeos package to calculate the nearest distance from points to a polygon. Originally I used for loop to calculate the distance for each row in my points data set, ...
1
vote
1answer
39 views

Convert ppp object to multitpe object

I am working on spatial point pattern analysis using R. I have two sets of coordinates, both defined inside a 32*20 region. I first convert two data sets to ppp objects: Tumor_CD8 <- ppp(...
2
votes
0answers
31 views

Showing Statistics for Multiple Attribute using 'Show Statistical Summary' tool in QGIS

I need on the fly statistic as I select point on canvas. What the tool does though is give you the statistic and the given value for the Attribute selected. What if I need the value of multiples ...
0
votes
1answer
47 views

Extracting basic statistics (raster data) from different latitudes using R? [closed]

I want to extract the mean, min and max stats from latitude -50 to 0 and from 0 to 50 etc. No idea how to do this. I would prefer using R for this as I have a lot of these to do.
1
vote
2answers
32 views

Proportion of polygon classes in each multi-ring buffers

I have a landcover map with many irregular polygons, with each polygon a uniform habitat type. I have a second shapefile of points, and a third shapefile with multi-ring buffers around those points. I ...
2
votes
2answers
237 views

Calculate coverage percentage of an area covered by shapefiles using GDAL? [closed]

I have thousands of shapefiles covering around the world. I need to calculate coverage percentage. For example, a pixel located in Hawaii was covered by 100 of all shapefiles, then this pixel value of ...
2
votes
1answer
93 views

Spatial statistics within a polygon in Google Earth Engine

I am wondering if the information provided in this exchange is still accurate. number of pixels inside a polygon in Google Earth Engine I am trying to calculate mean precipitation within a river ...
1
vote
0answers
41 views

Spatial autocorrelation coefficients interpretations

I have this result for SDM estimates in R with R2 of 54%. Is the lambda (= -2.04) which is the spatial autocorrelation coefficient a plausible value? I have read in a book that [Elhorst, 2014, P.14], ...
1
vote
0answers
16 views

Compare two forest loss classifications and fill missing years: accuracy assesment or correlation?

I have a time series of forest loss rasters originating from two different classifications with some missing yearly data. Rasters represents forest loss (1) or no disturbance (0) in specific year. I ...
2
votes
1answer
90 views

Flow data distribution within features of overlapping layers

I want to improve/adjust/comprehend the formula (see below) that was used in my previous question: Transferring flows (connections + values) between polygons for calculating flow values of mobile data ...
0
votes
1answer
37 views

Point Feature Percentiles: National Rank vs Local Rank in ArcGIS

I have an idea in my head, but need assistance in how to process my data to get the answers I need. Restrictions: Where I work we use Esri products, and third-party packages and add-ins are ...
0
votes
0answers
132 views

Error: trying to get slot “polygons” from an object (class “data.frame”) that is not an S4 object

I am trying to join .csv file data to shape file data using @data slot. I am getting error "trying to get slot "polygons" from an object (class "data.frame") that is not an S4 object " Here is my ...
4
votes
0answers
49 views

Quantifying similarity between two independent areas?

I'm assessing areas for suitability for species relocations, so essentially I'm looking to quantify how similar a possible relocation site is to a source site in several metrics. The species may ...
0
votes
1answer
566 views

Hotspot analysis with geopandas? [closed]

Is it possible to perform a hotspot analysis (like the one you can do in ArcGIS - Getis-Ord Gi*) with Geopandas, or with any other Python library?
3
votes
0answers
53 views

Test the relationship between two point patterns

I have two point patterns obtained from medical images. Points are used to represent cell markers. By visualization, the point pattern A is extremely possible to be a subset of point pattern B. So is ...
0
votes
0answers
18 views

Determining spatial relationships between two non-homogenous spatial variables

I'm working on a problem to understand the relationship between two point-based datasets with different sampling patterns. We surveyed random subset of properties in a neighborhood for the presence ...
1
vote
1answer
210 views

Weighted mean of raster by polygons in R?

I have two rasters, raster_a and raster_b, and a shapefile, world_shapefile. Both rasters are of the world extent and overlay each other. What I want to do is to create a weighted average of raster_a,...
0
votes
0answers
78 views

Generating Pseudo-Absences in spatialEco?

I want to generate pseudo absences based on kernel density estimate from a linear feature spatial line layer, where pseudo absences have a higher probability of being sampled near a line. I have ...
3
votes
0answers
33 views

Raster statistics per latitude cross-section

I want a profile graph with biomass volume across a landscape's latitude. Im using ArcGis Pro 2.3.3. It's hard to explain so I'll provide a rough sketch of the desired result: The sketch shows a ...
0
votes
0answers
21 views

How long should a spatial mixed model with spaMM take?

I have a dataset that's about 5k lines long, with a binomial response variable, five continuous fixed effects, and one random effect with seven levels. I initially ran a model with glmer{lme4}: glmer....
0
votes
1answer
64 views

What does first requirement for LISA statistic mean?

According to Anselin, a LISA statistic have to satisfy two requirements: The LISA for each observation gives an indicator of the extent of significant spatial clustering of similar values around that ...
1
vote
1answer
136 views

What unit is returned by the ncf::correlog function?

I'm using the correlog function from the ncf package to figure out the distance between points at which spatial autocorrelation isn't detected. I was wondering what unit was being returned in the ...
0
votes
0answers
39 views

Comparing two spatial point processes (Cross K Function)

Suppose we have two spatial point process on the same space. One has $n_1$ points, the other $n_2$ points. I have been reading about statistically testing for independence, attraction or repulsion ...
0
votes
0answers
15 views

Simulating random field with power law distribution using ArcGIS Desktop?

As far as I know, there are a lot of methods developed for simulating 2D random field with Gaussian distribution, such as geostatistical method, Fourier transform, etc. But a lot of geoscientific ...
1
vote
0answers
54 views

Overcoming spatial bias in ArcMap or ArcGIS Pro?

I have a shapefile showing invasive plant locations but they mostly collected from more accessible places such as near roads or hiking trails. Is there a method to correct this bias in ArcGIS ...
2
votes
1answer
34 views

Counting the number of shared point within polygons [closed]

I have a set of points on a map, each with a unique location id, with one or more points within a number of polygons with unique polygon ids. I am trying to associate each location id with the number ...
1
vote
0answers
67 views

Raster correlation: Error (arg6) in raster.modified.ttest (R)

I am performing pairwise spatial correlation of 6 rasters using the raster.modified.ttest() function in R, as per this very useful post. I have consistently had the following error with my data; ...