Published 2024 | Version v1
Standard Open

Dealing with area-to-point spatial misalignment in species distribution models.

  • 1. Ifremer, DYNECO, F-29280 Plouzané, France
  • 2. Laboratoire de Mathématiques et de leurs Applications, Université de Pau et des Pays de l'Adour, E2S UPPA, CNRS, Anglet, France
  • 3. Ifremer, LITTORAL, F-64600 Anglet, France
  • 4. ARC Centre of Excellence for Mathematical and Statistical Frontiers, Queensland University of Technology, QLD 4000, Australia
  • 5. School of Mathematical Science, Queensland University of Technology, QLD 4000, Australia
  • 6. School of Mathematical and Physical Sciences, Macquarie University, NSW 2109, Australia

Description

This repository contains the R-scripts to reproduce the analysis presented in the paper:

B. Mourguiart, M. Chevalier, M. Marzloff, N. Caill-Milly, K. Mengersen, B. Liquet. Dealing with area-to-point spatial misalignment in species distribution models. Ecography, (in press), doi: 10.1111/ecog.07104

The study uses a virtual species approach to investigate the effects of area-to-point spatial misalignment (i.e. a resolution or a grain mismatch between coarse-grain covariates and fine-grain response variables) on the explanatory and predictive performance of three species distribution models (SDMs).

Specifically the code:

  • 01_simulate_data.R generates virtual environmental and species presence-absence data under different scenarios with area-to-point spatial misalignment (i.e., environmental data with coarser resolution than presence-absence data);
  • 02_run_xxx.R fits the three models: the GLM (generalised linear model) that does not account for spatial misalignment, the spGLM (spatial GLM) that estimates residual spatial autocorrelation not captured by the environmental covariates, and the BEM (Berkson error model) that accounts for area-to-point spatial misalignment;
  • 03_compute_perfmetrics.R calculates performance metrics (e.g., AUC) to assess the explanatory and predictive performance of the three models over different levels of misalignment and spatial heterogeneity;
  • 04_analyze_perfmetrics.R computes summary statistics of the performance metrics;
  • 05_make_outputs.R generates the figures presented in the manuscript and supplementary materials.

We recommend to first save the scripts in a folder named "analysis" within an Rproject, and then run the "make.R" file from within the Rproject. This will allow to run the workflow from simulating the data to producing the results presented in the manuscript, and keep the file path names as they are in the scripts.

Files

Files (99.4 kB)

Name Size Download all
md5:684a2778945544cee7607c7ab10ee0f0
10.0 kB Download
md5:ed5c390e8d41124beb63e2cd189bd9eb
2.6 kB Download
md5:e04efdfee22b6e30d372c958bd03b1a5
2.3 kB Download
md5:11356ed7859e3c593969837587f7b819
12.2 kB Download
md5:cc51a9f20022393424db2c9ff36a6e04
11.9 kB Download
md5:6393209e5afd58e7c92d417ddce9be0c
8.5 kB Download
md5:0b7c6bfa112d24fa05b7e28e2fc5aa95
50.3 kB Download
md5:691e5e63e042381310e26f3158da3164
1.5 kB Download

Additional details

Dates

Accepted
2024-01