The ContionAl Prevalence Estimation (cape) package, allows to estimate and build confidence intervals for proportions, from random samples and census data with participation bias. Measurement errors in the form of false positive and false negative are also included the the inferential procedure. The cape package also contains code for simulation studies and sensitivity analysis reported in the companion paper Guerrier, Kuzmics, and Victoria-Feser (2020).
The notation and conventions used in Guerrier, Kuzmics, and Victoria-Feser (2020) are slightly amended for convenience in this package. In particular, we use R1 instead R11, R2 instead of R10, R3 instead of R01 and R4 instead of R00.
cape package can be installed from GitHub as follows:
# Install devtools install.packages("devtools") # Install the package from GitHub devtools::install_github("stephaneguerrier/cape")
Note that Windows users are assumed that have Rtools installed (if this is not the case, please visit this link).
A Graphical User Interface (GUI) is available with the
cape R package. This GUI which can be launched as follows:
It allows to compare the methods considered in the package as illustrated below:
The license this source code is released under is the GNU AFFERO GENERAL PUBLIC LICENSE (AGPL) v3.0. Please see the LICENSE file for full text. Otherwise, please consult TLDR Legal or GNU which will provide a synopsis of the restrictions placed upon the code.
Guerrier, Stéphane, Christoph Kuzmics, and Maria-Pia Victoria-Feser.