Learn R Programming

lllcrc (version 1.1)

poptop: Simulate a CRC experiment

Description

Generate fake capture-recapture datasets to be used in simulation experiments

Usage

poptop(k = 2, n = 100, heters = NULL, covs = NULL,
  remove.zeros = TRUE)

Arguments

k
The number of lists to be generated
n
The true size of the [fake] population
heters
Optional: a string that is the name of some function for defining a heterogeneity structure, possibly in terms of covariates. Currently the only non-null option implemented is french.1, although a
covs
Optional: a string that is the name of some function for defining covariates for each population unit. Currently the only non-null option implemented is age.sex.zip
remove.zeros
Logical, TRUE by default. If FALSE, keep the all-zero capture patterns in the dataset to be returned

Value

  • A data frame containing fake capture recapture data