read_headed: Read capture-recapture data with Headed format used by...

View source: R/read_headed.R

read_headedR Documentation

Read capture-recapture data with Headed format used by program E-SURGE

Description

This function reads in capture-recapture dataset with the Headed format. It ignores all forms of censorship for now, and drops continuous covariates because no goodness-of-fit test exists for such models

Usage

read_headed(file)

Arguments

file

text file with Headed format

Value

list with first component the matrix of encounter histories, second components the vector of number of individuals with corresponding histories and, if relevant, third component vector/matrix with group(s)

Author(s)

Olivier Gimenez <olivier.gimenez@cefe.cnrs.fr>

Examples

# read in Dipper dataset
dipper = system.file("extdata", "ed.txt", package = "R2ucare")
read_headed(dipper)
# read in Geese dataset
geese = system.file("extdata", "geese.txt", package = "R2ucare")
read_headed(geese)

R2ucare documentation built on July 11, 2022, 9:06 a.m.