The ContionAl Prevalence Estimation (cape) package, allows to estimate and build confidence intervals for proportions, from random or stratified samples and census data with participation bias. Measurement errors in the form of false positive and false negative are also included in the inferential procedure. The cape package also contains code for simulation studies and sensitivity analysis reported in the companion paper Guerrier et al. (2022), as well as the Austrian dataset on COVID-19 prevalence in November 2020.

# Remark on notation

The notation and conventions used in Guerrier et al. (2022) 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.

# Package installation

The 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).

# How to cite

@Manual{guerrier2022cape,
title = {{cape}: Conditional Prevalence Estimation using Random and Non-Random Sample Information},
author = {Guerrier, S and Kuzmics, C and Victoria-Feser, M.-P.},
year = {2022},
note = {R package},
url = {https://github.com/stephaneguerrier/cape}
}