Package: SAMBA 1.0.0

SAMBA: Selection and Misclassification Bias Adjustment for Logistic Regression Models

Health research using data from electronic health records (EHR) has gained popularity, but misclassification of EHR-derived disease status and lack of representativeness of the study sample can result in substantial bias in effect estimates and can impact power and type I error for association tests. Here, the assumed target of inference is the relationship between binary disease status and predictors modeled using a logistic regression model. 'SAMBA' implements several methods for obtaining bias-corrected point estimates along with valid standard errors as proposed in Beesley and Mukherjee (2020) <doi:10.1111/biom.13400>, Biometrics.

Authors:Lauren Beesley [cre], Alexander Rix [aut]

SAMBA_1.0.0.tar.gz
SAMBA_1.0.0.zip(r-4.7)SAMBA_1.0.0.zip(r-4.6)SAMBA_1.0.0.zip(r-4.5)
SAMBA_1.0.0.tgz(r-4.6-any)SAMBA_1.0.0.tgz(r-4.5-any)
SAMBA_1.0.0.tar.gz(r-4.7-any)SAMBA_1.0.0.tar.gz(r-4.6-any)
SAMBA_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
SAMBA/json (API)
NEWS

# Install 'SAMBA' in R:
install.packages('SAMBA', repos = c('https://lbeesleybiostat.r-universe.dev', 'https://cloud.r-project.org'))
Datasets:
  • samba.df - Synthetic example data for SAMBA adapted from the vignette

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

4.45 score 1 packages 19 scripts 156 downloads 97 mentions 5 exports 13 dependencies

Last updated from:d057ac0d7b. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK121
source / vignettesOK182
linux-release-x86_64OK137
macos-release-arm64OK145
macos-oldrel-arm64OK144
windows-develOK84
windows-releaseOK73
windows-oldrelOK115
wasm-releaseOK106

Exports:approxdistnonlogisticobsloglikobsloglikEMsensitivity

Dependencies:DBIlatticeMatrixminqamitoolsnloptrnumDerivoptimxpracmaRcppRcppArmadillosurveysurvival

Using SAMBA

Rendered fromUsingSAMBA.Rmdusingknitr::rmarkdownon Jun 04 2026.

Last update: 2026-06-03
Started: 2020-02-20