sim.cir.3: Simulate 3-occasion CIR multiple times

Description Usage Arguments Details Value Warning Note Author(s) References See Also Examples

Description

Perform 3-occasion change-in-ratio (CIR) according to users' specifications, and return a data frame with point estimate and measures of precision for each simulated experiment

Usage

1
2
sim.cir.3(popn, frac.prehunt, frac.midhunt, frac.posthunt,
          frac.harv.male.1, frac.harv.fem.1, frac.harv.male.2, frac.harv.fem.2, B)

Arguments

rm.pop

Population object being harvested and sampled (likely created by make.twosex.pop)

frac.prehunt

Proportion of the population sampled prior to the first harvest season

frac.midhunt

Proportion of the population sampled between the harvest seasons

frac.posthunt

Proportion of the population sampled following the second harvest season

frac.harv.male.1

Proportion of males in the population removed during first harvest

frac.harv.fem.1

Proportion of females in the population removed during first harvest

frac.harv.male.2

Proportion of males in the population removed during second harvest

frac.harv.fem.2

Proportion of females in the population removed during second harvest

B

Number of simulated replicates of the experiment desired

Details

The population (popn) remains unchanged for all simulations; i.e., the same population is used for all replicates. Hence none of the stochasticity in the results is attributable to changing populations. This function simply makes repeated calls to three.samp.cir.

Value

A data frame consisting of

$point.cir

Point estimate of abundance for each replicate,

$se.cir

Standard error of abundance for each replicate,

$coef.var

Coefficient of variation (not percentage) of abundance for each replicate.

Warning

Exercise caution using the results of the function because inadmissable values are returned as NaN, so checks on finiteness is called for before summarizing/plotting results.

Note

The number of replicates requested may not be equal to the number of replicates realized because of the presence of missing values.

Author(s)

Eric Rexstad, RUWPA ericr@mcs.st-and.ac.uk

References

Borchers, Buckland, and Zucchini (2002), Estimating animal abundance: closed populations. Chapter 5 http://www.ruwpa.st-and.ac.uk/estimating.abundance

See Also

three.samp.cir, sim.cir.2, make.twosex.pop

Examples

1
2
3
4
5
6
7
library(wisp)
example <- make.twosex.pop(abund=200, prop.male=0.4)
example.result <- sim.cir.3(popn=example,frac.prehunt=0.4, frac.midhunt=0.4, frac.posthunt=0.4,
                            frac.harv.male.1=0.3, frac.harv.fem.1=0.05,
                            frac.harv.male.2=0.4, frac.harv.fem.2=0.05, B=200)

example.result

dill/wisp documentation built on May 15, 2019, 8:31 a.m.