Interpolation

Content for Monday, October 27, 2025

There are many cases in the analysis of social and ecological data where we might be missing data from a population or region where we hope to make inference or conduct further analysis. When the data is not spatial, we use imputation as a statistically principled approach for filling in these gaps. When the data is spatial, we use interpolation as a way of assigning values to locations where the data is missing such that we leverage the fact that most data is spatially autocorrelated. There are two general approaches for assigning these values: deterministic and probabilistic. Today we’ll take a look at deterministic approaches for interpolating missing data.

Resources

Bigger Picture

Technical Details

  • The Spatial Interpolation chapter of (Pebesma and Bivand 2023) provides some code for using sf and stars to create spatial interpolation. We’ll be replacing the raster operations with terra functions, but the workflow is the same.

  • Spatial interpolation in R from Manuel Gimond provides a less statistical overview of the same workflow and uses terra instead of stars.

Objectives

By the end of today you should be able to:

  • Describe reasons for interpolating data

  • Distinguish between deterministic and probabilistic methods for interpolation

  • Characterize the difference between distance- and spline-based interpolation

  • Implement two common interpolation methods in R

View all slides in new window Download PDF of all slides

References

Alessa, L. N., A. A. Kliskey, and G. Brown. 2008. Social–ecological hotspots mapping: A spatial approach for identifying coupled social–ecological space. Landscape and Urban Planning 85:27–39.
Bahn, V., and B. J. McGill. 2007. Can niche-based distribution models outperform spatial interpolation? Global Ecology and Biogeography 16:733–742.
Pebesma, E., and R. Bivand. 2023. Spatial data science: With applications in R. Chapman; Hall/CRC, Boca Raton.