This package implements a stochastic simulation for a count-based multi-site population viability analysis as described in chapter 11 of Quantitative Conservation Ecology (Morris & Doak, 2002).
Code is highly inspired from the MatLab implementation described in the book.
You have two options here.
This allows you to easily install updates, have access to the function help files etc.
library(devtools) devtools::install_github("cmartin/msPVA") library(msPVA)
In this case, you need download the raw R file and then execute :
source("MultisitePVA.R")
This is a quicker, but dirtier way!
With the same Clapper rail data as in Morris & Doak
library(msPVA) library(knitr) read_chunk("inst/examples/ms.Example.R") read_chunk("inst/examples/ss.Example.R") read_chunk("inst/examples/params.Example.R")
With a two-populations polar bear time series from Stirling et al. 2004
If you are to use this package, I highly recommend that you first read chapter 11 from Quantitative Conservation Ecology (Morris & Doak, 2002), so you understand limitations and assumptions from the underlying model. Managing animal populations should not be taken lightly.
Please report any bugs to the GitHub issue tracker and write any questions to charles.martin1@uqtr.ca
If this code is useful to you, please cite as :
cat(citation("msPVA")$textVersion)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.