The function simulates hierarchical distance sampling (HDS) data under a point transect protocol. At each site, it works with a circle of radius B
.
The state process is simulated by first drawing a covariate value, "habitat", for each site from a Normal(0, 1) distribution. This is used in a log-linear regression with arguments mean.density
and beta.density
to calculate the expected density of animals per hectare. The expected number of animals in the circle is calculated from the area of the circle and the density, and numbers are drawn from a Poisson distribution for each site.
Animals are assumed to be distributed randomly over the circle, and distances from the point are generated.
A detection covariate, "wind", for each site is drawn from a Uniform(-2, 2) distribution. This is used in a log-linear regression with arguments mean.sigma
and beta.sigma
to calculate the scale parameter, sigma, of the half-normal detection function. Detections are simulated as Bernoulli trials with probability of success decreasing with distance from the point.
This is a simplified (and faster) version of the function simHDS with type="point", but works with densities and with measurements in hectares and meters.