Skip to content

R package for simulating camera trap capture-recapture and presence-absence occupancy data.

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

jackthomas818/simtrapoccR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simtrapoccR

DOI DOI:10.1002/2688-8319.12368

Simulate Camera Trap Capture-Recapture and Presence-Absence Occupancy Data

The 'simtrapoccR' package allows you to generate capture-recapture history matrices and presence-absence history matrices for feeding into population estimation statistical models.

For information about how the data is generated, see here.

Installation

You can install the development version of simtrapoccR from GitHub with:

# install.packages("devtools")
devtools::install_github("jackthomas818/simtrapoccR")

Usage

# number of sites
nsites <- 4**2

# number of individuals in capture history
n <- 10

# number of sampling occasions in capture-recapture
nsample_cap <- 5

# number of sampling occasions in presence-absence
nsample_pa <- 7

# amount of movement for the species
tau <- 0.25

# number of camera traps
ntraps <- 3

# species capture probability
p <- 0.6

# marker deposition rate
sigma <- 1

# time between sampling occasions (presence-absence)
delta <- 2

# homeranges for the n individuals
homeranges <- create_homeranges(n)

capture_hist <- generate_capture_hist(ntraps, nsample_cap, tau, p, homeranges)

presence_absence <- generate_presence_absence(nsites, nsample_pa, tau, sigma, delta, homeranges)

About

R package for simulating camera trap capture-recapture and presence-absence occupancy data.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages