Package: MSPRT 3.0

MSPRT: A Modified Sequential Probability Ratio Test (MSPRT)

Given the maximum available sample size (N) for an experiment, and the target levels of Type I and II error probabilities, this package designs a modified SPRT (MSPRT). For any designed MSPRT the package can also obtain its operating characteristics and implement the test for a given sequentially observed data. The MSPRT is defined in a manner very similar to Wald's initial proposal. The proposed test has shown evidence of reducing the average sample size required to perform statistical hypothesis tests at specified levels of significance and power. Currently, the package implements one-sample proportion tests, one and two-sample z tests, and one and two-sample t tests. A brief user guidance for this package is provided below. One can also refer to the supplemental information for the same.

Authors:Sandipan Pramanik [aut, cre], Valen E. Johnson [aut], Anirban Bhattacharya [aut]

MSPRT_3.0.tar.gz
MSPRT_3.0.zip(r-4.5)MSPRT_3.0.zip(r-4.4)MSPRT_3.0.zip(r-4.3)
MSPRT_3.0.tgz(r-4.4-any)MSPRT_3.0.tgz(r-4.3-any)
MSPRT_3.0.tar.gz(r-4.5-noble)MSPRT_3.0.tar.gz(r-4.4-noble)
MSPRT_3.0.tgz(r-4.4-emscripten)MSPRT_3.0.tgz(r-4.3-emscripten)
MSPRT.pdf |MSPRT.html
MSPRT/json (API)

# Install 'MSPRT' in R:
install.packages('MSPRT', repos = c('https://sandy-pramanik.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.

23 exports 1 stars 1.51 score 72 dependencies 5 mentions 26 scripts 252 downloads

Last updated 4 years agofrom:0bb43ad2be. Checks:OK: 1 NOTE: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 23 2024
R-4.5-winNOTEAug 23 2024
R-4.5-linuxNOTEAug 23 2024
R-4.4-winNOTEAug 23 2024
R-4.4-macNOTEAug 23 2024
R-4.3-winNOTEAug 23 2024
R-4.3-macNOTEAug 23 2024

Exports:design.MSPRTdesign.MSPRT_onePropdesign.MSPRT_oneTdesign.MSPRT_oneZdesign.MSPRT_twoTdesign.MSPRT_twoZeffectiveN.onePropfixed_design.altimplement.MSPRTimplement.MSPRT_onePropimplement.MSPRT_oneTimplement.MSPRT_oneZimplement.MSPRT_twoTimplement.MSPRT_twoZNstarOCandASN.MSPRTOCandASN.MSPRT_onePropOCandASN.MSPRT_oneTOCandASN.MSPRT_oneZOCandASN.MSPRT_twoTOCandASN.MSPRT_twoZType2.fixed_designUMPBT.alt

Dependencies:abindbackportsbootbroomcarcarDataclicodetoolscolorspacecorrplotcowplotcpp11DerivdoBydoParalleldplyrfansifarverforeachgenericsggplot2ggpubrggrepelggsciggsignifgluegridExtragtableisobanditeratorslabelinglatticelifecyclelme4magrittrMASSMatrixMatrixModelsmgcvmicrobenchmarkminqamodelrmunsellnleqslvnlmenloptrnnetnumDerivpbkrtestpillarpkgconfigpolynompurrrquantregR6RColorBrewerRcppRcppEigenrlangrstatixscalesSparseMstringistringrsurvivaltibbletidyrtidyselectutf8vctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
A Modified Sequential Probability Ratio Test (MSPRT)MSPRT-package MSPRT
Designing the MSPRTdesign.MSPRT
Internal MSPRT function: Designing the MSPRT for one-sample proportion testsdesign.MSPRT_oneProp
Internal MSPRT function: Designing the MSPRT for one-sample t testsdesign.MSPRT_oneT
Internal MSPRT function: Designing the MSPRT for one-sample z testsdesign.MSPRT_oneZ
Internal MSPRT function: Designing the MSPRT for two-sample t testsdesign.MSPRT_twoT
Internal MSPRT function: Designing the MSPRT for two-sample z testsdesign.MSPRT_twoZ
Calculating effective maximum sample size to be used in designing the MSPRT in one-sample proportion testeffectiveN.oneProp
Fixed-design alternativefixed_design.alt
Implementing the MSPRTimplement.MSPRT
Internal MSPRT function: Implementing the MSPRT in one-sample proportion testsimplement.MSPRT_oneProp
Internal MSPRT function: Implementing the MSPRT in one-sample t testsimplement.MSPRT_oneT
Internal MSPRT function: Implementing the MSPRT in one-sample z testsimplement.MSPRT_oneZ
Internal MSPRT function: Implementing the MSPRT in two-sample t testsimplement.MSPRT_twoT
Internal MSPRT function: Implementing the MSPRT in two-sample z testsimplement.MSPRT_twoZ
Sample size required to achieve higher significanceNstar
Operating characteristics (OC) and Average Sample Number (ASN) of a designed MSPRTOCandASN.MSPRT
Internal MSPRT function: OC and ASN of a designed MSPRT in one-sample proportion testsOCandASN.MSPRT_oneProp
Internal MSPRT function: OC and ASN of a designed MSPRT in one-sample t testsOCandASN.MSPRT_oneT
Internal MSPRT function: OC and ASN of a designed MSPRT in one-sample z testsOCandASN.MSPRT_oneZ
Internal MSPRT function: OC and ASN of a designed MSPRT in two-sample t testsOCandASN.MSPRT_twoT
Internal MSPRT function: OC and ASN of a designed MSPRT in two-sample z testsOCandASN.MSPRT_twoZ
Type II error probability of fixed design testsType2.fixed_design
UMPBT alternativeUMPBT.alt