simulate_data: Simulate data from the GAI

View source: R/functions.R

simulate_dataR Documentation

Simulate data from the GAI

Description

Produces a simulated data set for observed counts of individuals at each of nS sites for nT occasions. Note, this function was implemented before covariate inclusion, and has no ability to deal with covariate-including data simulation.

Usage

simulate_data(
  par,
  nT = 25,
  totals = rep(500, 50),
  a_type = "mixture",
  dist_type = "P",
  options = list(),
  thin = 0.4,
  returnDF = F
)

Arguments

par

The vector of parameter values to be used

nT

The integer number of sampling occasions

totals

The integer site total for each site

a_type

The character name of the seasonal distribution

dist_type

The character name of the count distribution

options

A list of options to specify behaviours of the seasonal distribution. Inlcludes B, the number of broods. Currently covariates are not supported.

thin

The proportion of sampling opportunities which should be missed, and replaced with an NA.

returnDF

If TRUE, returns a data.frame with site, occasion, and count columns, rather than a matrix of counts

Value

A matrix of simulated counts for each site (rows) and each occasion (columns).


calliste-fagard-jenkin/GAI documentation built on July 26, 2022, 11:20 a.m.