cleanuplists: Consolidate counts for identical capture histories

Description Usage Arguments

View source: R/cleanuplists.R View source: R/functions.R

Description

Consider an incidence matrix mse with k+1 columns, where the first k columns are 1/0 denoting whether the relevant list is in the capture history, and the last column is the count of cases with that capture history. This routine finds rows with the same capture history and consolidates them into a single row whose count is the sum of counts of the relevant rows. If includezerocounts = T then it also includes all the capture histories with zero counts; otherwise these are all removed.

Usage

1
cleanuplists(zmse, includezerocounts = F)

Arguments

includezerocounts

If F then remove zero rows. If T then include all possible capture histories including those with zero count, excluding the all-zero row corresponding to the dark figure.


bernardsilverman/modslavmse documentation built on Aug. 10, 2019, 2:39 a.m.