simProd: Simulates productivity data

View source: R/simProd.R

simProdR Documentation

Simulates productivity data

Description

Simulates a survey of breeding females, where a proportion of the females are included each year and the number of their offspring (male and female) recorded.

Usage

simProd(reprod, pInclude = 0.3, females.only = FALSE, verbose = TRUE)

Arguments

reprod

array with the reproductive performance of the population, usually the output from simPop.

pInclude

vector with the annual detection probabilities of broods; it can be scalar, used for all years.

females.only

if TRUE only the number of females that are produced is recorded. Default: total reproduction is recorded.

verbose

if TRUE, information is displayed in the console.

Value

A list with the following 2 components:

prod.ind

matrix with the individual reproductive output. The three columns give the output, the year of the brood and the actual age of the mother.

prod.agg

matrix with the same data, but aggregated. The two columns give the year-specific total number of newborn and the year-specific number of surveyed broods.

Author(s)

Michael Schaub

References

Schaub, M., Kéry, M. (2022) Integrated Population Models, Academic Press, section 5.5.1.

Examples

# Generate a population
pop <- simPop()
# Simulate productivity data
prod <- simProd(pop$reprod)
str(prod)

IPMbook documentation built on Aug. 22, 2023, 1:07 a.m.