| IPMbook-package {IPMbook} | R Documentation |
Functions and data for the book 'Integrated Population Models'
Description
Provides functions and data sets to accompany the book Integrated Population Models by Michael Schaub and Marc Kéry (ISBN: 9780128205648).
Details
The functions are listed by chapter below.
Chapter 2
demoMCMCDemonstration of a random-walk sampler for MCMC (section 2.5)
Chapter 4
simMHBSimulates detection and count data with spatial and temporal replication (section 4.3.3)
createAgeCreates an age matrix (section 4.5.1.1)
marrayConverts single- or multistate capture histories to an m-array for one age class (section 4.5.1.2)
marrayAgeConverts single-state capture histories to age-dependent m-arrays (section 4.5.1.2)
Chapter 5
simPopSimulates a population based on demographic parameters (section 5.5.1)
simCapHistSimulates capture histories from a population (section 5.5.1)
simProdSimulates productivity data for a population (section 5.5.1)
simCountSimulates population survey data for a population (section 5.5.1)
Chapter 12
marrayDeadConverts dead-recovery capture histories to an m-array (section 12.4.2)
DATA SETS
batsData for greater horseshoe bats from Switzerland, 1989-2017, chapter 13.
bearData for black bears from USA, 2007-2012, chapter 21.
catbirdData for catbirds from USA, 1992-2008, chapter 19.
cormorantData for cormorants from Denmark, 1991-2004, chapter 18.
elkData for elk cows from USA, 1988-1993, chapter 17.
grouseData for black grouse from Italy, 1997-2016, chapter 15.
hoopoeData for hoopoe from Switzerland, 2001-2017, chapter 14.
kestrelData for kestrels from Switzerland, 2002-2016, chapter 20.
peregrineData for peregrine falcons from France and Switzerland, 1965-2007, chapter 12.
redbackedData for red-backed shrike from Germany, 1971-2006, section 8.2.
storkData for white storks from Germany, 1986-2001, section 4.5.4.
swallowData for barn swallow from Switzerland, 1997-2003, chapter 16.
woodchat5Simulated data for woodchat shrike for use in chapter 5.
woodchat6Simulated data for woodchat shrike for use in chapter 6.
woodchat64Simulated data for woodchat shrike for use in section 6.4.
woodchat66Simulated data for woodchat shrike for use in section 6.6.
woodchat7Simulated data for woodchat shrike for use in chapter 7.
woodchat10Simulated data for woodchat shrike for use in chapter 10.
woodchat11Data for woodchat shrike from Germany, 1964-1992, chapter 11.
wryneckNest survival data for wryneck from Switzerland, 2002-2006, section 4.4.6.
UTILITY FUNCTIONS
ch2matrixConvert capture histories in text format to a matrix.
cleanCHRemoves all-zero rows from a capture history matrix.
dbeta2Beta distribution with mean and sd.
dbeta3Beta distribution with mode and concentration.
dgamma2Gamma distribution with mean and sd.
getFirstCalculates the occasion of first capture from a capture history matrix.
rmFirstRemoves the records of first capture from a capture history matrix.
zInitConverts a capture history matrix to one with 1 after the occasion of first capture, NA elsewhere.
zInitDRConverts a dead-recovery capture history matrix to one with 1 after the occasion of first capture until the occasion of dead recovery, then 0; NA elsewhere.
zKnownConverts a capture history matrix to one with 1 where the animal is know to be alive, NA elsewhere.
Author(s)
Michael Schaub, Marc Kéry, Mike Meredith