Learn R Programming

⚠️There's a newer version (0.2.10) of this package.Take me there.

AHMbook (version 0.2.2)

Functions and Data for the Book 'Applied Hierarchical Modeling in Ecology' Vols 1 and 2

Description

Provides functions and data sets to accompany the two volume publication 'Applied Hierarchical Modeling in Ecology: Analysis of distribution, abundance and species richness in R and BUGS' by Marc Kry and Andy Royle: volume 1 (2016, ISBN: 978-0-12-801378-6) and volume 2 (2021, ISBN: 978-0-12-809585-0), .

Copy Link

Version

Install

install.packages('AHMbook')

Monthly Downloads

446

Version

0.2.2

License

GPL (>= 3)

Maintainer

Mike Meredith

Last Published

October 26th, 2020

Functions in AHMbook (0.2.2)

EurasianLynx

Data for Eurasian lynx from Switzerland and Italy (only Alps).
ch2marray

Converts capture-histories to an m-array
Color Ramps

Color Ramps
MHB2014

Data from the Swiss Breeding Bird Survey MHB 2014
BerneseOberland

Landscape data for the Bernese Oberland around Interlaken, in the Alps of central Switzerland
Finnmark

Data from surveys of birds in Finnmark in NE Norway
FrenchPeregrines

Data for observations of peregrines from the French Jura mountains
HubbardBrook

Warbler point count data from the Hubbard Brook Experimental Forest
bigCrossCorr

Cross correlations for MCMC output
AHMbook-package

Functions and data for the Book “Applied Hierarchical Modeling in Ecology” Volumes 1 and 2
SwissSquirrels

Data for Red Squirrels in Switzerland from the Swiss breeding bird survey MHB
MesoCarnivores

Camera trap data for Bobcat, Coyote and Red Fox
SwissTits

Data from the Swiss Breeding Bird Survey for 6 species of tits
SwissMarbledWhite

Data for Swiss Marbled White butterflies
crossbillAHM

Data from the Swiss Breeding Bird Survey MHB for European Crossbill from 2001 to 2012
wagtail

Data for Dutch wagtails
cswa

Point count and spot-mapping data for Chestnut-sided Warbler
SwissAtlasHa

Data for 1ha quadrats from the Swiss Breeding Bird Atlas
SwissEagleOwls

Territory-level, multi-state detection/nondetection data for Eagle Owls in Switzerland
e2dist

Calculates the pair-wise distances between two sets of points
playRN

Function to play Royle-Nichols (RN) model
waterVoles

Data for the Mighty Water Voles of Scotland, UK.
treeSparrow

American Tree Sparrow data from Alaska
plot_Nmix_resi

Produce some residual plots
simDCM

Simulate detection/nondetection data under a general dynamic community (site-occupancy) model
ttdPeregrine

Time-to-detection data for peregrines from the French Jura mountains
spottedWoodpecker

Data for observations of Middle Spotted Woodpecker in Switzerland
greenWoodpecker

Count data from the Swiss Breeding Bird Survey for Green Woodpeckers from 2004 to 2017
UKmarbledWhite

Data for UK Marbled White butterflies
crestedTit

Count data from the Swiss Breeding Bird Survey MHB for crested tits from 1999 to 2015
fitstats

Functions to return fit statistics
image_scale

Helper function to draw scale for image
wigglyLine

Coordinates for a wiggly line transect
willowWarbler

Constant effort site (CES) data for British Willow Warblers
dragonflies

Fictional data for dragonflies
data.fn

Simulate count data under a binomial N-mixture model
simDSM

Simulate line transect data for density surface modeling
simHDSg

Simulate data under HDS protocol with groups
simHDSopen

Simulate open hierarchical distance sampling data
simPPe

Simulate a spatial point pattern in a heterogeneous landscape
simNmixSpatial

Simulate replicated counts under a spatial, static binomial N-mixture model
simNmix

Simulate data for binomial and multinomial mixture models
modSelFP

Model selection results from a list of 'unmarkedFitOccuFP' models
sim.pdata

Simulate non-hierarchical point transect (= point count) data
map.Nmix.resi

Mapping of residuals
simFrogDisease

Simulate detection data for diseased frogs
simCJS

Simulate individual capture-histories under a Cormack-Jolly-Seber (CJS) survival model
piFuns

Compute multinomial cell probabilities
simHDS

Simulate data under hierarchical distance sampling protocol (line or point)
simExpCorrRF

Create a Gaussian random field with negative exponential correlation
simDM

Simulate count data under the dynamic N-mixture model of Dail-Madsen
duskySalamanders

Age-classified counts of dusky salamanders from two mid-Atlantic states in the USA
sim.fn

Simulate a Poisson point process
simOccSpatial

Simulate replicated detection/nondetection data under a spatial, static occupancy model
simOccttd

Simulate time-to-detection occupancy data (single visits)
sim.spatialHDS

Simulates data for a hierarchical spatial distance sampling model
simSpatialDSte

Simulate data for replicate line transect surveys with temporary emigration
simComm

Simulate community occupancy or community abundance data
ppc.plot

Plot results from posterior predictive check
sim.ldata

Simulation of distance sampling data.
simMultMix

Simulate the multinomial-mixture model
sim3Occ

Simulate detection/nondetection data for static 3-level occupancy models
issj.sim

Simulate open distance sampling data for the Island Scrub Jays
simHDStr

Simulate HDS time-removal or double-observer data
simNpC

Generate counts from a single population observed over T years under a binomial observation process
sim.spatialDS

Simulates data for a basic spatial distance sampling model
simSpatialDSline

Simulate data for a standardized line transect
simOcc

Simulate data for static occupancy models under wide range of conditions
valid_data

Validates simulated observational data against data-generating values.
zinit

Starting values for survival analysis in JAGS/BUGS
wigglyOcc

Simulate static occupancy data
getLVcorrMat

Compute results of a Joint Species Distribution Model (JSDM)
simpleNmix

Simulate N-mixture data under a time-for-space substitution design
graphSSM

Plot the results for a Gaussian state-space model
simDemoDynocc

Simulate data under a demographic dynamic occupancy model
simDataDK

Simulate data for an integrated species distribution model (SDM) of Dorazio-Koshkina
simDynocc

Simulate detection/nondetection data under a wide variety of non-spatial dynamic occupancy models
simPH

Generate counts under a variant of a 'phenomenological model'
simDynoccSpatial

Simulate data under a dynamic occupancy model with spatial autocorrelation
simPOP

Simulate data for a demographic state-space model
spline.prep

Prepare input for BUGS model when fitting a spline for a covariate
standardize

Scaling and centering of vectors, matrices and arrays