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.

2.11 score 1 stars 26 scripts 185 downloads 5 mentions 23 exports 73 dependencies

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

TargetResultDate
Doc / VignettesOKNov 21 2024
R-4.5-winNOTENov 21 2024
R-4.5-linuxNOTENov 21 2024
R-4.4-winNOTENov 21 2024
R-4.4-macNOTENov 21 2024
R-4.3-winNOTENov 21 2024
R-4.3-macNOTENov 21 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:abindbackportsbootbroomcarcarDataclicodetoolscolorspacecorrplotcowplotcpp11DerivdoBydoParalleldplyrfansifarverforeachFormulagenericsggplot2ggpubrggrepelggsciggsignifgluegridExtragtableisobanditeratorslabelinglatticelifecyclelme4magrittrMASSMatrixMatrixModelsmgcvmicrobenchmarkminqamodelrmunsellnleqslvnlmenloptrnnetnumDerivpbkrtestpillarpkgconfigpolynompurrrquantregR6RColorBrewerRcppRcppEigenrlangrstatixscalesSparseMstringistringrsurvivaltibbletidyrtidyselectutf8vctrsviridisLitewithr

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