Skip to main content
U.S. flag

An official website of the United States government

Here’s how you know

Dot gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

HTTPS

Secure .gov websites use HTTPS
A lock ( Lock A locked padlock ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

  • Environmental Topics
  • Laws & Regulations
  • Report a Violation
  • About EPA
Risk Assessment
Contact Us

Introducing Spatial Statistics using the spmodel R Package

On this page:

  • Overview
In scientific disciplines like ecology and environmental science, spatial data (i.e., data that are distributed in space) are common. For spatial data, statistical models incorporating spatial dependence (i.e., spatial models) tend to be more realistic than statistical models ignoring spatial dependence (i.e., nonspatial models). Recent software advances in R's spatial data ecosystem have made spatial models much more accessible to practitioners. Here we focus on the spmodel R package (https://github.com/USEPA/spmodel), which fits, summarizes, and makes predictions for a variety of spatial models. We discuss three reasons why spmodel is an effective tool for introducing (and teaching) spatial statistics: First, spmodel uses a syntactic structure similar to that of familiar base R functions like lm() and glm(); Second, spmodel provides a wide breadth of options that give users a high amount of control over the model being fit; And third, spmodel is compatible with other modern R packages like sf, broom, and emmeans.

Impact/Purpose

This presentation will provide guidance for using spatial statistical models. These models provide ecological insights while explicitly incorporating spatial dependence. Often they notably improve model fitting and prediction compared to nonspatial models.

Citation

Dumelle, M., M. Higham, AND J. Ver Hoef. Introducing Spatial Statistics using the spmodel R Package. Oregon State University Statistics Department Winter Seminar Series, Corvallis, OR, January 13, 2025.
  • Risk Assessment Home
  • About Risk Assessment
  • Risk Recent Additions
  • Human Health Risk Assessment
  • Ecological Risk Assessment
  • Risk Advanced Search
    • Risk Publications
  • Risk Assessment Guidance
  • Risk Tools and Databases
  • Superfund Risk Assessment
  • Where you live
Contact Us to ask a question, provide feedback, or report a problem.
Last updated on January 21, 2025
United States Environmental Protection Agency

Discover.

  • Accessibility Statement
  • Budget & Performance
  • Contracting
  • EPA www Web Snapshots
  • Grants
  • No FEAR Act Data
  • Privacy
  • Privacy and Security Notice

Connect.

  • Data
  • Inspector General
  • Jobs
  • Newsroom
  • Open Government
  • Regulations.gov
  • Subscribe
  • USA.gov
  • White House

Ask.

  • Contact EPA
  • EPA Disclaimers
  • Hotlines
  • FOIA Requests
  • Frequent Questions

Follow.