Learn R Programming

activityGCMM (version 1.1.1)

Circular Mixed Effect Mixture Models of Animal Activity Patterns

Description

Bayesian parametric generalized circular mixed effect mixture models (GCMMs) for estimating animal activity patterns from camera trap data and other nested data structures using 'JAGS', including automatic Bayesian k-cluster selection and random circular intercepts for nested data. The GCMM function automatically selects the number of components for the mixture model (supporting up to 4 mixture components) based on a Bayesian linear finite normal mixture model and fits a Bayesian parametric circular mixed effect mixture model with one or two random effects as random circular intercepts with a a von Mises or wrapped Cauchy distribution. Provides graphs of the combined mixture model or separate mixture components. Functionality is provided to allow quantitative comparisons between model parameters. See Campbell et al. (in press) It's time to expand our analyses of animal activity; Campbell et al. (in press) Temporal and microspatial niche partitioning; Campbell et al. (in press) A novel approach to comparing animal activity patterns. News, updates, and tutorials will be available on www.atlasgoldenwolf.org/stats and www.github.com/LizADCampbell .

Copy Link

Version

Install

install.packages('activityGCMM')

Monthly Downloads

52

Version

1.1.1

License

GPL (>= 2)

Maintainer

Liz AD Campbell

Last Published

June 14th, 2021

Functions in activityGCMM (1.1.1)

GCMMsimsparams

Extract GCMM parameters for running GCMM simulations
APDatPeak

Activity Probability Density at Peak Time of Another
HDI

Calculate highest density interval
GCMMpdens

Predict activity probability density at a time point
GCMMsims

Create GCMM simulations
GCMMprob

Probability of Activity during Time Period
GCMMpeaksplot

Plot estimated time of activity peaks
circaxis

Axis labels for circular temporal data plots
calcAPD

Calculate activity probability density
calcprop

Calculate proportions of circular variable within an interval
activityHPD

Activity highest posterior density interval estimates (activityHPD)
activityHPDmean

Activity highest posterior density interval from mean activity curve
circplotHPD

Circular plot of activity HPD intervals
convertRad

Convert Radians Scale
componentsplot

GCMM Components Plot
exampleGCMM

Executable example of GCMM function
APDpointplot

Activity Probability Density Point Plot
HPDoverlap

Activity HPD Overlap
humanssample

Sample data of camera trap observations of humans
circplotREs

Random Effects Circular Plot
plotactivityHPD

Plot activity curve with activityHPDs
mixtureplot

GCMM Mixture Plot
plotREs

Plot GCMM activity curve with random intercepts
extractparam

Extract parameters for posterior simulations
redfoxsample

Sample data of camera trap observations of red fox
PDS

Posterior distribution summaries and support
mode

Mode
circplotmeans

Circular plot of GCMM means
combineMCMC

Combine MCMC chains for posterior simulations
comboplot

GCMM Combined Plot
compareGCMM

Compare GCMM parameters or estimates
compareGCMMfit

Compare fit of GCMM models based on circular residuals
peaksPDplot

Plot estimated number of activity peaks
xaxis

Axis labels for temporal activity plots
yMax

Calculate y-axis limit for plotting multiple activity curves
posteriorhistplot

Plot histogram of posterior distribution
plotGCMMsamples

Plot GCMM Activity Curve Posterior Samples
multiplot

Plot multiple GCMM activity curves
progress

Report function progress
sumCircResids

Calculate sum of absolute circular residuals
samplerows

Sample rows of dataframe
updateGCMM

Extend GCMM analysis
GCMMppc

Posterior predictive check of GCMM model
GCMM

Generalized circular mixed effect mixture (GCMM) model