iterate: Iterate Simulations

View source: R/iterate.R

iterateR Documentation

Iterate Simulations

Description

This function iterates caribou simulations and returns rejection rate of each hypothesis test

Usage

iterate(
  iters,
  Theta,
  nu,
  phi,
  r,
  modelSim = c("H", "I", "T"),
  modelEst = c(modelSim, "H", "I", "T"),
  BSim,
  BEst = BSim
)

Arguments

iters

An integer giving the total number of iterations

Theta

The total herd size to be simulated. An approximation, not a limiting number

nu

An integer, the total number of collars to be simulated in a caribou herd. An approximation, not a limiting number.

phi

A numeric that parameterizes the degree of clustering. phi = 0 indicates no clustering. 0 < phi < 1

r

A parameter related to the probability of detection

modelSim

A character string indicating the (phase II) model used to simulate the probability that a group with collared animals is detected pi. It can be either "H" = homogeneity model, "I" = independence model or "T" = threshold model. The default is "H".

modelEst

Indicates the phase II probability model used to compute the population estimate, T.hat. The default is to use the same model as used to generate the simulation.

BSim

The threshold parameter used in phase II probability detection

BEst

the threshold parameter used in population estimation


chrisroberts2112/msProject documentation built on April 21, 2022, 1:59 a.m.