captures: Simulating captures

Description Usage Arguments Details Value Author(s)

View source: R/simulate.R

Description

Simulating captures as part of a CRC experiment.

Usage

1
captures(n, pop, k, heters, covs)

Arguments

n

The population size.

pop

The data.frame with a basic template for the population.

k

The number of lists.

heters

A character string to denote a specific heterogeneity structure. Currently only french.1 is implemented.

covs

A character string to denote the covariates to be included. Currently only NULL and age.sex.zip are implemented.

Details

Given (possibly) some covariates specified by covs and a heterogeneity function specified by heters, conduct a capture-recapture experiment, and return the capture-recapture data.

Value

A data.frame with capture-recapture data

Author(s)

Zach Kurtz


lllcrc documentation built on May 2, 2019, 3:34 p.m.