Package: prLogistic 2.0.2

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.zip(r-4.7)prLogistic_2.0.2.zip(r-4.6)prLogistic_2.0.2.zip(r-4.5)
prLogistic_2.0.2.tgz(r-4.6-any)prLogistic_2.0.2.tgz(r-4.5-any)
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://raydonal.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:

5.26 score 20 scripts 19 downloads 3 mentions 5 exports 14 dependencies

Last updated from:21fe1f02df. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK196
source / vignettesOK233
linux-release-x86_64OK156
macos-release-arm64OK91
macos-oldrel-arm64OK97
windows-develOK93
windows-releaseOK110
windows-oldrelOK101
wasm-releaseOK120

Exports:prLogisticBootCondprLogisticBootMargprLogisticDeltaprLogisticGEEprLogisticSurvey

Dependencies:bootlatticelme4MASSMatrixminqanlmenloptrrbibutilsRcppRcppEigenRdpackreformulasrlang

Estimating Prevalence Ratios with prLogistic

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

Last update: 2026-06-05
Started: 2026-06-05

Reproducing the Examples from Amorim & Ospina (2021)

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

Last update: 2026-06-05
Started: 2026-06-05