Package: prLogistic 2.0.2

Raydonal Ospina

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

Authors:Raydonal Ospina [aut, cre], Leila D. Amorim [aut]

prLogistic_2.0.2.tar.gz
prLogistic_2.0.2.tar.gz(r-4.7-any)prLogistic_2.0.2.tar.gz(r-4.6-any)
prLogistic_2.0.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
prLogistic/json (API)
NEWS

# Install 'prLogistic' in R:
install.packages('prLogistic', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/raydonal/prlogistic/issues

Pkgdown/docs site:https://raydonal.github.io

Datasets:
  • downer - Downer Cow Survival Data
  • LBW - Low Birth Weight - Longitudinal Study
  • Thailand - Thailand Education Study
  • titanic - Titanic Passenger Survival
  • Toenail - Toenail Infection Trial
  • UIS - UIS Drug Treatment Study

On CRAN:

Conda:

3.78 score 20 scripts 21 downloads 3 mentions 5 exports 14 dependencies

Last updated from:ee650bd239. Checks:4 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK159
source / vignettesOK190
linux-release-x86_64OK152
wasm-releaseOK136

Exports:prLogisticBootCondprLogisticBootMargprLogisticDeltaprLogisticGEEprLogisticSurvey

Dependencies:bootlatticelme4MASSMatrixminqanlmenloptrrbibutilsRcppRcppEigenRdpackreformulasrlang

Estimating Prevalence Ratios with prLogistic

Rendered fromprLogistic-intro.Rmdusingknitr::rmarkdownon Jun 19 2026.

Last update: 2026-06-19
Started: 2026-06-19

Reproducing the Examples from Amorim & Ospina (2021)

Rendered fromarticle-examples.Rmdusingknitr::rmarkdownon Jun 19 2026.

Last update: 2026-06-19
Started: 2026-06-19