Skip to contents

The Cumulative Effects Model for Prioritizing Recovery Actions (CEMPRA) is a cumulative effects modelling framework. The CEMPRA tool uses a series of standardized stressor-response functions to link environmental attributes to the system capacity and productivity of a target species or system.

The framework is designed to be generalizable, simple, and versatile so that users can apply the model to various geographic regions, contexts, systems, and species. As the name suggests, the CEMPRA tool helps prioritize recovery actions for data-limited species and species-at-risk, with the flexibility to accommodate both data-rich and data-poor study systems.

The CEMPRA tool is accessible as an open-source R package and R Shiny interactive web application.

Key Features

  • Stressor-Response Framework: Link environmental stressors to system capacity using customizable dose-response relationships
  • Joe Model: Calculate cumulative system capacity across multiple stressors and locations
  • Stage-Structured Population Model: Project population dynamics with life-stage-specific vital rates
    • Density-Dependence Options: Support for Beverton-Holt and Hockey-Stick density-dependent constraints at any life stage
    • Anadromous & Resident Life Histories: Model both anadromous (salmon) and non-anadromous (resident) populations
    • Batch Processing: Run scenarios across multiple locations and stressor combinations
    • Sensitivity Analysis: Evaluate parameter uncertainty and identify key drivers

Project Components

Installation

The easiest way to install the CEMPRA package is from within the RStudio IDE using remotes::install_github(). At this time the package has not been published to CRAN so the default install.packages() will not work. Instead use remotes (or devtools) to install the package directly from GitHub:

# You may need to install remotes
library(remotes)
remotes::install_github("essatech/CEMPRA")

Tutorials

Detailed tutorials are available as package vignettes:

Tutorial Description
1. Joe Model Overview Introduction to the Joe Model for cumulative effects assessment
2. Joe Model Batch Run Running the Joe Model across multiple locations
3. Population Model Overview Introduction to stage-structured population modeling
4. Population Model Batch Run Running population projections across multiple scenarios
5. BC CEF Data Import Importing data from BC Cumulative Effects Framework
6. Population Model Evaluation Sensitivity analysis and model evaluation

Additional guidance is available in the CEMPRA Documentation:

Package Contributors

This is a broad collaboration between Fisheries and Oceans Canada (DFO), B.C. Ministry of Environment and Climate Change Strategy (ECCS), Alberta Environment and Parks (AEP), and Simon Fraser University (SFU).

Contributors include:

Citation

If you use CEMPRA in your research, please cite it as:

Bayly, M., Tekatch, A., Rosenfeld, J., Paul, A., Jarvis, L., Enders, E., & Wilson, K. (2024).
CEMPRA: Cumulative Effects Model for Prioritizing Recovery Actions.
R package. https://github.com/essatech/CEMPRA

License

This project is licensed under the MIT License - see the LICENSE file for details.

Code of Conduct

Please note that the CEMPRA package is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Reporting Bugs and Issues

To report bugs or request features, please open an issue at: https://github.com/essatech/CEMPRA/issues

Rebuilding R-package locally

Helpful commands to run to deploy package locally:

# Build and test package
library(testthat)
library(devtools)
rm(list = ls())      # Clear memory
devtools::load_all() # Load functions
devtools::document() # Update documentation
devtools::test()     # Run tests
devtools::check()    # Operating system test

Re-install R-package locally

Helpful commands to install package from source:

remove.packages("CEMPRA") # Remove local installation
install.packages(getwd(), repos = NULL, type = "source")
# library(CEMPRA)
# ?SystemCapacity