prLogistic: Estimation of Prevalence Ratios via Logistic Regression Models

Estimates adjusted prevalence ratios (PR) and their confidence intervals from logistic regression models, addressing the well-known limitation of odds ratios (OR) as approximations to PR in cross-sectional studies with common outcomes. Supports independent observations (glm()), clustered/multilevel data (glmer() from 'lme4'), longitudinal data via Generalised Estimating Equations (geeglm() from 'geepack'), and complex survey designs (svyglm() from 'survey'). Inference is available via the delta method (conditional and marginal standardisation) and via bootstrap (normal-approximation and percentile intervals). Continuous covariates are handled through user-specified or median-based reference values; flexible baseline specification allows any reference category to be chosen for factor predictors. Based on the methodology described in Amorim & Ospina (2021) <doi:10.1590/0001-3765202120190316>.

Version: 2.0.2
Depends: R (≥ 4.1.0)
Imports: boot, lme4, stats, graphics
Suggests: geepack, survey, MASS, testthat (≥ 3.0.0), knitr, rmarkdown, ggplot2, dplyr
Published: 2026-06-19
DOI: 10.32614/CRAN.package.prLogistic
Author: Raydonal Ospina ORCID iD [aut, cre], Leila D. Amorim ORCID iD [aut]
Maintainer: Raydonal Ospina <raydonal at de.ufpe.br>
BugReports: https://github.com/Raydonal/prLogistic/issues
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
URL: https://github.com/Raydonal/prLogistic, https://raydonal.github.io/prLogistic/
NeedsCompilation: no
Citation: prLogistic citation info
Materials: README, NEWS
CRAN checks: prLogistic results

Documentation:

Reference manual: prLogistic.html , prLogistic.pdf
Vignettes: Reproducing the Examples from Amorim & Ospina (2021) (source, R code)
Estimating Prevalence Ratios with prLogistic (source, R code)

Downloads:

Package source: prLogistic_2.0.2.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available
Old sources: prLogistic archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=prLogistic to link to this page.