point.sim.cir: Change-In-Ration Method : Simulation

Description Usage Arguments Details Value See Also Examples

Description

This function simulates sample objects of class 'sample.cir' and estimates abundance and related parameters for each simulated sample object.

Usage

1
        point.sim.cir(pop.spec, survey.spec, design.spec, B = 99, plot = FALSE, numerical=TRUE, seed=NULL, ...)

Arguments

pop.spec

population specification; either an object of class 'population' or 'pars.population'

survey.spec

survey specification; an object of class 'pars.survey.cir'

design.spec

design specification; an object of class 'design.cir'

B

number of simulations required

plot

if TRUE, a histogram of the group abundance point estimates obtained from each sample object is produced

numerical

If TRUE, estimation is by numerical maximisation of the log likelihood function

seed

Number passed to set.seed() to initialise random number generator

...

extra plot arguments

Details

This function produces samples by simulating surveys from the observation model (using survey.spec) and if pop.spec is of class 'pars.population' from the state model (using pop.spec to generate new populations on each simulation).

There are difficulties with this incarnation of the change-in-ratio estimator. At present, consider the use of two.samp.cir and three.samp.cir as alternatives in the two- and three- sample situations.

Value

An object of class point.sim.ce with the following elements:

A results matrix, each row of which contains the following values:
Nhat.grp

MLE of group abundance

Nhat.ind

MLE of individual abundance (= Nhat.grp * Es)

Es

Estimate of mean group size (simple mean of observed group sizes)

true

The true (simulated) values of group abundance, animal abundance and mean group size

numerical

Equal to the argument 'numerical' passed to the function

random.pop

TRUE if population is randomised

random.design

TRUE if design is randomised

parents

Details of WiSP objects passed to function

created

Creation date and time

seed

Equal to the argument 'seed' passed to the function

See Also

setpars.population, setpars.survey.rm point.est.cir, set.seed

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
rm.reg<-generate.region(x.length=100, y.width=50)

rm.dens <- generate.density(rm.reg)
rm.poppars<-setpars.population(density.pop = rm.dens, number.groups = 100, size.method = "poisson",
                               size.min = 1, size.max = 5, size.mean = 1, exposure.method = "beta",
                               exposure.min = 2, exposure.max = 10, exposure.mean = 3, exposure.shape = 0.5,
                               type.values=c("Male","Female"), type.prob=c(0.48,0.52))
rm.pop<-generate.population(rm.poppars)

rm.des<-generate.design.rm(rm.reg, n.occ = 5, effort=c(1,2,3,2,1))
rm.survpars<-setpars.survey.rm(pop=rm.pop, des=rm.des, pmin=0.03, pmax=0.95, improvement=0.05)
rm.samp<-generate.sample.rm(rm.survpars)

#Simulate (randomise population only)
#This make take a couple of minutes.  Press ESC to stop simulations.
cir.sim<-point.sim.cir(pop.spec=rm.poppars, survey.spec=rm.survpars, design.spec=rm.des, B=99,
                       seed=NULL, plot=FALSE)
summary(cir.sim)
plot(cir.sim)
plot(cir.sim, type="hist")
plot(cir.sim, type="box")

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