This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### Example population dynamics model | |
set.seed(2013) | |
### Basic idea: N = A + J | |
################## Deterministic model | |
ad.surv<-0.81 ### Adult survival | |
pc.prod<-0.1 ### Productivity per capita |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################################################################################# | |
##### R script for producing Figure 3 of Garcia-Diaz et al. 'A guide to developing and using quantitative models in conservation management' #### | |
################################################################################################################################################# | |
### Define the number of values to simulate (1000 in this case) | |
sample.size<-1000 | |
### Simulate 1000 values from a Poisson distibution with mean = 5 | |
sim1<-rpois(sample.size, lambda=5) |