Crandore Hub

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

Versions across snapshots

VersionRepositoryFileSize
2.0.2 rolling linux/jammy R-4.5 prLogistic_2.0.2.tar.gz 186.7 KiB
2.0.2 rolling linux/noble R-4.5 prLogistic_2.0.2.tar.gz 186.6 KiB
2.0.2 rolling source/ R- prLogistic_2.0.2.tar.gz 133.1 KiB
2.0.2 latest linux/jammy R-4.5 prLogistic_2.0.2.tar.gz 186.7 KiB
2.0.2 latest linux/noble R-4.5 prLogistic_2.0.2.tar.gz 186.6 KiB
2.0.2 latest source/ R- prLogistic_2.0.2.tar.gz 133.1 KiB
2.0.2 2026-04-23 source/ R- prLogistic_2.0.2.tar.gz 0 B

Dependencies (latest)

Imports

Suggests