Package: bootLR 1.0.2

bootLR: Bootstrapped Confidence Intervals for (Negative) Likelihood Ratio Tests

Computes appropriate confidence intervals for the likelihood ratio tests commonly used in medicine/epidemiology, using the method of Marill et al. (2015) <doi:10.1177/0962280215592907>. It is particularly useful when the sensitivity or specificity in the sample is 100%. Note that this does not perform the test on nested models--for that, see 'epicalc::lrtest'.

Authors:Keith A. Marill and Ari B. Friedman

bootLR_1.0.2.tar.gz
bootLR_1.0.2.zip(r-4.5)bootLR_1.0.2.zip(r-4.4)bootLR_1.0.2.zip(r-4.3)
bootLR_1.0.2.tgz(r-4.4-any)bootLR_1.0.2.tgz(r-4.3-any)
bootLR_1.0.2.tar.gz(r-4.5-noble)bootLR_1.0.2.tar.gz(r-4.4-noble)
bootLR_1.0.2.tgz(r-4.4-emscripten)bootLR_1.0.2.tgz(r-4.3-emscripten)
bootLR.pdf |bootLR.html
bootLR/json (API)
NEWS

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

Peer review:

On CRAN:

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

1.30 score 7 scripts 178 downloads 2 mentions 3 exports 2 dependencies

Last updated 6 years agofrom:d3a64b170b. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 31 2024
R-4.5-winOKOct 31 2024
R-4.5-linuxOKOct 31 2024
R-4.4-winOKOct 31 2024
R-4.4-macOKOct 31 2024
R-4.3-winOKOct 31 2024
R-4.3-macOKOct 31 2024

Exports:BayesianLR.testconfusionStatisticsdiagCI

Dependencies:binomboot

Readme and manuals

Help Manual

Help pageTopics
Compute the (positive/negative) likelihood ratio with appropriate, bootstrapped confidence intervalsBayesianLR.test
Internal function to analyze LR bootstrap finding median, and standard and BCa percentile 95 To obtain bca CI on a non-boot result, use a dummy boot. and replace t and t0 with the results of interest.bca
Compute sensitivity, specificity, positive likelihood ratio, negative likelihood ratio for a single 2x2 tableconfusionStatistics
Compute values and confidence intervals for sensitivity, specificity, positive likelihood ratio, negative likelihood ratio for a single 2x2 tablediagCI
Internal function to draw a set of sensitivities or specificities This is intended for the case where testPos == totalDzPos or testNeg == totalDzNeg.drawMaxedOut
Find the lowest population probability whose median is consistently one This is the lowest estimate for Sens that is consistently (over 5 runs) most likely to yield a sample estimate that is all 1's (e.g. 100/100, etc.).medianConsistentlyOne
Prints results from diagCI As is typical for R, this is run automatically when you type in an object name, and is typically not run directly by the end-user.print.diagCI
Prints results from the BayesianLR.test As is typical for R, this is run automatically when you type in an object name, and is typically not run directly by the end-user.print.lrtest
The actual function that runs the test. BayesianLR.test is a wrapper that runs this with ever-looser tolerances.run.BayesianLR.test
Optimize a function returning a single numeric value subject to a boolean constraint Utilizes a naive recursive grid search.sequentialGridSearch