SSDM
Stacked Species Distribution Modelling
Allows to map species richness and endemism based on stacked species distribution models (SSDM). Individuals SDMs can be created using a single or multiple algorithms (ensemble SDMs). For each species, an SDM can yield a habitat suitability map, a binary map, a between-algorithm variance map, and can assess variable importance, algorithm accuracy, and between- algorithm correlation. Methods to stack individual SDMs include summing individual probabilities and thresholding then summing. Thresholding can be based on a specific evaluation metric or by drawing repeatedly from a Bernoulli distribution. The SSDM package also provides a user-friendly interface.
README
SSDM: Stacked species distribution modelling
================
[](https://github.com/sylvainschmitt/SSDM/actions/workflows/R-CMD-check.yaml)
[](https://www.r-pkg.org/pkg/SSDM)
[](https://app.codecov.io/gh/sylvainschmitt/SSDM?branch=master) [](http://depsy.org/package/r/SSDM)
SSDM is a package to map species richness and endemism based on stacked species distribution models (SSDM). Individual SDMs can be created using a single or multiple algorithms (ensemble SDMs). For each species, an SDM can yield a habitat suitability map, a binary map, a between-algorithm variance map, and can assess variable importance, algorithm accuracy, and between-algorithm correlation. Methods to stack individual SDMs include summing individual probabilities and thresholding then summing. Thresholding can be based on a specific evaluation metric or by drawing repeatedly from a Bernouilli distribution. The SSDM package also provides a user-friendly interface `gui`.
For a full list of changes see [`NEWS`](./NEWS.md).
Installation
============
Please be aware that SSDM package use a lot of dependencies (see [`DESCRIPTION`](./DESCRIPTION))
### Install from Github
You can install the latest version of **SSDM** from Github using the [`devtools`](https://github.com/r-lib/devtools) package:
``` r
if (!requireNamespace("devtools", quietly = TRUE))
install.packages("devtools")
devtools::install_github("sylvainschmitt/SSDM")
```
### Install from CRAN
The stable version of **SSDM**, is available on CRAN:
``` r
install.packages("SSDM")
```
*We advise users to install from github. Due to CRAN policies and the development of SSDM, many new features and bugfixes may be available on CRAN later.*
Usage
=====
After installing, **SSDM** package, you can launch the graphical user interface by typing gui() in the console.
[**Click to enlarge**](https://raw.githubusercontent.com/sylvainschmitt/SSDM/master/examples/SSDM.gif)

Functionnalities
================
SSDM provides five categories of functions (that you can find in details below): Data preparation, Modelling main functions, Model main methods, Model classes, and Miscellaneous.
### Data preparation
- `load_occ`: Load occurrence data
- `load_var`: Load environmental variables
### Modelling main functions
- `modelling`: Build an SDM using a single algorithm
- `ensemble_modelling`: Build an SDM that assembles multiple algorithms
- `stack_modelling`: Build an SSDMs that assembles multiple algorithms and species
### Model main methods
- `ensemble,Algorithm.SDM-method`: Build an ensemble SDM
- `stacking,Ensemble.SDM-method`: Build an SSDM
- `update,Stacked.SDM-method`: Update a previous SSDM with new occurrence data
### Model classes
- `Algorithm.SDM`: S4 class to represent SDMs
- `Ensemble.SDM`: S4 class to represent ensemble SDMs
- `Stacked.SDM`: S4 class to represent SSDMs
### Miscellanous
- `gui`: user-friendly interface for SSDM package
- `plot.model`: Plot SDMs
- `save.model`: Save SDMs
- `load.model`: Load SDMs
Versions across snapshots
| Version | Repository | File | Size |
|---|---|---|---|
0.2.11 |
rolling linux/jammy R-4.5 | SSDM_0.2.11.tar.gz |
2.5 MiB |
0.2.11 |
rolling linux/noble R-4.5 | SSDM_0.2.11.tar.gz |
2.5 MiB |
0.2.11 |
rolling source/ R- | SSDM_0.2.11.tar.gz |
2.5 MiB |
0.2.11 |
latest linux/jammy R-4.5 | SSDM_0.2.11.tar.gz |
2.5 MiB |
0.2.11 |
latest linux/noble R-4.5 | SSDM_0.2.11.tar.gz |
2.5 MiB |
0.2.11 |
latest source/ R- | SSDM_0.2.11.tar.gz |
2.5 MiB |
0.2.11 |
2026-04-26 source/ R- | SSDM_0.2.11.tar.gz |
2.5 MiB |
0.2.11 |
2026-04-23 source/ R- | SSDM_0.2.11.tar.gz |
2.5 MiB |
0.2.11 |
2026-04-09 windows/windows R-4.5 | SSDM_0.2.11.zip |
2.4 MiB |
0.2.10 |
2025-04-20 source/ R- | SSDM_0.2.10.tar.gz |
2.5 MiB |
Dependencies (latest)
Imports
- sf (>= 1.0-14)
- raster (>= 2.9-5)
- methods (>= 3.2.2)
- mgcv (>= 1.8.7)
- earth (>= 4.4.3)
- rpart (>= 4.1.10)
- gbm (>= 2.1.1)
- randomForest (>= 4.6.10)
- dismo (>= 1.0.12)
- nnet (>= 7.3.10)
- e1071 (>= 1.6.7)
- ggplot2 (>= 3.1.1)
- reshape2 (>= 1.4.3)
- scales (>= 1.0.0)
- shiny (>= 0.12.2)
- shinydashboard (>= 0.5.1)
- spThin (>= 0.1.0)
- poibin (>= 1.3.0)
- foreach (>= 1.4.4)
- doParallel (>= 1.0.14)
- iterators (>= 1.0.10)
- itertools (>= 0.1-3)
- parallel (>= 3.5.2)
- leaflet (>= 2.2.0)
- magrittr (>= 2.0.3)
- sdm (>= 1.1.8)