Skip to content

prLogistic

Estimation of Prevalence Ratios via Logistic Regression Models

v2.0.2 · Jun 19, 2026 · GPL (>= 2)

Description

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

Downloads

CRAN

148

Last 30 days

23917th

148

Last 90 days

150

Last year

r2u CRAN

4

Last 30 days

10

Last 90 days

71

Last year

Trend: -33.3% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 7 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 20, 2026

Dependency Network

Dependencies Reverse dependencies boot lme4 prLogistic

Version History

4 tracked
new 2.0.2 Jun 19, 2026
update 1.2 ← 1.1 diff Sep 18, 2013
update 1.1 ← 1.0 diff Oct 25, 2011
new 1.0 Jul 22, 2011