mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial...

340
Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer Rajeswaran Viswanathan <[email protected]> Description Abundant statistical literature has revealed the importance of constructing and evaluat- ing various methods for constructing confidence intervals (CI) for single binomial propor- tion (p). We comprehensively provide procedures in frequentist (approximate with or with- out adding pseudo counts or continuity correction or exact) and in Bayesian cultures. Evalua- tion procedures for CI warrant active computational attention and required summaries pertain- ing to four criterion (coverage probability, expected length, p-confidence, p-bias, and er- ror) are implemented. License GPL-2 URL https://github.com/RajeswaranV/proportion BugReports https://github.com/RajeswaranV/proportion/issues Depends R (>= 3.2.2) LazyData true Encoding UTF-8 Imports TeachingDemos, ggplot2 Suggests knitr, rmarkdown RoxygenNote 6.0.1 NeedsCompilation no Repository CRAN Date/Publication 2017-05-03 21:49:25 UTC R topics documented: A package for binomial proportion ............................. 8 ciAAll ............................................ 10 ciAAllx ........................................... 11 1

Transcript of mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial...

Page 1: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

Package ‘proportion’May 3, 2017

Title Inference on Single Binomial Proportion and BayesianComputations

Version 2.0.0

Author M.Subbiah, V.Rajeswaran

Maintainer Rajeswaran Viswanathan <[email protected]>

Description Abundant statistical literature has revealed the importance of constructing and evaluat-ing various methods for constructing confidence intervals (CI) for single binomial propor-tion (p). We comprehensively provide procedures in frequentist (approximate with or with-out adding pseudo counts or continuity correction or exact) and in Bayesian cultures. Evalua-tion procedures for CI warrant active computational attention and required summaries pertain-ing to four criterion (coverage probability, expected length, p-confidence, p-bias, and er-ror) are implemented.

License GPL-2

URL https://github.com/RajeswaranV/proportion

BugReports https://github.com/RajeswaranV/proportion/issues

Depends R (>= 3.2.2)

LazyData true

Encoding UTF-8

Imports TeachingDemos, ggplot2

Suggests knitr, rmarkdown

RoxygenNote 6.0.1

NeedsCompilation no

Repository CRAN

Date/Publication 2017-05-03 21:49:25 UTC

R topics documented:A package for binomial proportion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8ciAAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10ciAAllx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

1

Page 2: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

2 R topics documented:

ciAAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13ciAASx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14ciAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15ciAllx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17ciALR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18ciALRx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19ciALT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21ciALTx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22ciAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23ciASC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25ciASCx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26ciASx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27ciATW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29ciATWx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30ciAWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31ciAWDx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32ciBA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34ciBAx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35ciCAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37ciCAllx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38ciCAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39ciCASx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40ciCLT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42ciCLTx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43ciCSC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44ciCSCx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45ciCTW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47ciCTWx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48ciCWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49ciCWDx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50ciEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52ciEXx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53ciLR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55ciLRx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56ciLT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58ciLTx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59ciSC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61ciSCx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62ciTW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64ciTWx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65ciWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67ciWDx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68covpAAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70covpAAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71covpAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72covpALR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74covpALT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75covpAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77

Page 3: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

R topics documented: 3

covpASC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78covpATW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79covpAWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81covpBA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82covpCAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84covpCAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85covpCLT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86covpCSC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88covpCTW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89covpCWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90covpEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91covpGEN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93covpLR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94covpLT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96covpSC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97covpSIM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99covpTW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100covpWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101empericalBA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103empericalBAx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104errAAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105errAAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106errAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107errALR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108errALT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109errAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110errASC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111errATW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112errAWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113errBA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114errCAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115errCAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116errCLT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117errCSC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118errCTW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119errCWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120errEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121errGEN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122errLR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123errLT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124errSC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125errTW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126errWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127hypotestBAF1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128hypotestBAF1x . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130hypotestBAF2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131hypotestBAF2x . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132hypotestBAF3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134

Page 4: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

4 R topics documented:

hypotestBAF3x . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135hypotestBAF4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136hypotestBAF4x . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138hypotestBAF5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139hypotestBAF5x . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140hypotestBAF6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142hypotestBAF6x . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143lengthAAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145lengthAAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146lengthAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147lengthALR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149lengthALT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150lengthAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151lengthASC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153lengthATW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154lengthAWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155lengthBA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156lengthCAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158lengthCAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159lengthCLT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160lengthCSC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162lengthCTW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163lengthCWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164lengthEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165lengthGEN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167lengthLR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168lengthLT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170lengthSC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171lengthSIM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173lengthTW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174lengthWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175pCOpBIAAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177pCOpBIAAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178pCOpBIAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179pCOpBIALR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180pCOpBIALT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181pCOpBIAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182pCOpBIASC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183pCOpBIATW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184pCOpBIAWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185pCOpBIBA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186pCOpBICAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187pCOpBICAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188pCOpBICLT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189pCOpBICSC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190pCOpBICTW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191pCOpBICWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192pCOpBIEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193

Page 5: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

R topics documented: 5

pCOpBIGEN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194pCOpBILR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195pCOpBILT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196pCOpBISC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197pCOpBITW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198pCOpBIWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199PlotciAAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200PlotciAAllg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200PlotciAAllx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201PlotciAAllxg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202PlotciAAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203PlotciAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203PlotciAllg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204PlotciAllx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205PlotciAllxg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206PlotciALR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206PlotciALT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207PlotciAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208PlotciASC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208PlotciATW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209PlotciAWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210PlotciBA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210PlotciCAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211PlotciCAllg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212PlotciCAllx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213PlotciCAllxg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214PlotciCAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214PlotciCLT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215PlotciCSC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216PlotciCTW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217PlotciCWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217PlotciEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218PlotciEXx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219PlotciLR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220PlotciLT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220PlotciSC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221PlotciTW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222PlotciWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222PlotcovpAAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223PlotcovpAAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224PlotcovpAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225PlotcovpALR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226PlotcovpALT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227PlotcovpAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228PlotcovpASC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229PlotcovpATW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230PlotcovpAWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231PlotcovpBA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232

Page 6: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

6 R topics documented:

PlotcovpCAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233PlotcovpCAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234PlotcovpCLT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235PlotcovpCSC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236PlotcovpCTW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237PlotcovpCWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238PlotcovpEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239PlotcovpGEN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240PlotcovpLR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241PlotcovpLT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242PlotcovpSC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243PlotcovpSIM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244PlotcovpTW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245PlotcovpWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246PloterrAAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247PloterrAAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248PloterrAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248PloterrALR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249PloterrALT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250PloterrAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251PloterrASC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251PloterrATW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252PloterrAWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253PloterrBA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254PloterrCAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255PloterrCAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256PloterrCLT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256PloterrCSC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257PloterrCTW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258PloterrCWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259PloterrEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259PloterrLR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260PloterrLT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261PloterrSC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262PloterrTW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262PloterrWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263PlotexplAAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264PlotexplAAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265PlotexplAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266PlotexplALR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267PlotexplALT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268PlotexplAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269PlotexplASC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270PlotexplATW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271PlotexplAWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272PlotexplBA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273PlotexplCAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274PlotexplCAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275

Page 7: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

R topics documented: 7

PlotexplCLT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276PlotexplCSC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277PlotexplCTW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278PlotexplCWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279PlotexplEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280PlotexplGEN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281PlotexplLR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281PlotexplLT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282PlotexplSC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283PlotexplSIM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284PlotexplTW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285PlotexplWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286PlotlengthAAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287PlotlengthAAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288PlotlengthAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289PlotlengthALR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290PlotlengthALT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291PlotlengthAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292PlotlengthASC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292PlotlengthATW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293PlotlengthAWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294PlotlengthBA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295PlotlengthCAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296PlotlengthCAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297PlotlengthCLT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298PlotlengthCSC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299PlotlengthCTW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300PlotlengthCWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301PlotlengthEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302PlotlengthGEN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303PlotlengthLR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303PlotlengthLT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304PlotlengthSC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305PlotlengthSIM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306PlotlengthTW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307PlotlengthWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307PlotpCOpBIAAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308PlotpCOpBIAAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309PlotpCOpBIAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310PlotpCOpBIALR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311PlotpCOpBIALT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311PlotpCOpBIAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312PlotpCOpBIASC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313PlotpCOpBIATW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314PlotpCOpBIAWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314PlotpCOpBIBA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315PlotpCOpBICAll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316PlotpCOpBICAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317

Page 8: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

8 A package for binomial proportion

PlotpCOpBICLT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318PlotpCOpBICSC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318PlotpCOpBICTW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319PlotpCOpBICWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320PlotpCOpBIEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321PlotpCOpBIGEN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322PlotpCOpBILR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323PlotpCOpBILT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324PlotpCOpBISC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325PlotpCOpBITW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326PlotpCOpBIWD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327probPOS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328probPOSx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329probPRE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330probPREx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331

Index 333

A package for binomial proportion

Proportion: Let x denote the number of successes in n independentBernoulli trials with X ~ Binomial (n, p) then phat = x/n denotes thesample proportion.

Description

Proportion: Let x denote the number of successes in n independent Bernoulli trials with X ~ Bino-mial (n, p) then phat = x/n denotes the sample proportion.

Introduction

Objective of this package is to present interval estimation procedures for ’p’ outlined above in amore comprehensive way.Quality assessment procedures such as statistic based on coverage proba-bility, Expected length, Error, p-confidence and p-bias are also included. Also, an array of Bayesiancomputations (Bayes factor, Empirical Bayesian, Posterior predictive computation, and posteriorprobability) with conjugate prior are made available. The proportion package provides three cat-egories of important functions: Confidence Intervals, metrics on confidence intrvals (coverageprobability, length, p-confidence and p-bias, error and long term power) and other methods (hy-pothesis testing and general/simulation methods).

Proportion methods grouping

For finding confidence interval for p we have included

• Methods based on the asymptotic normality of the sample proportion and estimating standarderror

• Exact methods based on inverting equal-tailed binomial tests of H0 : p = p0,• Methods based on likelihood ratios• Bayesian approaches with beta priors or other suitable priors.

Page 9: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

A package for binomial proportion 9

Proportion function naming convention

The general guideline for finding functions are given below:

• Short names for concepts: ci - Confidence Interval, covp - Coverage Probability, expl - Ex-pected length (simulation), length - Sum of length, pCOpBI - p-Confidence and p-Bias, err -Error and long term power

• Short names for methods: AS - ArcSine, LR - Likelihood Ratio, LT - Logit Wald, SC - Score(also know as Wilson), TW - Wald-T, WD - Wald, BA - Bayesian and EX - Exact in generalform that includes Mid-P and Clopper-Pearson.

• For adjusted methods "A" is added to the function name while "C" will be added if it iscontinuity corrected.

• For generic functions BAF - Bayesian Factor, SIM - Simulation, GEN - Generic, PRE - Pre-dicted, POS - Posterior

• Combining the above you should be able to identify the function. For example, function forcoverage probability (covp) using ArcSine (AS) method will be covpAS(). If we need theadjusted coverage probability (covp) using ArcSine (AS) method, then it will be covpAAS().

• Wherever possible, results are consolidated for all x (0,1...n) and specific x (function namesucceeds with x). For example, if we run ciAS(n=5, alp=0.05) the output of x=5 will be thesame as ciASx(x=5, n=5,alp=0.05). In the first case the output is printed for all the valuesof x till x=n.

• All refers to six approximate methods (Wald, Score, Likelihood Ratio, ArcSine, Logit Waldand Wald-T) - AAll (Adjusted All) refers to six methods adjusted with adding factor h (Wald,Score, Likelihood Ratio, ArcSine, Logit Wald and Wald-T)

• CAll (Continuity corrected All) refers to five methods (Wald, Score, ArcSine, Logit Wald andWald-T) with continuity correction c

• Grouping functions for plots end with "g" (PlotciAllxg is the same as PlotciAllx, except theresults are grouped by x)

• For almost all the functions, corrosponding plot function is implemented, which plots theoutput in an apporiate graph. For example, the function covpAll() will give the numericoutput for the coverage probability of the six approximate methods (see explanation of Allabove). Prefixing this with Plot makes it PlotcovpAll() and will display the plot for thesame six approximate methods.

Reproducibility of reference papers

To help the researcher reporduce results in existing papers we have taken six key papers (see refer-ences below) [3], [8], [9], [10], [11], [12] and reproduced the results and suggested further items totry. Details are in the vignette.

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

Page 10: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

10 ciAAll

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez. M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

[8] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

[9] 2005 Joseph L and Reinhold C. Statistical Inference for Proportions American Journal of Radi-ologists 184; 1057 - 1064

[10] 2008 Zhou, X. H., Li, C.M. and Yang, Z. Improving interval estimation of binomial propor-tions. Phil. Trans. R. Soc. A, 366, 2405-2418

[11] 2012 Wei Yu, Xu Guo and Wangli Xua. An improved score interval with a modified midpointfor a binomial proportion, Journal of Statistical Computation and Simulation, 84, 5, 1-17

[12] 2008 Tuyl F, Gerlach R and Mengersen K . A comparison of Bayes-Laplace, Jeffreys, andOther Priors: The case of zero events. The American Statistician: 62; 40 - 44.

ciAAll CI estimation of 6 adjusted methods (Wald, Wald-T, Likelihood, Score,Logit-Wald, ArcSine) given adding factor

Description

CI estimation of 6 adjusted methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine) givenadding factor

Usage

ciAAll(n, alp, h)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - adding factor

Details

The Confidence Interval using 6 adjusted methods (Wald, Wald-T, Likelihood, Score, Logit-Wald,ArcSine) for n given alp and h

Page 11: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciAAllx 11

Value

A dataframe with

name - Name of the method

x - Number of successes (positive samples)

LLT - Lower limit

ULT - Upper Limit

LABB - Lower Abberation

UABB - Upper Abberation

ZWI - Zero Width Interval

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Adjusted methods of CI estimation: PlotciAAS, PlotciAAllg, PlotciAAll, PlotciALR,PlotciALT, PlotciASC, PlotciATW, PlotciAWD, ciAAS, ciALR, ciALT, ciASC, ciATW, ciAWD

Examples

n=5; alp=0.05;h=2ciAAll(n,alp,h)

ciAAllx CI estimation of 6 adjusted methods (Wald, Wald-T, Likelihood, Score,Logit-Wald, ArcSine) given x and n

Description

CI estimation of 6 adjusted methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine) givenx and n

Page 12: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

12 ciAAllx

Usage

ciAAllx(x, n, alp, h)

Arguments

x - Number of success

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

Details

The Confidence Interval of using 6 adjusted methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine) for n given alp, x and h

Value

A dataframe with

name - Name of the method

x - Number of successes (positive samples)

LLT - Lower limit

ULT - Upper Limit

LABB - Lower Abberation

UABB - Upper Abberation

ZWI - Zero Width Interval

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Adjusted methods of CI estimation given x & n: PlotciAAllx, ciAASx, ciALRx, ciALTx,ciASCx, ciATWx, ciAWDx

Page 13: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciAAS 13

Examples

x=5; n=5; alp=0.05;h=2ciAAllx(x,n,alp,h)

ciAAS Adjusted ArcSine method of CI estimation

Description

Adjusted ArcSine method of CI estimation

Usage

ciAAS(n, alp, h)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - adding factor

Details

Wald-type interval for the arcsine transformation of the parameter p for the modified data x+h andn+ (2 ∗ h) , where h > 0 and for all x = 0, 1, 2..n.

Value

A dataframe with

x Number of successes (positive samples)

LAAS Adjusted ArcSine Lower limit

UAAS Adjusted ArcSine Upper Limit

LABB Adjusted ArcSine Lower Abberation

UABB Adjusted ArcSine Upper Abberation

ZWI Zero Width Interval

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

Page 14: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

14 ciAASx

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Adjusted methods of CI estimation: PlotciAAS, PlotciAAllg, PlotciAAll, PlotciALR,PlotciALT, PlotciASC, PlotciATW, PlotciAWD, ciAAll, ciALR, ciALT, ciASC, ciATW, ciAWD

Examples

n=5; alp=0.05;h=2ciAAS(n,alp,h)

ciAASx Adjusted ArcSine method of CI estimation

Description

Adjusted ArcSine method of CI estimation

Usage

ciAASx(x, n, alp, h)

Arguments

x - Number of successes

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

Details

Wald-type interval for the arcsine transformation of the parameter p for the modified data x+h andn+ (2 ∗ h) , where h > 0 and for the given x and n.

Value

A dataframe with

x Number of successes (positive samples)

LAASx ArcSine Lower limit

UAASx ArcSine Upper Limit

LABB ArcSine Lower Abberation

UABB ArcSine Upper Abberation

ZWI Zero Width Interval

Page 15: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciAll 15

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Adjusted methods of CI estimation given x & n: PlotciAAllx, ciAAllx, ciALRx, ciALTx,ciASCx, ciATWx, ciAWDx

Examples

x=5; n=5; alp=0.05;h=2ciAASx(x,n,alp,h)

ciAll CI estimation of 6 base methods (Wald, Wald-T, Likelihood, Score,Logit-Wald, ArcSine)

Description

CI estimation of 6 base methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine)

Usage

ciAll(n, alp)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Details

The Confidence Interval of 6 base methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine)for n given alp.

Page 16: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

16 ciAll

Value

A dataframe with

method - Name of the method

x - Number of successes (positive samples)

LLT - Lower limit

ULT - Upper Limit

LABB - Lower Abberation

UABB - Upper Abberation

ZWI - Zero Width Interval

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Basic methods of CI estimation: PlotciAS, PlotciAllg, PlotciAll, PlotciBA, PlotciEX,PlotciLR, PlotciLT, PlotciSC, PlotciTW, PlotciWD, ciAS, ciBA, ciEX, ciLR, ciLT, ciSC, ciTW,ciWD

Examples

n=5; alp=0.05;ciAll(n,alp)

Page 17: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciAllx 17

ciAllx Specific CI estimation of 6 base methods (Wald, Wald-T, Likelihood,Score, Logit-Wald, ArcSine)

Description

Specific CI estimation of 6 base methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine)

Usage

ciAllx(x, n, alp)

Arguments

x - Number of sucess

n - Number of trials

alp - Alpha value (significance level required)

Details

The Confidence Interval of using 6 base methods (Wald, Wald-T, Likelihood, Score, Logit-Wald,ArcSine) for n given alp and x

Value

A dataframe with

name - Name of the method

x - Number of successes (positive samples)

LLT - Lower limit

ULT - Upper Limit

LABB - Lower Abberation

UABB - Upper Abberation

ZWI - Zero Width Interval

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

Page 18: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

18 ciALR

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Base methods of CI estimation given x & n: PlotciAllxg, PlotciAllx, PlotciEXx, ciASx,ciBAx, ciEXx, ciLRx, ciLTx, ciSCx, ciTWx, ciWDx

Examples

x= 5; n=5; alp=0.05;ciAllx(x,n,alp)

ciALR Adjusted Likelihood method of CI estimation

Description

Adjusted Likelihood method of CI estimation

Usage

ciALR(n, alp, h)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - adding factor

Details

Likelihood ratio limits for the data x+ h and n+ (2 ∗ h) instead of the given codex and n, where his a positive integer (1, 2.) and for all x = 0, 1, 2..n.

Page 19: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciALRx 19

Value

A dataframe with

x Number of successes (positive samples)

LALR Adjusted Likelihood Lower limit

UALR Adjusted Likelihood Upper Limit

LABB Adjusted Likelihood Lower Abberation

UABB Adjusted Likelihood Upper Abberation

ZWI Zero Width Interval

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Adjusted methods of CI estimation: PlotciAAS, PlotciAAllg, PlotciAAll, PlotciALR,PlotciALT, PlotciASC, PlotciATW, PlotciAWD, ciAAS, ciAAll, ciALT, ciASC, ciATW, ciAWD

Examples

n=5; alp=0.05;h=2ciALR(n,alp,h)

ciALRx AdjustedLikelyhood Ratio method of CI estimation

Description

AdjustedLikelyhood Ratio method of CI estimation

Usage

ciALRx(x, n, alp, h)

Page 20: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

20 ciALRx

Arguments

x - Number of successes

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

Details

Likelihood ratio limits for the data x+ h and n+ (2 ∗ h) instead of the given x and n, where h is apositive integer (1, 2.) and for the given x and n.

Value

A dataframe with

x Number of successes (positive samples)

LALRx Likelyhood Ratio Lower limit

UALRx Likelyhood Ratio Upper Limit

LABB Likelyhood Ratio Lower Abberation

UABB Likelyhood Ratio Upper Abberation

ZWI Zero Width Interval

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Adjusted methods of CI estimation given x & n: PlotciAAllx, ciAASx, ciAAllx, ciALTx,ciASCx, ciATWx, ciAWDx

Examples

x=5; n=5; alp=0.05;h=2ciALRx(x,n,alp,h)

Page 21: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciALT 21

ciALT Adjusted Logit-Wald method of CI estimation

Description

Adjusted Logit-Wald method of CI estimation

Usage

ciALT(n, alp, h)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - adding factor

Details

Wald-type interval for the logit transformation log(p/1 − p) of the parameter p for the modifieddata x+ h and n+ (2 ∗ h), where h > 0 and for all x = 0, 1, 2..n.

Value

A dataframe with

x Number of successes (positive samples)

LALT Adjusted Logit-Wald Lower limit

UALT Adjusted Logit-Wald Upper Limit

LABB Adjusted Logit-Wald Lower Abberation

UABB Adjusted Logit-Wald Upper Abberation

ZWI Zero Width Interval

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

Page 22: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

22 ciALTx

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Adjusted methods of CI estimation: PlotciAAS, PlotciAAllg, PlotciAAll, PlotciALR,PlotciALT, PlotciASC, PlotciATW, PlotciAWD, ciAAS, ciAAll, ciALR, ciASC, ciATW, ciAWD

Examples

n=5; alp=0.05;h=2ciALT(n,alp,h)

ciALTx Adjusted Logit-Wald method of CI estimation

Description

Adjusted Logit-Wald method of CI estimation

Usage

ciALTx(x, n, alp, h)

Arguments

x - Number of successes

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

Details

Wald-type interval for the logit transformation log(p/1 − p) of the parameter p for the modifieddata eqnx + h and n+ (2 ∗ h) , where h > 0 and the given x and n.

Value

A dataframe with

x Number of successes (positive samples)

LALTx Logit Wald Lower limit

UALTx Logit Wald Upper Limit

LABB Logit Wald Lower Abberation

UABB Logit Wald Upper Abberation

ZWI Zero Width Interval

Page 23: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciAS 23

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Adjusted methods of CI estimation given x & n: PlotciAAllx, ciAASx, ciAAllx, ciALRx,ciASCx, ciATWx, ciAWDx

Examples

x=5; n=5; alp=0.05;h=2ciALTx(x,n,alp,h)

ciAS ArcSine method of CI estimation

Description

ArcSine method of CI estimation

Usage

ciAS(n, alp)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Details

Wald-type interval for all x = 0, 1, 2 ..n using the arcsine transformation of the parameter p; that isbased on the normal approximation for sin-1(p). Calculates the Confidence Interval of n given alpalong with lower and upper abberation.

Page 24: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

24 ciAS

Value

A dataframe with

x - Number of successes (positive samples)

LAS - ArcSine Lower limit

UAS - ArcSine Upper Limit

LABB - ArcSine Lower Abberation

UABB - ArcSine Upper Abberation

ZWI - Zero Width Interval

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Basic methods of CI estimation: PlotciAS, PlotciAllg, PlotciAll, PlotciBA, PlotciEX,PlotciLR, PlotciLT, PlotciSC, PlotciTW, PlotciWD, ciAll, ciBA, ciEX, ciLR, ciLT, ciSC,ciTW, ciWD

Examples

n=5; alp=0.05ciAS(n,alp)

Page 25: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciASC 25

ciASC Adjusted Score method of CI estimation

Description

Adjusted Score method of CI estimation

Usage

ciASC(n, alp, h)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - adding factor

Details

A score test approach is used after the given data x and n are modified as x + h and n + (2 ∗ h)respectively, where h > 0 and for all x = 0, 1, 2..n.

Value

A dataframe with

x Number of successes (positive samples)

LASC Adjusted Score Lower limit

UASC Adjusted Score Upper Limit

LABB Adjusted Score Lower Abberation

UABB Adjusted Score Upper Abberation

ZWI Zero Width Interval

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

Page 26: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

26 ciASCx

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Adjusted methods of CI estimation: PlotciAAS, PlotciAAllg, PlotciAAll, PlotciALR,PlotciALT, PlotciASC, PlotciATW, PlotciAWD, ciAAS, ciAAll, ciALR, ciALT, ciATW, ciAWD

Examples

n=5; alp=0.05;h=2ciASC(n,alp,h)

ciASCx Adjusted Score method of CI estimation

Description

Adjusted Score method of CI estimation

Usage

ciASCx(x, n, alp, h)

Arguments

x - Number of successes

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

Details

A score test approach is used after the given data x and n are modified as x + h and n + (2 ∗ h)respectively, where h > 0 and for the given x and n.

Value

A dataframe with

x Number of successes (positive samples)

LASCx Score Lower limit

UASCx Score Upper Limit

LABB Score Lower Abberation

UABB Score Upper Abberation

ZWI Zero Width Interval

Page 27: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciASx 27

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Adjusted methods of CI estimation given x & n: PlotciAAllx, ciAASx, ciAAllx, ciALRx,ciALTx, ciATWx, ciAWDx

Examples

x=5; n=5; alp=0.05; h=2ciASCx(x,n,alp,h)

ciASx Base ArcSine method of CI estimation

Description

Base ArcSine method of CI estimation

Usage

ciASx(x, n, alp)

Arguments

x - Number of successes

n - Number of trials

alp - Alpha value (significance level required)

Details

Wald-type interval for the given x and n using the arcsine transformation of the parameter p; that isbased on the normal approximation for sin−1(p)

Page 28: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

28 ciASx

Value

A dataframe with

x Number of successes (positive samples)

LASx ArcSine Lower limit

UASx ArcSine Upper Limit

LABB ArcSine Lower Abberation

UABB ArcSine Upper Abberation

ZWI Zero Width Interval

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Base methods of CI estimation given x & n: PlotciAllxg, PlotciAllx, PlotciEXx, ciAllx,ciBAx, ciEXx, ciLRx, ciLTx, ciSCx, ciTWx, ciWDx

Examples

x=5; n=5; alp=0.05ciASx(x,n,alp)

Page 29: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciATW 29

ciATW Adjusted WALD-T method of CI estimation

Description

Adjusted WALD-T method of CI estimation

Usage

ciATW(n, alp, h)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - adding factor

Details

Given data x and n are modified as x+h and n+(2∗h) respectively, where h > 0 then approximatemethod based on a t_approximation of the standardized point estimator for all x = 0, 1, 2..n.

Value

A dataframe with

x Number of successes (positive samples)

LATW Adjusted WALD-T Lower limit

UATW Adjusted WALD-T Upper Limit

LABB Adjusted WALD-T Lower Abberation

UABB Adjusted WALD-T Upper Abberation

ZWI Zero Width Interval

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

Page 30: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

30 ciATWx

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Adjusted methods of CI estimation: PlotciAAS, PlotciAAllg, PlotciAAll, PlotciALR,PlotciALT, PlotciASC, PlotciATW, PlotciAWD, ciAAS, ciAAll, ciALR, ciALT, ciASC, ciAWD

Examples

n=5; alp=0.05;h=2ciATW(n,alp,h)

ciATWx AdjustedWALD-T method of CI estimation

Description

AdjustedWALD-T method of CI estimation

Usage

ciATWx(x, n, alp, h)

Arguments

x - Number of successes

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

Details

Given data x and n are modified as x+h and n+(2∗h) respectively, where h > 0 then approximatemethod based on a t_approximation of the standardized point estimator for the given x and n.

Value

A dataframe with

x Number of successes (positive samples)

LATWx T-Wald Lower limit

UATWx T-Wald Upper Limit

LABB T-Wald Lower Abberation

UABB T-Wald Upper Abberation

ZWI Zero Width Interval

Page 31: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciAWD 31

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Adjusted methods of CI estimation given x & n: PlotciAAllx, ciAASx, ciAAllx, ciALRx,ciALTx, ciASCx, ciAWDx

Examples

x=5; n=5; alp=0.05;h=2ciATWx(x,n,alp,h)

ciAWD Adjusted Wald method of CI estimation

Description

Adjusted Wald method of CI estimation

Usage

ciAWD(n, alp, h)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - adding factor

Details

Given data x and n are modified as x+ h and n+(2 ∗ h) respectively, where h > 0 then Wald-typeinterval is applied for all x = 0, 1, 2..n.

Page 32: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

32 ciAWDx

Value

A dataframe with

x Number of successes (positive samples)

LAWD Wald Lower limit

UAWD Wald Upper Limit

LABB Wald Lower Abberation

UABB Wald Upper Abberation

ZWI Zero Width Interval

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Adjusted methods of CI estimation: PlotciAAS, PlotciAAllg, PlotciAAll, PlotciALR,PlotciALT, PlotciASC, PlotciATW, PlotciAWD, ciAAS, ciAAll, ciALR, ciALT, ciASC, ciATW

Examples

n=5; alp=0.05;h=2ciAWD(n,alp,h)

ciAWDx Adjusted Wald method of CI estimation

Description

Adjusted Wald method of CI estimation

Usage

ciAWDx(x, n, alp, h)

Page 33: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciAWDx 33

Arguments

x - Number of successes

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

Details

Given data x and n are modified as x+ h and n+(2 ∗ h) respectively, where h > 0 then Wald-typeinterval is applied for the given x and n.

Value

A dataframe with

x Number of successes (positive samples)

LAWDx Adjusted Wald Lower limit

UAWDx Adjusted Wald Upper Limit

LABB Adjusted Wald Lower Abberation

UABB Adjusted Wald Upper Abberation

ZWI Zero Width Interval

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Adjusted methods of CI estimation given x & n: PlotciAAllx, ciAASx, ciAAllx, ciALRx,ciALTx, ciASCx, ciATWx

Examples

x= 5; n=5; alp=0.05; h=2ciAWDx(x,n,alp,h)

Page 34: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

34 ciBA

ciBA Bayesian method of CI estimation with different or same parametericvalues for Beta prior distribution

Description

Bayesian method of CI estimation with different or same parameteric values for Beta prior distri-bution

Usage

ciBA(n, alp, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Shape parameter 1 for prior Beta distribution in Bayesian model. Can also bea vector of length n+1 priors.

b - Shape parameter 2 for prior Beta distribution in Bayesian model. Can also bea vector of length n+1 priors.

Details

Highest Probability Density (HPD) and two tailed intervals are provided for all xi = 0, 1, 2..n basedon the conjugate prior β(ai, bi)(i = 1, 2..n + 1) for the probability of success p of the binomialdistribution so that the posterior is β(xi+ ai, n− xi+ bi).

Value

A dataframe with

x - Number of successes (positive samples)

pomean - Posterior mean

LBAQ - Lower limits of Quantile based intervals

UBAQ - Upper limits of Quantile based intervals

LBAH - Lower limits of HPD intervals

UBAH - Upper limits of HPD intervals

References

[1] 2002 Gelman A, Carlin JB, Stern HS and Dunson DB Bayesian Data Analysis, Chapman &Hall/CRC [2] 2006 Ghosh M, Delampady M and Samanta T. An introduction to Bayesian analysis:Theory and Methods. Springer, New York

Page 35: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciBAx 35

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Basic methods of CI estimation: PlotciAS, PlotciAllg, PlotciAll, PlotciBA, PlotciEX,PlotciLR, PlotciLT, PlotciSC, PlotciTW, PlotciWD, ciAS, ciAll, ciEX, ciLR, ciLT, ciSC,ciTW, ciWD

Examples

n=5; alp=0.05; a=0.5;b=0.5;ciBA(n,alp,a,b)n=5; alp=0.05; a=c(0.5,2,1,1,2,0.5);b=c(0.5,2,1,1,2,0.5)ciBA(n,alp,a,b)

ciBAx Bayesian method of CI estimation with Beta prior distribution

Description

Bayesian method of CI estimation with Beta prior distribution

Usage

ciBAx(x, n, alp, a, b)

Arguments

x - Number of sucess

n - Number of trials

alp - Alpha value (significance level required)

a - Shape parameter 1 for prior Beta distribution in Bayesian model. Can also bea vector of length n+1 priors.

b - Shape parameter 2 for prior Beta distribution in Bayesian model. Can also bea vector of length n+1 priors.

Details

Highest Probability Density (HPD) and two tailed intervals are provided for the given x and n.based on the conjugate prior β(a, b) for the probability of success p of the binomial distribution sothat the posterior is β(x+ a, n− x+ b).

Page 36: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

36 ciBAx

Value

A dataframe with

x - Number of successes (positive samples)

LBAQx - Lower limits of Quantile based intervals

UBAQx - Upper limits of Quantile based intervals

LBAHx - Lower limits of HPD intervals

UBAHx - Upper limits of HPD intervals

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Base methods of CI estimation given x & n: PlotciAllxg, PlotciAllx, PlotciEXx, ciASx,ciAllx, ciEXx, ciLRx, ciLTx, ciSCx, ciTWx, ciWDx

Examples

x=5; n=5; alp=0.05; a=0.5;b=0.5;ciBAx(x,n,alp,a,b)x= 5; n=5; alp=0.05; a=c(0.5,2,1,1,2,0.5);b=c(0.5,2,1,1,2,0.5)ciBAx(x,n,alp,a,b)

Page 37: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciCAll 37

ciCAll CI estimation of 5 continuity corrected methods (Wald, Wald-T, Score,Logit-Wald, ArcSine)

Description

CI estimation of 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald, ArcSine)

Usage

ciCAll(n, alp, c)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

The Confidence Interval on 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald,ArcSine) for n given alp along with Continuity correction c

Value

A dataframe with

method - Name of the method

x - Number of successes (positive samples)

LLT - Lower limit

ULT - Upper Limit

LABB - Lower Abberation

UABB - Upper Abberation

ZWI - Zero Width Interval

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

Page 38: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

38 ciCAllx

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.Other Continuity correction methods of CI estimation: PlotciCAS, PlotciCAllg, PlotciCAll,PlotciCLT, PlotciCSC, PlotciCTW, PlotciCWD, ciCAS, ciCLT, ciCSC, ciCTW, ciCWD

Examples

n=5; alp=0.05;c=1/(2*n)ciCAll(n,alp,c)

ciCAllx CI estimation of 5 continuity corrected methods (Wald, Wald-T, Score,Logit-Wald, ArcSine)

Description

CI estimation of 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald, ArcSine)

Usage

ciCAllx(x, n, alp, c)

Arguments

x - Number of sucessn - Number of trialsalp - Alpha value (significance level required)c - Continuity correction

Details

The Confidence Interval of 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald, Arc-Sine) for n given alp and x

Value

A dataframe with

method - Name of the methodx - Number of successes (positive samples)LLT - Lower limitULT - Upper LimitLABB - Lower AbberationUABB - Upper AbberationZWI - Zero Width Interval

Page 39: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciCAS 39

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Continuity correction methods of CI estimation given x and n: PlotciCAllxg, PlotciCAllx,ciCLTx, ciCSCx, ciCTWx, ciCWDx

Examples

x=5; n=5; alp=0.05;c=1/(2*n)ciCAllx(x,n,alp,c)

ciCAS Continuity corrected ArcSine method of CI estimation

Description

Continuity corrected ArcSine method of CI estimation

Usage

ciCAS(n, alp, c)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

Wald-type interval for the arcsine transformation using the test statistic (abs(sin(−1)phat−sin(−1)p)− c)/SE where c > 0 is a constant for continuity correction and for all x = 0, 1, 2..n

Page 40: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

40 ciCASx

Value

A dataframe with

x Number of successes (positive samples)

LCA ArcSine Lower limit

UCA ArcSine Upper Limit

LABB ArcSine Lower Abberation

UABB ArcSine Upper Abberation

ZWI Zero Width Interval

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Continuity correction methods of CI estimation: PlotciCAS, PlotciCAllg, PlotciCAll,PlotciCLT, PlotciCSC, PlotciCTW, PlotciCWD, ciCAll, ciCLT, ciCSC, ciCTW, ciCWD

Examples

n=5; alp=0.05;c=1/(2*n)ciCAS(n,alp,c)

ciCASx Continuity corrected ArcSine method of CI estimation

Description

Continuity corrected ArcSine method of CI estimation

Usage

ciCASx(x, n, alp, c)

Page 41: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciCASx 41

Arguments

x - Number of successes

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

Wald-type interval for the arcsine transformation using the test statistic (abs(sin(−1)phat−sin(−1)p)− c)/SE where c > 0 is a constant for continuity correction and for all x = 0, 1, 2..n

Value

A dataframe with

x Number of successes (positive samples)

LCAx ArcSine Lower limit

UCAx ArcSine Upper Limit

LABB ArcSine Lower Abberation

UABB ArcSine Upper Abberation

ZWI Zero Width Interval

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Examples

x=5; n=5; alp=0.05;c=1/2*nciCASx(x,n,alp,c)

Page 42: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

42 ciCLT

ciCLT Continuity corrected Logit Wald method of CI estimation

Description

Continuity corrected Logit Wald method of CI estimation

Usage

ciCLT(n, alp, c)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

Wald-type interval for the logit transformation of the parameter p using the test statistic (abs(L(phat)−L(p)) − c)/SE where c > 0 is a constant for continuity correction and L(y) = log(y/1 − y) forall x = 0, 1, 2..n. Boundary modifications when x = 0 or x = n using Exact method values.

Value

A dataframe with

x Number of successes (positive samples)

LCLT Logit Wald Lower limit

UCLT Logit Wald Upper Limit

LABB Logit Wald Lower Abberation

UABB Logit Wald Upper Abberation

ZWI Zero Width Interval

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

Page 43: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciCLTx 43

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Continuity correction methods of CI estimation: PlotciCAS, PlotciCAllg, PlotciCAll,PlotciCLT, PlotciCSC, PlotciCTW, PlotciCWD, ciCAS, ciCAll, ciCSC, ciCTW, ciCWD

Examples

n=5; alp=0.05;c=1/(2*n)ciCLT(n,alp,c)

ciCLTx Continuity corrected Logit-Wald method of CI estimation

Description

Continuity corrected Logit-Wald method of CI estimation

Usage

ciCLTx(x, n, alp, c)

Arguments

x - Number of successesn - Number of trialsalp - Alpha value (significance level required)c - Continuity correction

Details

Wald-type interval for the logit transformation of the parameter p using the test statistic (abs(L(phat)−L(p)) − c)/SE where c > 0 is a constant for continuity correction and L(y) = log(y/1 − y) forall x = 0, 1, 2..n. Boundary modifications when x = 0 or x = n using Exact method values.

Value

A dataframe with

x Number of successes (positive samples)LCLTx Logit Wald Lower limitUCLTx Logit Wald Upper LimitLABB Logit Wald Lower AbberationUABB Logit Wald Upper AbberationZWI Zero Width Interval

Page 44: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

44 ciCSC

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Continuity correction methods of CI estimation given x and n: PlotciCAllxg, PlotciCAllx,ciCAllx, ciCSCx, ciCTWx, ciCWDx

Examples

x=5; n=5; alp=0.05;c=1/2*nciCLTx(x,n,alp,c)

ciCSC Continuity corrected Score method of CI estimation

Description

Continuity corrected Score method of CI estimation

Usage

ciCSC(n, alp, c)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

A score test approach using the test statistic (abs(phat− p)− c)/SE where c > 0 is a constant forcontinuity correction for all x = 0, 1, 2..n

Page 45: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciCSCx 45

Value

A dataframe with

x Number of successes (positive samples)

LCS Score Lower limit

UCS Score Upper Limit

LABB Score Lower Abberation

UABB Score Upper Abberation

ZWI Zero Width Interval

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Continuity correction methods of CI estimation: PlotciCAS, PlotciCAllg, PlotciCAll,PlotciCLT, PlotciCSC, PlotciCTW, PlotciCWD, ciCAS, ciCAll, ciCLT, ciCTW, ciCWD

Examples

n=5; alp=0.05;c=1/(2*n)ciCSC(n,alp,c)

ciCSCx Continuity corrected Score method of CI estimation

Description

Continuity corrected Score method of CI estimation

Usage

ciCSCx(x, n, alp, c)

Page 46: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

46 ciCSCx

Arguments

x - Number of successes

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

A score test approach using the test statistic (abs(phat− p)− c)/SE where c > 0 is a constant forcontinuity correction for all x = 0, 1, 2..n

Value

A dataframe with

x Number of successes (positive samples)

LCSx Score Lower limit

UCSx Score Upper Limit

LABB Score Lower Abberation

UABB Score Upper Abberation

ZWI Zero Width Interval

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Continuity correction methods of CI estimation given x and n: PlotciCAllxg, PlotciCAllx,ciCAllx, ciCLTx, ciCTWx, ciCWDx

Examples

x=5; n=5; alp=0.05; c=1/(2*n)ciCSCx(x,n,alp,c)

Page 47: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciCTW 47

ciCTW Continuity corrected Wald-T method of CI estimation

Description

Continuity corrected Wald-T method of CI estimation

Usage

ciCTW(n, alp, c)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

Approximate method based on a t_approximation of the standardized point estimator using thetest statistic (abs(phat − p) − c)/SE where c > 0 is a constant for continuity correction for allx = 0, 1, 2..n. Boundary modifications when x = 0 or x = n using Wald adjustment method withh = 2.

Value

A dataframe with

x Number of successes (positive samples)

LCTW T-Wald Lower limit

UCTW T-Wald Upper Limit

LABB T-Wald Lower Abberation

UABB T-Wald Upper Abberation

ZWI Zero Width Interval

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

Page 48: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

48 ciCTWx

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Continuity correction methods of CI estimation: PlotciCAS, PlotciCAllg, PlotciCAll,PlotciCLT, PlotciCSC, PlotciCTW, PlotciCWD, ciCAS, ciCAll, ciCLT, ciCSC, ciCWD

Examples

n=5; alp=0.05;c=1/(2*n)ciCTW(n,alp,c)

ciCTWx Continuity corrected Wald-T method of CI estimation

Description

Continuity corrected Wald-T method of CI estimation

Usage

ciCTWx(x, n, alp, c)

Arguments

x - Number of successesn - Number of trialsalp - Alpha value (significance level required)c - Continuity correction

Details

Approximate method based on a t_approximation of the standardized point estimator using thetest statistic (abs(phat − p) − c)/SE where c > 0 is a constant for continuity correction for allx = 0, 1, 2..n. Boundary modifications when x = 0 or x = n using Wald adjustment method withh = 2.

Value

A dataframe with

x Number of successes (positive samples)LCTWx T-Wald Lower limitUCTWx T-Wald Upper LimitLABB T-Wald Lower AbberationUABB T-Wald Upper AbberationZWI Zero Width Interval

Page 49: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciCWD 49

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Continuity correction methods of CI estimation given x and n: PlotciCAllxg, PlotciCAllx,ciCAllx, ciCLTx, ciCSCx, ciCWDx

Examples

x=5; n=5; alp=0.05;c=1/2*nciCTWx(x,n,alp,c)

ciCWD Continuity corrected Wald method of CI estimation

Description

Continuity corrected Wald method of CI estimation

Usage

ciCWD(n, alp, c)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

Wald-type interval (for all x = 0, 1, 2..n) using the test statistic (abs(phat − p) − c)/SE wherec > 0 is a constant for continuity correction

Page 50: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

50 ciCWDx

Value

A dataframe with

x Number of successes (positive samples)

LCW Wald Lower limit

UCW Wald Upper Limit

LABB Wald Lower Abberation

UABB Wald Upper Abberation

ZWI Zero Width Interval

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Continuity correction methods of CI estimation: PlotciCAS, PlotciCAllg, PlotciCAll,PlotciCLT, PlotciCSC, PlotciCTW, PlotciCWD, ciCAS, ciCAll, ciCLT, ciCSC, ciCTW

Examples

n=5; alp=0.05;c=1/(2*n)ciCWD(n,alp,c)

ciCWDx Continuity corrected Wald method of CI estimation

Description

Continuity corrected Wald method of CI estimation

Usage

ciCWDx(x, n, alp, c)

Page 51: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciCWDx 51

Arguments

x - Number of successes

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

Wald-type interval (for all x = 0, 1, 2..n) using the test statistic (abs(phat − p) − c)/SE wherec > 0 is a constant for continuity correction

Value

A dataframe with

x Number of successes (positive samples)

LCWx CC-Wald Lower limit

UCWx CC-Wald Upper Limit

LABB CC-Wald Lower Abberation

UABB CC-Wald Upper Abberation

ZWI Zero Width Interval

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Continuity correction methods of CI estimation given x and n: PlotciCAllxg, PlotciCAllx,ciCAllx, ciCLTx, ciCSCx, ciCTWx

Examples

x= 5; n=5; alp=0.05; c=1/(2*n)ciCWDx(x,n,alp,c)

Page 52: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

52 ciEX

ciEX Exact method of CI estimation

Description

Exact method of CI estimation

Usage

ciEX(n, alp, e)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

e - Exact method indicator in [0, 1] 1: Clopper Pearson, 0.5: Mid P, The input canalso be a range of values between 0 and 1.

Details

Confidence interval for p (for all x = 0, 1, 2 ..n), based on inverting equal-tailed binomial tests withnull hypothesis

H0 : p = p0

and calculated from the cumulative binomial distribution. Exact two sided P-value is usually calcu-lated as

P = 2[e ∗ Pr(X = x) +min(Pr(X < x), P r(X > x))]

where probabilities are found at null value of p and 0 <= e <= 1. The Confidence Interval of ngiven alp along with lower and upper abberation.

Value

A dataframe with

x - Number of successes (positive samples)

LEX - Exact Lower limit

UEX - Exact Upper Limit

LABB - Likelihood Ratio Lower Abberation

UABB - Likelihood Ratio Upper Abberation

ZWI - Zero Width Interval

e - Exact method input

Page 53: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciEXx 53

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Basic methods of CI estimation: PlotciAS, PlotciAllg, PlotciAll, PlotciBA, PlotciEX,PlotciLR, PlotciLT, PlotciSC, PlotciTW, PlotciWD, ciAS, ciAll, ciBA, ciLR, ciLT, ciSC,ciTW, ciWD

Examples

n=5; alp=0.05;e=0.5ciEX(n,alp,e) #Mid-pn=5; alp=0.05;e=1 #Clopper-PearsonciEX(n,alp,e)n=5; alp=0.05;e=c(0.1,0.5,0.95,1) #Range including Mid-p and Clopper-PearsonciEX(n,alp,e)

ciEXx Exact method of CI estimation

Description

Exact method of CI estimation

Usage

ciEXx(x, n, alp, e)

Page 54: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

54 ciEXx

Arguments

x - Number of sucess

n - Number of trials

alp - Alpha value (significance level required)

e - Exact method indicator in [0, 1] 1: Clopper Pearson, 0.5: Mid P

Details

Confidence interval for p (for the given x and n), based on inverting equal-tailed binomial tests withnull hypothesis H0 : p = p0 and calculated from the cumulative binomial distribution. Exact twosided P-value is usually calculated as

P = 2[e ∗ Pr(X = x) +min(Pr(X < x), P r(X > x))]

where probabilities are found at null value of p and 0 <= e <= 1.

Value

A dataframe with

x - Number of successes (positive samples)

LEXx - Exact Lower limit

UEXx - Exact Upper Limit

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

Page 55: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciLR 55

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Base methods of CI estimation given x & n: PlotciAllxg, PlotciAllx, PlotciEXx, ciASx,ciAllx, ciBAx, ciLRx, ciLTx, ciSCx, ciTWx, ciWDx

Examples

x=5; n=5; alp=0.05;e=0.5ciEXx(x,n,alp,e) #Mid-px=5; n=5; alp=0.05;e=1 #Clopper PearsonciEXx(x,n,alp,e)x=5; n=5; alp=0.05;e=c(0.1,0.5,0.95,1) #Range including Mid-p and Clopper-PearsonciEXx(x,n,alp,e)

ciLR Likelihood Ratio method of CI estimation

Description

Likelihood Ratio method of CI estimation

Usage

ciLR(n, alp)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Details

Likelihood ratio limits for all x = 0, 1, 2 ..n obtained as the solution to the equation in p formedas logarithm of ratio between binomial likelihood at sample proportion and that of over all pos-sible parameters. Calculates the Confidence Interval of n given alp along with lower and upperabberation.

Value

A dataframe with

x - Number of successes (positive samples)

LLR - Likelihood Ratio Lower limit

ULR - Likelihood Ratio Upper Limit

Page 56: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

56 ciLRx

LABB - Likelihood Ratio Lower Abberation

UABB - Likelihood Ratio Upper Abberation

ZWI - Zero Width Interval

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Basic methods of CI estimation: PlotciAS, PlotciAllg, PlotciAll, PlotciBA, PlotciEX,PlotciLR, PlotciLT, PlotciSC, PlotciTW, PlotciWD, ciAS, ciAll, ciBA, ciEX, ciLT, ciSC,ciTW, ciWD

Examples

n=5; alp=0.05ciLR(n,alp)

ciLRx Likelihood Ratio method of CI estimation

Description

Likelihood Ratio method of CI estimation

Usage

ciLRx(x, n, alp)

Page 57: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciLRx 57

Arguments

x - Number of successes

n - Number of trials

alp - Alpha value (significance level required)

Details

Likelihood ratio limits for the given x and n obtained as the solution to the equation in p formedas logarithm of ratio between binomial likelihood at sample proportion and that of over all possibleparameters

Value

A dataframe with

x - Number of successes (positive samples)

LLRx - Likelihood Ratio Lower limit

ULRx - Likelihood Ratio Upper Limit

LABB - Likelihood Ratio Lower Abberation

UABB - Likelihood Ratio Upper Abberation

ZWI - Zero Width Interval

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Page 58: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

58 ciLT

Other Base methods of CI estimation given x & n: PlotciAllxg, PlotciAllx, PlotciEXx, ciASx,ciAllx, ciBAx, ciEXx, ciLTx, ciSCx, ciTWx, ciWDx

Examples

x=5; n=5; alp=0.05ciLRx(x,n,alp)

ciLT Logit Wald method of CI estimation

Description

Logit Wald method of CI estimation

Usage

ciLT(n, alp)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Details

The Confidence Interval of n given alp along with lower and upper abberation.

Value

A dataframe with

x - Number of successes (positive samples)

LLT - Logit Wald Lower limit

ULT - Logit Wald Upper Limit

LABB - Logit Wald Lower Abberation

UABB - Logit Wald Upper Abberation

ZWI - Zero Width Interval

Page 59: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciLTx 59

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Basic methods of CI estimation: PlotciAS, PlotciAllg, PlotciAll, PlotciBA, PlotciEX,PlotciLR, PlotciLT, PlotciSC, PlotciTW, PlotciWD, ciAS, ciAll, ciBA, ciEX, ciLR, ciSC,ciTW, ciWD

Examples

n=5; alp=0.05ciLT(n,alp)

ciLTx Logit Wald method of CI estimation

Description

Logit Wald method of CI estimation

Usage

ciLTx(x, n, alp)

Page 60: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

60 ciLTx

Arguments

x - Number of successesn - Number of trialsalp - Alpha value (significance level required)

Details

Wald-type interval for all the given x and n based on the logit transformation of p; that is normalapproximation for log(p/1− p)

Value

A dataframe with

x - Number of successes (positive samples)LLTx - Logit Wald Lower limitULTx - Logit Wald Upper LimitLABB - Logit Wald Lower AbberationUABB - Logit Wald Upper AbberationZWI - Zero Width Interval

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Base methods of CI estimation given x & n: PlotciAllxg, PlotciAllx, PlotciEXx, ciASx,ciAllx, ciBAx, ciEXx, ciLRx, ciSCx, ciTWx, ciWDx

Page 61: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciSC 61

Examples

x=5; n=5; alp=0.05ciLTx(x,n,alp)

ciSC Score method of CI estimation

Description

Score method of CI estimation

Usage

ciSC(n, alp)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Details

A score test approach based on inverting the test with standard error evaluated at the null hypothesisis due to Wilson for all x = 0, 1, 2 ..n.

Value

A dataframe with

x - Number of successes (positive samples)

LSC - Score Lower limit

USC - Score Upper Limit

LABB - Score Lower Abberation

UABB - Score Upper Abberation

ZWI - Zero Width Interval

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

Page 62: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

62 ciSCx

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Basic methods of CI estimation: PlotciAS, PlotciAllg, PlotciAll, PlotciBA, PlotciEX,PlotciLR, PlotciLT, PlotciSC, PlotciTW, PlotciWD, ciAS, ciAll, ciBA, ciEX, ciLR, ciLT,ciTW, ciWD

Examples

n=5; alp=0.05ciSC(n,alp)

ciSCx Base Score method of CI estimation

Description

Base Score method of CI estimation

Usage

ciSCx(x, n, alp)

Arguments

x - Number of successes

n - Number of trials

alp - Alpha value (significance level required)

Details

A score test approach based on inverting the test with standard error evaluated at the null hypothesisis due to Wilson for the given x and n

Page 63: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciSCx 63

Value

A dataframe with

x Number of successes (positive samples)

LSCx Score Lower limit

USCx Score Upper Limit

LABB Score Lower Abberation

UABB Score Upper Abberation

ZWI Zero Width Interval

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Base methods of CI estimation given x & n: PlotciAllxg, PlotciAllx, PlotciEXx, ciASx,ciAllx, ciBAx, ciEXx, ciLRx, ciLTx, ciTWx, ciWDx

Examples

x=5; n=5; alp=0.05ciSCx(x,n,alp)

Page 64: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

64 ciTW

ciTW Wald-T method of CI estimation

Description

Wald-T method of CI estimation

Usage

ciTW(n, alp)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Details

An approximate method based on a t_approximation of the standardized point estimator for all x= 0, 1, 2 ..n; that is the point estimator divided by its estimated standard error. Essential boundarymodification is when x = 0 or n,

p̂ =(x+ 2)

(n+ 4)

Value

A dataframe with

x - Number of successes (positive samples)

LTW - Wald-T Lower limit

UTW - Wald-T Upper Limit

LABB - Wald-T Lower Abberation

UABB - Wald-T Upper Abberation

ZWI - Zero Width Interval

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

Page 65: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciTWx 65

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Basic methods of CI estimation: PlotciAS, PlotciAllg, PlotciAll, PlotciBA, PlotciEX,PlotciLR, PlotciLT, PlotciSC, PlotciTW, PlotciWD, ciAS, ciAll, ciBA, ciEX, ciLR, ciLT,ciSC, ciWD

Examples

n=5; alp=0.05ciTW(n,alp)

ciTWx Wald-T method of CI estimation

Description

Wald-T method of CI estimation

Usage

ciTWx(x, n, alp)

Arguments

x - Number of successes

n - Number of trials

alp - Alpha value (significance level required)

Details

An approximate method based on a t_approximation of the standardized point estimator for thegiven x and n; that is the point estimator divided by its estimated standard error. Essential boundarymodification is when x = 0orn,

p̂ =(x+ 2)

(n+ 4)phat = (x+ 2)/(n+ 4)

Page 66: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

66 ciTWx

Value

A dataframe with

x Number of successes (positive samples)

LTWx Wald-T Lower limit

UTWx Wald-T Upper Limit

LABB Wald-T Lower Abberation

UABB Wald-T Upper Abberation

ZWI Zero Width Interval

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Base methods of CI estimation given x & n: PlotciAllxg, PlotciAllx, PlotciEXx, ciASx,ciAllx, ciBAx, ciEXx, ciLRx, ciLTx, ciSCx, ciWDx

Examples

x=5; n=5; alp=0.05ciTWx(x,n,alp)

Page 67: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciWD 67

ciWD Wald method of CI estimation

Description

Wald method of CI estimation

Usage

ciWD(n, alp)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Details

Wald-type interval that results from inverting large-sample test and evaluates standard errors atmaximum likelihood estimates for all x = 0, 1, 2 ..n. Calculates the Confidence Interval of n givenalp along with lower and upper abberation.

Value

A dataframe with

x Number of successes (positive samples)

LWD Wald Lower limit

UWD Wald Upper Limit

LABB Wald Lower Abberation

UABB Wald Upper Abberation

ZWI Zero Width Interval

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

Page 68: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

68 ciWDx

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Basic methods of CI estimation: PlotciAS, PlotciAllg, PlotciAll, PlotciBA, PlotciEX,PlotciLR, PlotciLT, PlotciSC, PlotciTW, PlotciWD, ciAS, ciAll, ciBA, ciEX, ciLR, ciLT,ciSC, ciTW

Examples

n=5; alp=0.05ciWD(n,alp)

ciWDx Wald method of CI estimation

Description

Wald method of CI estimation

Usage

ciWDx(x, n, alp)

Arguments

x - Number of successes

n - Number of trials

alp - Alpha value (significance level required)

Details

Wald-type interval that results from inverting large-sample test and evaluates standard errors atmaximum likelihood estimates for the given x and n

Page 69: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

ciWDx 69

Value

A dataframe with

x Number of successes (positive samples)

LWDx Wald Lower limit

UWDx Wald Upper Limit

LABB Wald Lower Abberation

UABB Wald Upper Abberation

ZWI Zero Width Interval

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

prop.test and binom.test for equivalent base Stats R functionality, binom.confint providessimilar functionality for 11 methods, wald2ci which provides multiple functions for CI calculation, binom.blaker.limits which calculates Blaker CI which is not covered here and propCI whichprovides similar functionality.

Other Base methods of CI estimation given x & n: PlotciAllxg, PlotciAllx, PlotciEXx, ciASx,ciAllx, ciBAx, ciEXx, ciLRx, ciLTx, ciSCx, ciTWx

Examples

x=5; n=5; alp=0.05;ciWDx(x,n,alp)

Page 70: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

70 covpAAll

covpAAll Coverage Probability for 6 adjusted methods (Wald, Wald-T, Likeli-hood, Score, Logit-Wald, ArcSine)

Description

Coverage Probability for 6 adjusted methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, Arc-Sine)

Usage

covpAAll(n, alp, h, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

Calculates the Coverage Probability for 6 adjusted methods (Wald, Wald-T, Likelihood, Score,Logit-Wald, ArcSine)

Value

A dataframe with

method Method name

MeanCP Coverage Probability

MinCP Minimum coverage probability

RMSE_N Root Mean Square Error from nominal size

RMSE_M Root Mean Square Error for Coverage Probability

RMSE_MI Root Mean Square Error for minimum coverage probability

tol Required tolerance for coverage probability

Page 71: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

covpAAS 71

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

Other Coverage probability of adjusted methods: PlotcovpAAS, PlotcovpAAll, PlotcovpALR,PlotcovpALT, PlotcovpASC, PlotcovpATW, PlotcovpAWD, covpAAS, covpALR, covpALT, covpASC,covpATW, covpAWD

Examples

## Not run:n= 10; alp=0.05; h=2;a=1;b=1; t1=0.93;t2=0.97covpAAll(n,alp,h,a,b,t1,t2)

## End(Not run)

covpAAS Coverage Probability of Adjusted ArcSine method for given n

Description

Coverage Probability of Adjusted ArcSine method for given n

Usage

covpAAS(n, alp, h, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Page 72: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

72 covpAll

Details

Evaluation of adjusted Wald-type interval for the arcsine transformation of the parameter p usingcoverage probability, root mean square statistic, and the proportion of proportion lies within thedesired level of coverage

Value

A dataframe with

mcpAA Adjusted ArcSine Coverage Probability

micpAA Adjusted ArcSine minimum coverage probability

RMSE_N Root Mean Square Error from nominal size

RMSE_M Root Mean Square Error for Coverage Probability

RMSE_MI Root Mean Square Error for minimum coverage probability

tol Required tolerance for coverage probability

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

Other Coverage probability of adjusted methods: PlotcovpAAS, PlotcovpAAll, PlotcovpALR,PlotcovpALT, PlotcovpASC, PlotcovpATW, PlotcovpAWD, covpAAll, covpALR, covpALT, covpASC,covpATW, covpAWD

Examples

n= 10; alp=0.05; h=2; a=1;b=1; t1=0.93;t2=0.97covpAAS(n,alp,h,a,b,t1,t2)

covpAll Coverage Probability using 6 base methods (Wald, Wald-T, Likeli-hood, Score, Logit-Wald, ArcSine)

Description

Coverage Probability using 6 base methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, Arc-Sine)

Page 73: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

covpAll 73

Usage

covpAll(n, alp, a, b, t1, t2)

Arguments

n - Number of trialsalp - Alpha value (significance level required)a - Beta parameters for hypo "p"b - Beta parameters for hypo "p"t1 - Lower tolerance limit to check the spread of coverage Probabilityt2 - Upper tolerance limit to check the spread of coverage Probability

Details

The Coverage Probability of 6 base methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, Arc-Sine)

Value

A dataframe with

method method nameMeanCP Coverage ProbabilityMinCP Minimum coverage probabilityRMSE_N Root Mean Square Error from nominal sizeRMSE_M Root Mean Square Error for Coverage ProbabilityRMSE_MI Root Mean Square Error for minimum coverage probabilitytol Required tolerance for coverage probability

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

Page 74: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

74 covpALR

See Also

Other Basic coverage probability methods: PlotcovpAS, PlotcovpAll, PlotcovpBA, PlotcovpEX,PlotcovpLR, PlotcovpLT, PlotcovpSC, PlotcovpTW, PlotcovpWD, covpAS, covpBA, covpEX, covpLR,covpLT, covpSC, covpTW, covpWD

Examples

## Not run:n= 10; alp=0.05; a=1;b=1; t1=0.93;t2=0.97covpAll(n,alp,a,b,t1,t2)

## End(Not run)

covpALR Coverage Probability of Adjusted Likelihood method for given n

Description

Coverage Probability of Adjusted Likelihood method for given n

Usage

covpALR(n, alp, h, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

Evaluation of adjusted Likelihood ratio limits using coverage probability, root mean square statistic,and the proportion of proportion lies within the desired level of coverage

Page 75: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

covpALT 75

Value

A dataframe with

mcpAL Adjusted Likelihood Coverage Probability

micpAL Adjusted Likelihood minimum coverage probability

RMSE_N Root Mean Square Error from nominal size

RMSE_M Root Mean Square Error for Coverage Probability

RMSE_MI Root Mean Square Error for minimum coverage probability

tol Required tolerance for coverage probability

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

Other Coverage probability of adjusted methods: PlotcovpAAS, PlotcovpAAll, PlotcovpALR,PlotcovpALT, PlotcovpASC, PlotcovpATW, PlotcovpAWD, covpAAS, covpAAll, covpALT, covpASC,covpATW, covpAWD

Examples

n= 10; alp=0.05; h=2;a=1;b=1; t1=0.93;t2=0.97covpALR(n,alp,h,a,b,t1,t2)

covpALT Coverage Probability of Adjusted Logit Wald method for given n

Description

Coverage Probability of Adjusted Logit Wald method for given n

Usage

covpALT(n, alp, h, a, b, t1, t2)

Page 76: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

76 covpALT

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

Evaluation of adjusted Wald-type interval based on the logit transformation of p using coverageprobability, root mean square statistic, and the proportion of proportion lies within the desired levelof coverage.

Value

A dataframe with

mcpALT Adjusted Logit Wald Coverage Probability

micpALT Adjusted Logit Wald minimum coverage probability

RMSE_N Root Mean Square Error from nominal size

RMSE_M Root Mean Square Error for Coverage Probability

RMSE_MI Root Mean Square Error for minimum coverage probability

tol Required tolerance for coverage probability

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

Other Coverage probability of adjusted methods: PlotcovpAAS, PlotcovpAAll, PlotcovpALR,PlotcovpALT, PlotcovpASC, PlotcovpATW, PlotcovpAWD, covpAAS, covpAAll, covpALR, covpASC,covpATW, covpAWD

Examples

n= 10; alp=0.05;h=2; a=1;b=1; t1=0.93;t2=0.97covpALT(n,alp,h,a,b,t1,t2)

Page 77: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

covpAS 77

covpAS Coverage Probability of ArcSine method

Description

Coverage Probability of ArcSine method

Usage

covpAS(n, alp, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

Evaluation of Wald-type interval for the arcsine transformation of the parameter p using coverageprobability, root mean square statistic, and the proportion of proportion lies within the desired levelof coverage

Value

A dataframe with

mcpA ArcSine Coverage Probability

micpA ArcSine minimum coverage probability

RMSE_N Root Mean Square Error from nominal size

RMSE_M Root Mean Square Error for Coverage Probability

RMSE_MI Root Mean Square Error for minimum coverage probability

tol Required tolerance for coverage probability

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

Page 78: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

78 covpASC

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Basic coverage probability methods: PlotcovpAS, PlotcovpAll, PlotcovpBA, PlotcovpEX,PlotcovpLR, PlotcovpLT, PlotcovpSC, PlotcovpTW, PlotcovpWD, covpAll, covpBA, covpEX,covpLR, covpLT, covpSC, covpTW, covpWD

Examples

n= 10; alp=0.05; a=1;b=1; t1=0.93;t2=0.97covpAS(n,alp,a,b,t1,t2)

covpASC Coverage Probability of Adjusted Score method for given n

Description

Coverage Probability of Adjusted Score method for given n

Usage

covpASC(n, alp, h, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Page 79: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

covpATW 79

Details

Evaluation of adjusted score test approach using coverage probability, root mean square statistic,and the proportion of proportion lies within the desired level of coverage

Value

A dataframe with

mcpAS Adjusted Score Coverage Probability

micpAS Adjusted Score minimum coverage probability

RMSE_N Root Mean Square Error from nominal size

RMSE_M Root Mean Square Error for Coverage Probability

RMSE_MI Root Mean Square Error for minimum coverage probability

tol Required tolerance for coverage probability

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

Other Coverage probability of adjusted methods: PlotcovpAAS, PlotcovpAAll, PlotcovpALR,PlotcovpALT, PlotcovpASC, PlotcovpATW, PlotcovpAWD, covpAAS, covpAAll, covpALR, covpALT,covpATW, covpAWD

Examples

n= 10; alp=0.05; h=2; a=1;b=1; t1=0.93;t2=0.97covpASC(n,alp,h,a,b,t1,t2)

covpATW Coverage Probability of Adjusted Wald-T method for given n

Description

Coverage Probability of Adjusted Wald-T method for given n

Usage

covpATW(n, alp, h, a, b, t1, t2)

Page 80: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

80 covpATW

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

Evaluation of approximate and adjusted method based on a t_approximation of the standardizedpoint estimator using coverage probability, root mean square statistic, and the proportion of propor-tion lies within the desired level of coverage

Value

A dataframe with

mcpATW Adjusted Wald-T Coverage Probability

micpATW Adjusted Wald-T minimum coverage probability

RMSE_N Root Mean Square Error from nominal size

RMSE_M Root Mean Square Error for Coverage Probability

RMSE_MI Root Mean Square Error for minimum coverage probability

tol Required tolerance for coverage probability

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

Other Coverage probability of adjusted methods: PlotcovpAAS, PlotcovpAAll, PlotcovpALR,PlotcovpALT, PlotcovpASC, PlotcovpATW, PlotcovpAWD, covpAAS, covpAAll, covpALR, covpALT,covpASC, covpAWD

Examples

n= 10; alp=0.05; h=2;a=1;b=1; t1=0.93;t2=0.97covpATW(n,alp,h,a,b,t1,t2)

Page 81: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

covpAWD 81

covpAWD Coverage Probability of Adjusted Wald method for given n

Description

Coverage Probability of Adjusted Wald method for given n

Usage

covpAWD(n, alp, h, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

Evaluation of adjusted Wald-type interval using coverage probability, root mean square statistic,and the proportion of proportion lies within the desired level of coverage

Value

A dataframe with

mcpAW Adjusted Wald Coverage Probability

micpAW Adjusted Wald minimum coverage probability

RMSE_N Root Mean Square Error from nominal size

RMSE_M Root Mean Square Error for Coverage Probability

RMSE_MI Root Mean Square Error for minimum coverage probability

tol Required tolerance for coverage probability

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

Page 82: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

82 covpBA

See Also

Other Coverage probability of adjusted methods: PlotcovpAAS, PlotcovpAAll, PlotcovpALR,PlotcovpALT, PlotcovpASC, PlotcovpATW, PlotcovpAWD, covpAAS, covpAAll, covpALR, covpALT,covpASC, covpATW

Examples

n= 10; alp=0.05; h=2;a=1;b=1; t1=0.93;t2=0.97covpAWD(n,alp,h,a,b,t1,t2)

covpBA Coverage Probability of Bayesian method

Description

Coverage Probability of Bayesian method

Usage

covpBA(n, alp, a, b, t1, t2, a1, a2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

a1 - Beta Prior Parameters for Bayesian estimation

a2 - Beta Prior Parameters for Bayesian estimation

Details

Evaluation of Bayesian Highest Probability Density (HPD) and two tailed intervals using coverageprobability, root mean square statistic, and the proportion of proportion lies within the desired levelof coverage for the Beta - Binomial conjugate prior model for the probability of success p.

Page 83: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

covpBA 83

Value

A dataframe with

method Both Quantile and HPD method results are returned

MeanCP Coverage Probability

MinCP Minimum coverage probability

RMSE_N Root Mean Square Error from nominal size

RMSE_M Root Mean Square Error for Coverage Probability

RMSE_MI Root Mean Square Error for minimum coverage probability

tol Required tolerance for coverage probability

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Basic coverage probability methods: PlotcovpAS, PlotcovpAll, PlotcovpBA, PlotcovpEX,PlotcovpLR, PlotcovpLT, PlotcovpSC, PlotcovpTW, PlotcovpWD, covpAS, covpAll, covpEX,covpLR, covpLT, covpSC, covpTW, covpWD

Examples

## Not run:n= 10; alp=0.05; a=1;b=1; t1=0.93;t2=0.97;a1=1;a2=1covpBA(n,alp,a,b,t1,t2,a1,a2)

## End(Not run)

Page 84: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

84 covpCAll

covpCAll Coverage Probability for 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald, ArcSine)

Description

Coverage Probability for 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald, Arc-Sine)

Usage

covpCAll(n, alp, c, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continiuty correction

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

The Coverage Probability of 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald,ArcSine) for n given alp, h, a, b, t1 and t2 using all the methods

Value

A dataframe with

method Method name

MeanCP Coverage Probability

MinCP Minimum coverage probability

RMSE_N Root Mean Square Error from nominal size

RMSE_M Root Mean Square Error for Coverage Probability

RMSE_MI Root Mean Square Error for minimum coverage probability

tol Required tolerance for coverage probability

Page 85: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

covpCAS 85

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

Other Coverage probability for continuity corrected methods: PlotcovpCAS, PlotcovpCAll, PlotcovpCLT,PlotcovpCSC, PlotcovpCTW, PlotcovpCWD, covpCAS, covpCLT, covpCSC, covpCTW, covpCWD

Examples

## Not run:n= 10; alp=0.05; c=1/(2*n);a=1;b=1; t1=0.93;t2=0.97covpCAll(n,alp,c,a,b,t1,t2)

## End(Not run)

covpCAS Coverage Probability of Continuity corrected ArcSine method

Description

Coverage Probability of Continuity corrected ArcSine method

Usage

covpCAS(n, alp, c, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continiuty correction

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Page 86: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

86 covpCLT

Details

Evaluation of continuity corrected Wald-type interval for the arcsine transformation of the param-eter p using coverage probability, root mean square statistic, and the proportion of proportion lieswithin the desired level of coverage

Value

A dataframe with

mcpCA Continuity corrected ArcSine Coverage Probability

micpCA Continuity corrected ArcSine minimum coverage probability

RMSE_N Root Mean Square Error from nominal size

RMSE_M Root Mean Square Error for Coverage Probability

RMSE_MI Root Mean Square Error for minimum coverage probability

tol Required tolerance for coverage probability

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

Other Coverage probability for continuity corrected methods: PlotcovpCAS, PlotcovpCAll, PlotcovpCLT,PlotcovpCSC, PlotcovpCTW, PlotcovpCWD, covpCAll, covpCLT, covpCSC, covpCTW, covpCWD

Examples

n= 10; alp=0.05; c=1/(2*n); a=1;b=1; t1=0.93;t2=0.97covpCAS(n,alp,c,a,b,t1,t2)

covpCLT Coverage Probability of Continuity corrected Logit Wald method

Description

Coverage Probability of Continuity corrected Logit Wald method

Usage

covpCLT(n, alp, c, a, b, t1, t2)

Page 87: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

covpCLT 87

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continiuty correction

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

Evaluation of continuity corrected Wald-type interval based on the logit transformation of p usingcoverage probability, root mean square statistic, and the proportion of proportion lies within thedesired level of coverage

Value

A dataframe with

mcpALT Continuity corrected Logit Wald Coverage Probability

micpALT Continuity corrected Logit Wald minimum coverage probability

RMSE_N Root Mean Square Error from nominal size

RMSE_M Root Mean Square Error for Coverage Probability

RMSE_MI Root Mean Square Error for minimum coverage probability

tol Required tolerance for coverage probability

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

Other Coverage probability for continuity corrected methods: PlotcovpCAS, PlotcovpCAll, PlotcovpCLT,PlotcovpCSC, PlotcovpCTW, PlotcovpCWD, covpCAS, covpCAll, covpCSC, covpCTW, covpCWD

Examples

n= 10; alp=0.05;c=1/(2*n); a=1;b=1; t1=0.93;t2=0.97covpCLT(n,alp,c,a,b,t1,t2)

Page 88: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

88 covpCSC

covpCSC Coverage Probability of Continuity corrected Score method

Description

Coverage Probability of Continuity corrected Score method

Usage

covpCSC(n, alp, c, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continiuty correction

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

Evaluation of continuity corrected score test approach using coverage probability, root mean squarestatistic, and the proportion of proportion lies within the desired level of coverage

Value

A dataframe with

mcpAS Continuity corrected Score Coverage Probability

micpAS Continuity corrected Score minimum coverage probability

RMSE_N Root Mean Square Error from nominal size

RMSE_M Root Mean Square Error for Coverage Probability

RMSE_MI Root Mean Square Error for minimum coverage probability

tol Required tolerance for coverage probability

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

Page 89: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

covpCTW 89

See Also

Other Coverage probability for continuity corrected methods: PlotcovpCAS, PlotcovpCAll, PlotcovpCLT,PlotcovpCSC, PlotcovpCTW, PlotcovpCWD, covpCAS, covpCAll, covpCLT, covpCTW, covpCWD

Examples

n= 10; alp=0.05; c=1/(2*n); a=1;b=1; t1=0.93;t2=0.97covpCSC(n,alp,c,a,b,t1,t2)

covpCTW Coverage Probability of Continuity corrected Wald-T method

Description

Coverage Probability of Continuity corrected Wald-T method

Usage

covpCTW(n, alp, c, a, b, t1, t2)

Arguments

n - Number of trialsalp - Alpha value (significance level required)c - Continiuty correctiona - Beta parameters for hypo "p"b - Beta parameters for hypo "p"t1 - Lower tolerance limit to check the spread of coverage Probabilityt2 - Upper tolerance limit to check the spread of coverage Probability

Details

Evaluation of approximate and continuity corrected method based on a t_approximation of the stan-dardized point estimator using coverage probability, root mean square statistic, and the proportionof proportion lies within the desired level of coverage

Value

A dataframe with

mcpATW Continuity corrected Wald-T Coverage ProbabilitymicpATW Continuity corrected Wald-T minimum coverage probabilityRMSE_N Root Mean Square Error from nominal sizeRMSE_M Root Mean Square Error for Coverage ProbabilityRMSE_MI Root Mean Square Error for minimum coverage probabilitytol Required tolerance for coverage probability

Page 90: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

90 covpCWD

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

Other Coverage probability for continuity corrected methods: PlotcovpCAS, PlotcovpCAll, PlotcovpCLT,PlotcovpCSC, PlotcovpCTW, PlotcovpCWD, covpCAS, covpCAll, covpCLT, covpCSC, covpCWD

Examples

n= 10; alp=0.05; c=1/(2*n);a=1;b=1; t1=0.93;t2=0.97covpCTW(n,alp,c,a,b,t1,t2)

covpCWD Coverage Probability of Continuity corrected Wald method

Description

Coverage Probability of Continuity corrected Wald method

Usage

covpCWD(n, alp, c, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continiuty correction

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

Evaluation of Wald-type interval with continuity correction using coverage probability, root meansquare statistic, and the proportion of proportion lies within the desired level of coverage

Page 91: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

covpEX 91

Value

A dataframe with

mcpCW Continuity corrected Wald Coverage Probability

micpCW Continuity corrected Wald minimum coverage probability

RMSE_N Root Mean Square Error from nominal size

RMSE_M Root Mean Square Error for Coverage Probability

RMSE_MI Root Mean Square Error for minimum coverage probability

tol Required tolerance for coverage probability

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

Other Coverage probability for continuity corrected methods: PlotcovpCAS, PlotcovpCAll, PlotcovpCLT,PlotcovpCSC, PlotcovpCTW, PlotcovpCWD, covpCAS, covpCAll, covpCLT, covpCSC, covpCTW

Examples

n= 10; alp=0.05; c=1/(2*n);a=1;b=1; t1=0.93;t2=0.97covpCWD(n,alp,c,a,b,t1,t2)

covpEX Coverage Probability of Exact method

Description

Coverage Probability of Exact method

Usage

covpEX(n, alp, e, a, b, t1, t2)

Page 92: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

92 covpEX

Arguments

n - Number of trials

alp - Alpha value (significance level required)

e - Exact method indicator (1:Clop-Pear,0.5:MID-p). The input can also be arange of values between 0 and 1.

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

Evaluation of Confidence interval for p based on inverting equal-tailed binomial tests with nullhypothesis H0 : p = p0 using coverage probability, root mean square statistic, and the proportionof proportion lies within the desired level of coverage.

Value

A dataframe with

mcpEX Exact Coverage Probability

micpEX Exact minimum coverage probability

RMSE_N Root Mean Square Error from nominal size

RMSE_M Root Mean Square Error for Coverage Probability

RMSE_MI Root Mean Square Error for minimum coverage probability

tol Required tolerance for coverage probability

e - Exact method input

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

Page 93: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

covpGEN 93

See Also

Other Basic coverage probability methods: PlotcovpAS, PlotcovpAll, PlotcovpBA, PlotcovpEX,PlotcovpLR, PlotcovpLT, PlotcovpSC, PlotcovpTW, PlotcovpWD, covpAS, covpAll, covpBA,covpLR, covpLT, covpSC, covpTW, covpWD

Examples

## Not run:n= 10; alp=0.05; e=0.5; a=1;b=1; t1=0.93;t2=0.97 # Mid-pcovpEX(n,alp,e,a,b,t1,t2)n= 10; alp=0.05; e=1; a=1;b=1; t1=0.93;t2=0.97 #Clop-PearcovpEX(n,alp,e,a,b,t1,t2)n=5; alp=0.05;e=c(0.1,0.5,0.95,1) #Range including Mid-p and Clopper-Pearsona=1;b=1; t1=0.93;t2=0.97covpEX(n,alp,e,a,b,t1,t2)

## End(Not run)

covpGEN General Coverage Probability given hypothetical "p" Coverage prob-ability for CI obtained from any method and discrete hypothetical p

Description

General Coverage Probability given hypothetical "p" Coverage probability for CI obtained from anymethod and discrete hypothetical p

Usage

covpGEN(n, LL, UL, alp, hp, t1, t2)

Arguments

n - Number of trials

LL - Lower limit

UL - Upper limit

alp - Alpha value (significance level required)

hp - Hypothetical "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

Evaluation of intervals obtained from any method using coverage probability, root mean squarestatistic, and the proportion of proportion lies within the desired level of coverage for the n + 1intervals and pre-defined space for the parameter p

Page 94: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

94 covpLR

Value

A dataframe with

mcp Mean Coverage Probability

micp Minimum coverage probability

RMSE_N Root Mean Square Error from nominal size

RMSE_M Root Mean Square Error for Mean Coverage Probability

RMSE_MI Root Mean Square Error for minimum coverage probability

tol Required tolerance for coverage probability

See Also

Other General methods for coverage probability: PlotcovpGEN

Examples

## Not run:LL=c(0,0.01,0.0734,0.18237,0.3344,0.5492) #Lower and Upper LimitsUL=c(0.4507,0.6655,0.8176,0.9265,0.9899,1)hp=seq(0,1,by=0.0001)n= 5; alp=0.05; t1=0.93; t2=0.97covpGEN(n,LL,UL,alp,hp,t1,t2)

## End(Not run)

covpLR Coverage Probability of likelihood method

Description

Coverage Probability of likelihood method

Usage

covpLR(n, alp, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Page 95: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

covpLR 95

Details

Evaluation of Likelihood ratio limits using coverage probability, root mean square statistic, and theproportion of proportion lies within the desired level of coverage

Value

A dataframe with

mcpL likelihood Coverage Probability

micpL likelihood minimum coverage probability

RMSE_N Root Mean Square Error from nominal size

RMSE_M Root Mean Square Error for Coverage Probability

RMSE_MI Root Mean Square Error for minimum coverage probability

tol Required tolerance for coverage probability

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Basic coverage probability methods: PlotcovpAS, PlotcovpAll, PlotcovpBA, PlotcovpEX,PlotcovpLR, PlotcovpLT, PlotcovpSC, PlotcovpTW, PlotcovpWD, covpAS, covpAll, covpBA,covpEX, covpLT, covpSC, covpTW, covpWD

Examples

n= 10; alp=0.05; a=1;b=1; t1=0.93;t2=0.97covpLR(n,alp,a,b,t1,t2)

Page 96: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

96 covpLT

covpLT Coverage Probability of Logit Wald method

Description

Coverage Probability of Logit Wald method

Usage

covpLT(n, alp, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

Evaluation of Wald-type interval based on the logit transformation of p using coverage probability,root mean square statistic, and the proportion of proportion lies within the desired level of coverage

Value

A dataframe with

mcpLT Logit Wald Coverage Probability

micpLT Logit Wald minimum coverage probability

RMSE_N Root Mean Square Error from nominal size

RMSE_M Root Mean Square Error for Coverage Probability

RMSE_MI Root Mean Square Error for minimum coverage probability

tol Required tolerance for coverage probability

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

Page 97: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

covpSC 97

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Basic coverage probability methods: PlotcovpAS, PlotcovpAll, PlotcovpBA, PlotcovpEX,PlotcovpLR, PlotcovpLT, PlotcovpSC, PlotcovpTW, PlotcovpWD, covpAS, covpAll, covpBA,covpEX, covpLR, covpSC, covpTW, covpWD

Examples

n= 10; alp=0.05; a=1;b=1; t1=0.93;t2=0.97covpLT(n,alp,a,b,t1,t2)

covpSC Coverage Probability of Score method

Description

Coverage Probability of Score method

Usage

covpSC(n, alp, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

Evaluation of score test approach using coverage probability, root mean square statistic, and theproportion of proportion lies within the desired level of coverage

Page 98: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

98 covpSC

Value

A dataframe with

mcpS Score Coverage Probability

micpS Score minimum coverage probability

RMSE_N Root Mean Square Error from nominal size

RMSE_M Root Mean Square Error for Coverage Probability

RMSE_MI Root Mean Square Error for minimum coverage probability

tol Required tolerance for coverage probability

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Basic coverage probability methods: PlotcovpAS, PlotcovpAll, PlotcovpBA, PlotcovpEX,PlotcovpLR, PlotcovpLT, PlotcovpSC, PlotcovpTW, PlotcovpWD, covpAS, covpAll, covpBA,covpEX, covpLR, covpLT, covpTW, covpWD

Examples

n= 10; alp=0.05; a=1;b=1; t1=0.93;t2=0.97covpSC(n,alp,a,b,t1,t2)

Page 99: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

covpSIM 99

covpSIM Coverage Probability using simulation Coverage probability for CIobtained from any method over the space [0, 1]

Description

Coverage Probability using simulation Coverage probability for CI obtained from any method overthe space [0, 1]

Usage

covpSIM(n, LL, UL, alp, s, a, b, t1, t2)

Arguments

n - Number of trials

LL - Lower limit

UL - Upper limit

alp - Alpha value (significance level required)

s - Number of hypothetical "p"

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

Evaluation of intervals obtained from any method using coverage probability, root mean squarestatistic, and the proportion of proportion lies within the desired level of coverage for the n + 1intervals and pre-defined space for the parameter p using Monte Carle simulation

Value

A dataframe with

mcp Mean Coverage Probability

micp Minimum coverage probability

RMSE_N Root Mean Square Error from nominal size

RMSE_M Root Mean Square Error for Mean Coverage Probability

RMSE_MI Root Mean Square Error for minimum coverage probability

tol Required tolerance for coverage probability

Page 100: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

100 covpTW

See Also

Other Simulated methods for coverage probability: PlotcovpSIM

Examples

LL=c(0,0.01,0.0734,0.18237,0.3344,0.5492) #Lower and Upper LimitsUL=c(0.4507,0.6655,0.8176,0.9265,0.9899,1)n= 5; alp=0.05; s=5000; a=1; b=1; t1=0.93; t2=0.97covpSIM(n,LL,UL,alp,s,a,b,t1,t2)

covpTW Coverage Probability of Wald-T method

Description

Coverage Probability of Wald-T method

Usage

covpTW(n, alp, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

Evaluation of approximate method based on a t_approximation of the standardized point estimatorusing coverage probability, root mean square statistic, and the proportion of proportion lies withinthe desired level of coverage

Value

A dataframe with

mcpTW Wald-T Coverage Probability

micpTW Wald-T minimum coverage probability

RMSE_N Root Mean Square Error from nominal size

RMSE_M Root Mean Square Error for Coverage Probability

RMSE_MI Root Mean Square Error for minimum coverage probability

tol Required tolerance for coverage probability

Page 101: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

covpWD 101

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Basic coverage probability methods: PlotcovpAS, PlotcovpAll, PlotcovpBA, PlotcovpEX,PlotcovpLR, PlotcovpLT, PlotcovpSC, PlotcovpTW, PlotcovpWD, covpAS, covpAll, covpBA,covpEX, covpLR, covpLT, covpSC, covpWD

Examples

n= 10; alp=0.05; a=1;b=1; t1=0.93;t2=0.97covpTW(n,alp,a,b,t1,t2)

covpWD Coverage Probability of Wald method

Description

Coverage Probability of Wald method

Usage

covpWD(n, alp, a, b, t1, t2)

Arguments

n - Number of trialsalp - Alpha value (significance level required)a - Beta parameters for hypo "p"b - Beta parameters for hypo "p"t1 - Lower tolerance limit to check the spread of coverage Probabilityt2 - Upper tolerance limit to check the spread of coverage Probability

Page 102: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

102 covpWD

Details

Evaluation of Wald-type interval using coverage probability, root mean square statistic, and theproportion of proportion lies within the desired level of coverage

Value

A dataframe with

mcpW Wald Coverage Probability

micpW Wald minimum coverage probability

RMSE_N Root Mean Square Error from nominal size

RMSE_M Root Mean Square Error for Coverage Probability

RMSE_MI Root Mean Square Error for minimum coverage probability

tol Required tolerance for coverage probability

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Basic coverage probability methods: PlotcovpAS, PlotcovpAll, PlotcovpBA, PlotcovpEX,PlotcovpLR, PlotcovpLT, PlotcovpSC, PlotcovpTW, PlotcovpWD, covpAS, covpAll, covpBA,covpEX, covpLR, covpLT, covpSC, covpTW

Examples

n= 10; alp=0.05; a=1;b=1; t1=0.93;t2=0.97covpWD(n,alp,a,b,t1,t2)

Page 103: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

empericalBA 103

empericalBA The empirical Bayesian approach for Beta-Binomial model

Description

The empirical Bayesian approach for Beta-Binomial model

Usage

empericalBA(n, alp, sL, sU)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

sL - Lower support for MLE optimization

sU - Upper support for MLE optimization

Details

Highest Probability Density (HPD) and two tailed intervals are provided for all x = 0, 1, 2..n basedon empirical Bayesian approach for Beta-Binomial model. Lower and Upper support values areneeded to obtain the MLE of marginal likelihood for prior parameters.

Value

A dataframe with

x - Number of successes (positive samples)

pomean - Posterior mean

LBAQ - Lower limits of Quantile based intervals

UBAQ - Upper limits of Quantile based intervals

LBAH - Lower limits of HPD intervals

UBAH - Upper limits of HPD intervals

References

[1] 1998 Lehmann EL and Casella G Theory of Point Estimation, 2nd ed Springer, New York

See Also

Other Miscellaneous functions for Bayesian method: empericalBAx, probPOSx, probPOS, probPREx,probPRE

Page 104: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

104 empericalBAx

Examples

sL=runif(1,0,2) #Lower and upper of Support for MLE optimizationsU=runif(1,sL,10)n= 5; alp=0.05empericalBA(n,alp,sL,sU)

empericalBAx The empirical Bayesian approach for Beta-Binomial model given x

Description

The empirical Bayesian approach for Beta-Binomial model given x

Usage

empericalBAx(x, n, alp, sL, sU)

Arguments

x - Number of successes

n - Number of trials

alp - Alpha value (significance level required)

sL - Lower support for MLE optimization

sU - Upper support for MLE optimization

Details

Highest Probability Density (HPD) and two tailed intervals are provided for the required x (any onevalue from 0, 1, 2..n) based on empirical Bayesian approach for Beta-Binomial model. Lower andUpper support values are needed to obtain the MLE of marginal likelihood for prior parameters.

Value

A dataframe with

x - Number of successes (positive samples)

pomean - Posterior mean

LEBAQ - Lower limits of Quantile based intervals

UEBAQ - Upper limits of Quantile based intervals

LEBAH - Lower limits of HPD intervals

UEBAH - Upper limits of HPD intervals

References

[1] 1998 Lehmann EL and Casella G Theory of Point Estimation, 2nd ed Springer, New York

Page 105: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

errAAll 105

See Also

Other Miscellaneous functions for Bayesian method: empericalBA, probPOSx, probPOS, probPREx,probPRE

Examples

sL=runif(1,0,2) #Lower and upper of Support for MLE optimizationsU=runif(1,sL,10)x=0; n= 5; alp=0.05empericalBAx(x,n,alp,sL,sU)

errAAll Calculates error, long term power and pass/fail criteria using 6 ad-justed methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, Arc-Sine)

Description

Calculates error, long term power and pass/fail criteria using 6 adjusted methods (Wald, Wald-T,Likelihood, Score, Logit-Wald, ArcSine)

Usage

errAAll(n, alp, h, phi, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

phi - Null hypothesis value

f - Failure criterion

Details

Calculates error, long term power and pass/fail criteria using 6 adjusted methods (Wald, Wald-T,Likelihood, Score, Logit-Wald, ArcSine)

Value

A dataframe with

delalp Delta-alpha is the increase of the nominal error with respect to real error

theta Long term power of the test

Fail_Pass Fail/pass based on the input f criterion

method Name of the method

Page 106: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

106 errAAS

See Also

Other Error for adjusted methods: PloterrAAS, PloterrAAll, PloterrALR, PloterrALT, PloterrASC,PloterrATW, PloterrAWD, errAAS, errALR, errALT, errASC, errATW, errAWD

Examples

n=20; alp=0.05;h=2; phi=0.99; f=-2errAAll(n,alp,h,phi,f)

errAAS Calculates error, long term power and pass/fail criteria for adjustedArcSine method

Description

Calculates error, long term power and pass/fail criteria for adjusted ArcSine method

Usage

errAAS(n, alp, h, phi, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

phi - Null hypothesis value

f - Failure criterion

Details

Evaluation of adjusted Wald-type interval for the arcsine transformation of the parameter p usingerror due to the difference of achieved and nominal level of significance for the n+ 1 intervals

Value

A dataframe with

delalp Delta-alpha is the increase of the nominal error with respect to real error

theta Long term power of the test

Fail_Pass Fail/pass based on the input f criterion

References

[1] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

Page 107: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

errAll 107

See Also

Other Error for adjusted methods: PloterrAAS, PloterrAAll, PloterrALR, PloterrALT, PloterrASC,PloterrATW, PloterrAWD, errAAll, errALR, errALT, errASC, errATW, errAWD

Examples

n=20; alp=0.05; h=2;phi=0.99; f=-2errAAS(n,alp,h,phi,f)

errAll Calculates error, long term power and pass/fail criteria using 6 basemethods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine)

Description

Calculates error, long term power and pass/fail criteria using 6 base methods (Wald, Wald-T, Like-lihood, Score, Logit-Wald, ArcSine)

Usage

errAll(n, alp, phi, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

f - Failure criterion

Details

Calculation of error, long term power and pass/fail criteria using 6 base methods (Wald, Wald-T,Likelihood, Score, Logit-Wald, ArcSine)

Value

A dataframe with

delalp Delta-alpha is the increase of the nominal error with respect to real error

theta Long term power of the test

Fail_Pass Fail/pass based on the input f criterion

method Name of the method

References

[1] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

Page 108: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

108 errALR

See Also

Other Error for base methods: PloterrAS, PloterrAll, PloterrBA, PloterrEX, PloterrLR, PloterrLT,PloterrSC, PloterrTW, PloterrWD, errAS, errBA, errEX, errLR, errLT, errSC, errTW, errWD

Examples

n=20; alp=0.05; phi=0.05; f=-2errAll(n,alp,phi,f)

errALR Calculates error, long term power and pass/fail criteria for adjustedLikelihood Ratio method

Description

Calculates error, long term power and pass/fail criteria for adjusted Likelihood Ratio method

Usage

errALR(n, alp, h, phi, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

phi - Null hypothesis value

f - Failure criterion

Details

Evaluation of adjusted Likelihood ratio limits using error due to the difference of achieved andnominal level of significance for the n+ 1 intervals

Value

A dataframe with

delalp Delta-alpha is the increase of the nominal error with respect to real error

theta Long term power of the test

Fail_Pass Fail/pass based on the input f criterion

References

[1] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

Page 109: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

errALT 109

See Also

Other Error for adjusted methods: PloterrAAS, PloterrAAll, PloterrALR, PloterrALT, PloterrASC,PloterrATW, PloterrAWD, errAAS, errAAll, errALT, errASC, errATW, errAWD

Examples

n=20; alp=0.05; h=2;phi=0.99; f=-2errALR(n,alp,h,phi,f)

errALT Calculates error, long term power and pass/fail criteria for adjustedLogit Wald method

Description

Calculates error, long term power and pass/fail criteria for adjusted Logit Wald method

Usage

errALT(n, alp, h, phi, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

phi - Null hypothesis value

f - Failure criterion

Details

Evaluation of adjusted Wald-type interval based on the logit transformation of p using error due tothe difference of achieved and nominal level of significance for the n+ 1 intervals

Value

A dataframe with

delalp Delta-alpha is the increase of the nominal error with respect to real error

theta Long term power of the test

Fail_Pass Fail/pass based on the input f criterion

References

[1] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

Page 110: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

110 errAS

See Also

Other Error for adjusted methods: PloterrAAS, PloterrAAll, PloterrALR, PloterrALT, PloterrASC,PloterrATW, PloterrAWD, errAAS, errAAll, errALR, errASC, errATW, errAWD

Examples

n=20; alp=0.05; h=2;phi=0.99; f=-2errALT(n,alp,h,phi,f)

errAS Calculates error, long term power and pass/fail criteria for ArcSinemethod

Description

Calculates error, long term power and pass/fail criteria for ArcSine method

Usage

errAS(n, alp, phi, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

f - Failure criterion

Details

Evaluation of Wald-type interval for the arcsine transformation of the parameter p error due to thedifference of achieved and nominal level of significance for the n+ 1 intervals

Value

A dataframe with

delalp Delta-alpha is the increase of the nominal error with respect to real error

theta Long term power of the test

Fail_Pass Fail/pass based on the input f criterion

References

[1] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

Page 111: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

errASC 111

See Also

Other Error for base methods: PloterrAS, PloterrAll, PloterrBA, PloterrEX, PloterrLR, PloterrLT,PloterrSC, PloterrTW, PloterrWD, errAll, errBA, errEX, errLR, errLT, errSC, errTW, errWD

Examples

n=20; alp=0.05; phi=0.05; f=-2errAS(n,alp,phi,f)

errASC Calculates error, long term power and pass/fail criteria for adjustedScore method

Description

Calculates error, long term power and pass/fail criteria for adjusted Score method

Usage

errASC(n, alp, h, phi, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

phi - Null hypothesis value

f - Failure criterion

Details

Evaluation of adjusted score test approach using error due to the difference of achieved and nominallevel of significance for the n+ 1 intervals

Value

A dataframe with

delalp Delta-alpha is the increase of the nominal error with respect to real error

theta Long term power of the test

Fail_Pass Fail/pass based on the input f criterion

References

[1] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

Page 112: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

112 errATW

See Also

Other Error for adjusted methods: PloterrAAS, PloterrAAll, PloterrALR, PloterrALT, PloterrASC,PloterrATW, PloterrAWD, errAAS, errAAll, errALR, errALT, errATW, errAWD

Examples

n=20; alp=0.05; h=2;phi=0.99; f=-2errASC(n,alp,h,phi,f)

errATW Calculates error, long term power and pass/fail criteria for adjustedWald-T method

Description

Calculates error, long term power and pass/fail criteria for adjusted Wald-T method

Usage

errATW(n, alp, h, phi, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

phi - Null hypothesis value

f - Failure criterion

Details

Evaluation of approximate and adjusted method based on a t_approximation of the standardizedpoint estimator using error due to the difference of achieved and nominal level of significance forthe n+ 1 intervals

Value

A dataframe with

delalp Delta-alpha is the increase of the nominal error with respect to real error

theta Long term power of the test

Fail_Pass Fail/pass based on the input f criterion

References

[1] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

Page 113: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

errAWD 113

See Also

Other Error for adjusted methods: PloterrAAS, PloterrAAll, PloterrALR, PloterrALT, PloterrASC,PloterrATW, PloterrAWD, errAAS, errAAll, errALR, errALT, errASC, errAWD

Examples

n=20; alp=0.05; h=2;phi=0.99; f=-2errATW(n,alp,h,phi,f)

errAWD Calculates error, long term power and pass/fail criteria for adjustedWald method

Description

Calculates error, long term power and pass/fail criteria for adjusted Wald method

Usage

errAWD(n, alp, h, phi, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

phi - Null hypothesis value

f - Failure criterion

Details

Evaluation of adjusted Wald-type interval using error due to the difference of achieved and nominallevel of significance for the n+ 1 intervals

Value

A dataframe with

delalp Delta-alpha is the increase of the nominal error with respect to real error

theta Long term power of the test

Fail_Pass Fail/pass based on the input f criterion

References

[1] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

Page 114: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

114 errBA

See Also

Other Error for adjusted methods: PloterrAAS, PloterrAAll, PloterrALR, PloterrALT, PloterrASC,PloterrATW, PloterrAWD, errAAS, errAAll, errALR, errALT, errASC, errATW

Examples

n=20; alp=0.05; h=2;phi=0.99; f=-2errAWD(n,alp,h,phi,f)

errBA Calculates error, long term power and pass/fail criteria for Bayesianmethod

Description

Calculates error, long term power and pass/fail criteria for Bayesian method

Usage

errBA(n, alp, phi, f, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

f - Failure criterion

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Evaluation of Bayesian Highest Probability Density (HPD) and two tailed intervals using error dueto the difference of achieved and nominal level of significance for the n+ 1 intervals for the Beta -Binomial conjugate prior model for the probability of success p

Value

A dataframe with

delalp Delta-alpha is the increase of the nominal error with respect to real error

theta Long term power of the test

Fail_Pass Fail/pass based on the input f criterion

method Name of method - Quantile or HPD

Page 115: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

errCAll 115

References

[1] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Error for base methods: PloterrAS, PloterrAll, PloterrBA, PloterrEX, PloterrLR, PloterrLT,PloterrSC, PloterrTW, PloterrWD, errAS, errAll, errEX, errLR, errLT, errSC, errTW, errWD

Examples

n=20; alp=0.05; phi=0.05; f=-2;a=0.5;b=0.5errBA(n,alp,phi,f,a,b)

errCAll Calculates error, long term power and pass/fail criteria using 5 conti-nuity corrected methods (Wald, Wald-T, Score, Logit-Wald, ArcSine)

Description

Calculates error, long term power and pass/fail criteria using 5 continuity corrected methods (Wald,Wald-T, Score, Logit-Wald, ArcSine)

Usage

errCAll(n, alp, phi, c, f)

Arguments

n - Number of trialsalp - Alpha value (significance level required)phi - Null hypothesis valuec - Continuity correctionf - Failure criterion

Details

Calculates error, long term power and pass/fail criteria using 5 continuity corrected methods (Wald,Wald-T, Score, Logit-Wald, ArcSine)

Value

A dataframe with

delalp Delta-alpha is the increase of the nominal error with respect to real errortheta Long term power of the testFail_Pass Fail/pass based on the input f criterionmethod Name of the method

Page 116: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

116 errCAS

References

[1] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Error for continuity corrected methods: PloterrCAS, PloterrCAll, PloterrCLT, PloterrCSC,PloterrCTW, PloterrCWD, errCAS, errCLT, errCSC, errCTW, errCWD

Examples

n=5; alp=0.05; phi=0.05;c=1/(2*n); f=-2errCAll(n,alp,phi,c,f)

errCAS Calculates error, long term power and pass/fail criteria for continuitycorrected ArcSine method

Description

Calculates error, long term power and pass/fail criteria for continuity corrected ArcSine method

Usage

errCAS(n, alp, phi, c, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

c - Continuity correction

f - Failure criterion

Details

Evaluation of continuity corrected Wald-type interval for the arcsine transformation of the param-eter p using error due to the difference of achieved and nominal level of significance for the n + 1intervals

Value

A dataframe with

delalp Delta-alpha is the increase of the nominal error with respect to real error

theta Long term power of the test

Fail_Pass Fail/pass based on the input f criterion

Page 117: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

errCLT 117

References

[1] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Error for continuity corrected methods: PloterrCAS, PloterrCAll, PloterrCLT, PloterrCSC,PloterrCTW, PloterrCWD, errCAll, errCLT, errCSC, errCTW, errCWD

Examples

n=5; alp=0.05; phi=0.05;c=1/(2*n); f=-2errCAS(n,alp,phi,c,f)

errCLT Calculates error, long term power and pass/fail criteria for continuitycorrected Logit Wald method

Description

Calculates error, long term power and pass/fail criteria for continuity corrected Logit Wald method

Usage

errCLT(n, alp, phi, c, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

c - Continuity correction

f - Failure criterion

Details

Evaluation of continuity corrected Wald-type interval based on the logit transformation of p usingerror due to the difference of achieved and nominal level of significance for the n+ 1 intervals

Value

A dataframe with

delalp Delta-alpha is the increase of the nominal error with respect to real error

theta Long term power of the test

Fail_Pass Fail/pass based on the input f criterion

Page 118: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

118 errCSC

References

[1] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Error for continuity corrected methods: PloterrCAS, PloterrCAll, PloterrCLT, PloterrCSC,PloterrCTW, PloterrCWD, errCAS, errCAll, errCSC, errCTW, errCWD

Examples

n=5; alp=0.05; phi=0.05;c=1/(2*n); f=-2errCLT(n,alp,phi,c,f)

errCSC Calculates error, long term power and pass/fail criteria for continuitycorrected Score method

Description

Calculates error, long term power and pass/fail criteria for continuity corrected Score method

Usage

errCSC(n, alp, phi, c, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

c - Continuity correction

f - Failure criterion

Details

Evaluation of continuity corrected score test approach using error due to the difference of achievedand nominal level of significance for the n+ 1 intervals

Value

A dataframe with

delalp Delta-alpha is the increase of the nominal error with respect to real error

theta Long term power of the test

Fail_Pass Fail/pass based on the input f criterion

Page 119: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

errCTW 119

References

[1] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Error for continuity corrected methods: PloterrCAS, PloterrCAll, PloterrCLT, PloterrCSC,PloterrCTW, PloterrCWD, errCAS, errCAll, errCLT, errCTW, errCWD

Examples

n=5; alp=0.05; phi=0.05;c=1/(2*n); f=-2errCSC(n,alp,phi,c,f)

errCTW Calculates error, long term power and pass/fail criteria for continuitycorrected Wald-T method

Description

Calculates error, long term power and pass/fail criteria for continuity corrected Wald-T method

Usage

errCTW(n, alp, phi, c, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

c - Continuity correction

f - Failure criterion

Details

Evaluation of approximate and continuity corrected method based on a t_approximation of thestandardized point estimator using error due to the difference of achieved and nominal level ofsignificance for the n+ 1 intervals

Value

A dataframe with

delalp Delta-alpha is the increase of the nominal error with respect to real error

theta Long term power of the test

Fail_Pass Fail/pass based on the input f criterion

Page 120: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

120 errCWD

References

[1] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Error for continuity corrected methods: PloterrCAS, PloterrCAll, PloterrCLT, PloterrCSC,PloterrCTW, PloterrCWD, errCAS, errCAll, errCLT, errCSC, errCWD

Examples

n=5; alp=0.05; phi=0.05;c=1/(2*n); f=-2errCTW(n,alp,phi,c,f)

errCWD Calculates error, long term power and pass/fail criteria for continuitycorrected Wald method

Description

Calculates error, long term power and pass/fail criteria for continuity corrected Wald method

Usage

errCWD(n, alp, phi, c, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

c - Continuity correction

f - Failure criterion

Details

Evaluation of Wald-type interval with continuity correction using error due to the difference ofachieved and nominal level of significance for the n+ 1 intervals

Value

A dataframe with

delalp Delta-alpha is the increase of the nominal error with respect to real error

theta Long term power of the test

Fail_Pass Fail/pass based on the input f criterion

Page 121: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

errEX 121

References

[1] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Error for continuity corrected methods: PloterrCAS, PloterrCAll, PloterrCLT, PloterrCSC,PloterrCTW, PloterrCWD, errCAS, errCAll, errCLT, errCSC, errCTW

Examples

n=5; alp=0.05; phi=0.05;c=1/(2*n); f=-2errCWD(n,alp,phi,c,f)

errEX Calculates error, long term power and pass/fail criteria for Exactmethod

Description

Calculates error, long term power and pass/fail criteria for Exact method

Usage

errEX(n, alp, phi, f, e)

Arguments

n - Number of trialsalp - Alpha value (significance level required)phi - Null hypothesis valuef - Failure criterione - Exact method indicator in [0, 1] 1: Clopper Pearson, 0.5: Mid P The input can

also be a range of values between 0 and 1.

Details

Evaluation of Confidence interval for p based on inverting equal-tailed binomial tests with null hy-pothesisH0 : p = p0 using error due to the difference of achieved and nominal level of significancefor the n+ 1 intervals

Value

A dataframe with

delalp Delta-alpha is the increase of the nominal error with respect to real errortheta Long term power of the testFail_Pass Fail/pass based on the input f criterion

Page 122: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

122 errGEN

References

[1] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Error for base methods: PloterrAS, PloterrAll, PloterrBA, PloterrEX, PloterrLR, PloterrLT,PloterrSC, PloterrTW, PloterrWD, errAS, errAll, errBA, errLR, errLT, errSC, errTW, errWD

Examples

n=20; alp=0.05;phi=0.05; f=-2;e=0.5 # Mid-perrEX(n,alp,phi,f,e)n=20; alp=0.05;phi=0.05; f=-2;e=1 #Clopper-PearsonerrEX(n,alp,phi,f,e)n=20; alp=0.05;phi=0.05; f=-2;e=c(0.1,0.5,0.95,1) #Range including Mid-p and Clopper-PearsonerrEX(n,alp,phi,f,e)

errGEN Calculates error, long term power and pass/fail criteria for CI ob-tained from any method

Description

Calculates error, long term power and pass/fail criteria for CI obtained from any method

Usage

errGEN(n, LL, UL, alp, phi, f)

Arguments

n - Number of trials

LL - Lower limit

UL - Upper limit

alp - Alpha value (significance level required)

phi - Null hypothesis value

f - Failure criterion

Details

Evaluation of intervals obtained from any method using error due to the difference of achieved andnominal level of significance for the n+ 1 intervals

Page 123: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

errLR 123

Value

A dataframe with

delalp Delta-alpha is the increase of the nominal error with respect to real error

theta Long term power of the test

Fail_Pass Fail/pass based on the input f criterion

References

[1] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

Examples

LL=c(0,0.01,0.0734,0.18237,0.3344,0.5492) #Lower and Upper LimitsUL=c(0.4507,0.6655,0.8176,0.9265,0.9899,1)n= 5; alp=0.05;phi=0.05; f=-2errGEN(n,LL,UL,alp,phi,f)

errLR Calculates error, long term power and pass/fail criteria for LikelihoodRatio method

Description

Calculates error, long term power and pass/fail criteria for Likelihood Ratio method

Usage

errLR(n, alp, phi, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

f - Failure criterion

Details

Evaluation of Likelihood ratio limits using error due to the difference of achieved and nominal levelof significance for the n+ 1 intervals

Page 124: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

124 errLT

Value

A dataframe with

delalp Delta-alpha is the increase of the nominal error with respect to real error

theta Long term power of the test

Fail_Pass Fail/pass based on the input f criterion

References

[1] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Error for base methods: PloterrAS, PloterrAll, PloterrBA, PloterrEX, PloterrLR, PloterrLT,PloterrSC, PloterrTW, PloterrWD, errAS, errAll, errBA, errEX, errLT, errSC, errTW, errWD

Examples

n=20; alp=0.05; phi=0.05; f=-2errLR(n,alp,phi,f)

errLT Calculates error, long term power and pass/fail criteria for Logit Waldmethod

Description

Calculates error, long term power and pass/fail criteria for Logit Wald method

Usage

errLT(n, alp, phi, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

f - Failure criterion

Details

Evaluation of Wald-type interval based on the logit transformation of p using error due to the dif-ference of achieved and nominal level of significance for the n+ 1 intervals

Page 125: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

errSC 125

Value

A dataframe with

delalp Delta-alpha is the increase of the nominal error with respect to real error

theta Long term power of the test

Fail_Pass Fail/pass based on the input f criterion

References

[1] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Error for base methods: PloterrAS, PloterrAll, PloterrBA, PloterrEX, PloterrLR, PloterrLT,PloterrSC, PloterrTW, PloterrWD, errAS, errAll, errBA, errEX, errLR, errSC, errTW, errWD

Examples

n=20; alp=0.05; phi=0.05; f=-2errLT(n,alp,phi,f)

errSC Calculates error, long term power and pass/fail criteria for Scoremethod

Description

Calculates error, long term power and pass/fail criteria for Score method

Usage

errSC(n, alp, phi, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

f - Failure criterion

Details

Evaluation of score test approach using error due to the difference of achieved and nominal level ofsignificance for the n+ 1 intervals

Page 126: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

126 errTW

Value

A dataframe with

delalp Delta-alpha is the increase of the nominal error with respect to real error

theta Long term power of the test

Fail_Pass Fail/pass based on the input f criterion

References

[1] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Error for base methods: PloterrAS, PloterrAll, PloterrBA, PloterrEX, PloterrLR, PloterrLT,PloterrSC, PloterrTW, PloterrWD, errAS, errAll, errBA, errEX, errLR, errLT, errTW, errWD

Examples

n=20; alp=0.05; phi=0.05; f=-2errSC(n,alp,phi,f)

errTW Calculates error, long term power and pass/fail criteria for Wald-Tmethod

Description

Calculates error, long term power and pass/fail criteria for Wald-T method

Usage

errTW(n, alp, phi, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

f - Failure criterion

Details

Evaluation of approximate method based on a t_approximation of the standardized point estimatorusing error due to the difference of achieved and nominal level of significance for the n+1 intervals

Page 127: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

errWD 127

Value

A dataframe with

delalp Delta-alpha is the increase of the nominal error with respect to real error

theta Long term power of the test

Fail_Pass Fail/pass based on the input f criterion

References

[1] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Error for base methods: PloterrAS, PloterrAll, PloterrBA, PloterrEX, PloterrLR, PloterrLT,PloterrSC, PloterrTW, PloterrWD, errAS, errAll, errBA, errEX, errLR, errLT, errSC, errWD

Examples

n=20; alp=0.05; phi=0.05; f=-2errTW(n,alp,phi,f)

errWD Calculates error, long term power and pass/fail criteria for Waldmethod

Description

Calculates error, long term power and pass/fail criteria for Wald method

Usage

errWD(n, alp, phi, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

f - Failure criterion

Details

Evaluation of Wald-type intervals using error due to the difference of achieved and nominal level ofsignificance for the n+ 1 intervals

Page 128: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

128 hypotestBAF1

Value

A dataframe with

delalp Delta-alpha is the increase of the nominal error with respect to real error

theta Long term power of the test

Fail_Pass Fail/pass based on the input f criterion

References

[1] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Error for base methods: PloterrAS, PloterrAll, PloterrBA, PloterrEX, PloterrLR, PloterrLT,PloterrSC, PloterrTW, PloterrWD, errAS, errAll, errBA, errEX, errLR, errLT, errSC, errTW

Examples

n=20; alp=0.05; phi=0.05; f=-2errWD(n,alp,phi,f)

hypotestBAF1 Bayesain Hypothesis testing : Hypothesis 1: Theta = Theta0 Vs Theta<> Theta0

Description

Bayesain Hypothesis testing : Hypothesis 1: Theta = Theta0 Vs Theta <> Theta0

Usage

hypotestBAF1(n, th0, a1, b1)

Arguments

n - Number of trials from data

th0 - Hypothetical parameter for H0

a1 - Priors for hypothesis H1

b1 - Priors for hypothesis H1

Page 129: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

hypotestBAF1 129

Details

Computes Bayes factor under Beta-Binomial model for the model: p = p0 Vs p 6= p0 from thegiven number of trials n and for all number of successes x = 0, 1, 2......n. We use the followingguideline for reporting the results:

• 1/3 <= BaFa01 < 1: Evidence against H0 is not worth more than a bare mention.

• 1/20 <= BaFa01 < 1/3: Evidence against H0 is positive.

• 1/150 <= BaFa01 < 1/20: Evidence against H0 is strong.

• BaFa10 < 1/150: Evidence against H0 is very strong.

• 1 <= BaFa01 < 3: Evidence against H1 is not worth more than a bare mention.

• 3 <= BaFa01 < 20: Evidence against H1 is positive.

• 20 <= BaFa01 < 150: Evidence against H1 is strong.

• 150 <= BaFa01: Evidence against H1 is very strong.

Value

A dataframe with

x Number of successes

BaFa01 Bayesian Factor

References

[1] 2006 Ghosh M, Delampady M and Samanta T. An introduction to Bayesian analysis: Theoryand Methods. Springer, New York

[2] 2014 Sakthivel S, Subbiah M and Ramakrishnan R Default prior approach for Bayesian testingof hypotheses involving single binomial proportion International Journal of Statistics and Analysis,4 (2), 139 - 153

See Also

Other Hypothesis testing: hypotestBAF1x, hypotestBAF2x, hypotestBAF2, hypotestBAF3x, hypotestBAF3,hypotestBAF4x, hypotestBAF4, hypotestBAF5x, hypotestBAF5, hypotestBAF6x, hypotestBAF6

Examples

n=10; th0=0.1; a1=1; b1=1hypotestBAF1(n,th0,a1,b1)

Page 130: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

130 hypotestBAF1x

hypotestBAF1x Bayesain Hypothesis testing given x: Hypothesis 1: Theta = Theta0Vs Theta <> Theta0

Description

Bayesain Hypothesis testing given x: Hypothesis 1: Theta = Theta0 Vs Theta <> Theta0

Usage

hypotestBAF1x(x, n, th0, a1, b1)

Arguments

x - Number of success

n - Number of trials from data

th0 - Hypothetical parameter for H0

a1 - Priors for hypothesis H1

b1 - Priors for hypothesis H1

Details

Computes Bayes factor under Beta-Binomial model for the model: p = p0 Vs p 6= p0 from thegiven number of trials n and and for given number of successes x = 0, 1, 2......n We use the follow-ing guideline for reporting the results:

• 1/3 <= BaFa01 < 1: Evidence against H0 is not worth more than a bare mention.

• 1/20 <= BaFa01 < 1/3: Evidence against H0 is positive.

• 1/150 <= BaFa01 < 1/20: Evidence against H0 is strong.

• BaFa10 < 1/150: Evidence against H0 is very strong.

• 1 <= BaFa01 < 3: Evidence against H1 is not worth more than a bare mention.

• 3 <= BaFa01 < 20: Evidence against H1 is positive.

• 20 <= BaFa01 < 150: Evidence against H1 is strong.

• 150 <= BaFa01: Evidence against H1 is very strong.

Value

A dataframe with

x Number of successes

BaFa01 Bayesian Factor

Page 131: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

hypotestBAF2 131

References

[1] 2006 Ghosh M, Delampady M and Samanta T. An introduction to Bayesian analysis: Theoryand Methods. Springer, New York

[2] 2014 Sakthivel S, Subbiah M and Ramakrishnan R Default prior approach for Bayesian testingof hypotheses involving single binomial proportion International Journal of Statistics and Analysis,4 (2), 139 - 153

See Also

Other Hypothesis testing: hypotestBAF1, hypotestBAF2x, hypotestBAF2, hypotestBAF3x, hypotestBAF3,hypotestBAF4x, hypotestBAF4, hypotestBAF5x, hypotestBAF5, hypotestBAF6x, hypotestBAF6

Examples

x=682; n=925; th0=0.75; a1=3; b1=3hypotestBAF1x(x,n,th0,a1,b1)

hypotestBAF2 Bayesain Hypothesis testing : Hypothesis 2: Theta = Theta0 Vs Theta> Theta0

Description

Bayesain Hypothesis testing : Hypothesis 2: Theta = Theta0 Vs Theta > Theta0

Usage

hypotestBAF2(n, th0, a1, b1)

Arguments

n - Number of trials from data

th0 - Hypothetical parameter for H0

a1 - Priors for hypothesis H1

b1 - Priors for hypothesis H1

Details

Computes Bayes factor under Beta-Binomial model for the model: p = p0 Vs p > p0 from thegiven number of trials n and for all number of successes x = 0, 1, 2......n We use the followingguideline for reporting the results:

• 1/3 <= BaFa01 < 1: Evidence against H0 is not worth more than a bare mention.

• 1/20 <= BaFa01 < 1/3: Evidence against H0 is positive.

• 1/150 <= BaFa01 < 1/20: Evidence against H0 is strong.

• BaFa10 < 1/150: Evidence against H0 is very strong.

Page 132: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

132 hypotestBAF2x

• 1 <= BaFa01 < 3: Evidence against H1 is not worth more than a bare mention.

• 3 <= BaFa01 < 20: Evidence against H1 is positive.

• 20 <= BaFa01 < 150: Evidence against H1 is strong.

• 150 <= BaFa01: Evidence against H1 is very strong.

Value

A dataframe with

x Number of successes

BaFa01 Bayesian Factor

References

[1] 2006 Ghosh M, Delampady M and Samanta T. An introduction to Bayesian analysis: Theoryand Methods. Springer, New York

[2] 2014 Sakthivel S, Subbiah M and Ramakrishnan R Default prior approach for Bayesian testingof hypotheses involving single binomial proportion International Journal of Statistics and Analysis,4 (2), 139 - 153

See Also

Other Hypothesis testing: hypotestBAF1x, hypotestBAF1, hypotestBAF2x, hypotestBAF3x, hypotestBAF3,hypotestBAF4x, hypotestBAF4, hypotestBAF5x, hypotestBAF5, hypotestBAF6x, hypotestBAF6

Examples

n=10; th0=0.1; a1=1; b1=1hypotestBAF2(n,th0,a1,b1)

hypotestBAF2x Bayesain Hypothesis testing given x: Hypothesis 2: Theta = Theta0Vs Theta > Theta0

Description

Bayesain Hypothesis testing given x: Hypothesis 2: Theta = Theta0 Vs Theta > Theta0

Usage

hypotestBAF2x(x, n, th0, a1, b1)

Page 133: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

hypotestBAF2x 133

Arguments

x - Number of success

n - Number of trials from data

th0 - Hypothetical parameter for H0

a1 - Priors for hypothesis H1

b1 - Priors for hypothesis H1

Details

Computes Bayes factor under Beta-Binomial model for the model: p = p0 Vs p > p0 from thegiven number of trials n and and for given number of successes x = 0, 1, 2......n We use the follow-ing guideline for reporting the results:

• 1/3 <= BaFa01 < 1: Evidence against H0 is not worth more than a bare mention.

• 1/20 <= BaFa01 < 1/3: Evidence against H0 is positive.

• 1/150 <= BaFa01 < 1/20: Evidence against H0 is strong.

• BaFa10 < 1/150: Evidence against H0 is very strong.

• 1 <= BaFa01 < 3: Evidence against H1 is not worth more than a bare mention.

• 3 <= BaFa01 < 20: Evidence against H1 is positive.

• 20 <= BaFa01 < 150: Evidence against H1 is strong.

• 150 <= BaFa01: Evidence against H1 is very strong.

Value

A dataframe with

x Number of successes

BaFa01 Bayesian Factor

References

[1] 2006 Ghosh M, Delampady M and Samanta T. An introduction to Bayesian analysis: Theoryand Methods. Springer, New York

[2] 2014 Sakthivel S, Subbiah M and Ramakrishnan R Default prior approach for Bayesian testingof hypotheses involving single binomial proportion International Journal of Statistics and Analysis,4 (2), 139 - 153

See Also

Other Hypothesis testing: hypotestBAF1x, hypotestBAF1, hypotestBAF2, hypotestBAF3x, hypotestBAF3,hypotestBAF4x, hypotestBAF4, hypotestBAF5x, hypotestBAF5, hypotestBAF6x, hypotestBAF6

Examples

x=682; n=925; th0=0.75; a1=3; b1=3hypotestBAF2x(x,n,th0,a1,b1)

Page 134: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

134 hypotestBAF3

hypotestBAF3 Bayesain Hypothesis testing : Hypothesis 3: Theta = Theta0 Vs Theta< Theta0

Description

Bayesain Hypothesis testing : Hypothesis 3: Theta = Theta0 Vs Theta < Theta0

Usage

hypotestBAF3(n, th0, a1, b1)

Arguments

n - Number of trials from data

th0 - Hypothetical parameter for H0

a1 - Priors for hypothesis H1

b1 - Priors for hypothesis H1

Details

Computes Bayes factor under Beta-Binomial model for the model: p = p0 Vs p < p0 from thegiven number of trials n and for all number of successes x = 0, 1, 2......n We use the followingguideline for reporting the results:

• 1/3 <= BaFa01 < 1: Evidence against H0 is not worth more than a bare mention.

• 1/20 <= BaFa01 < 1/3: Evidence against H0 is positive.

• 1/150 <= BaFa01 < 1/20: Evidence against H0 is strong.

• BaFa10 < 1/150: Evidence against H0 is very strong.

• 1 <= BaFa01 < 3: Evidence against H1 is not worth more than a bare mention.

• 3 <= BaFa01 < 20: Evidence against H1 is positive.

• 20 <= BaFa01 < 150: Evidence against H1 is strong.

• 150 <= BaFa01: Evidence against H1 is very strong.

Value

A dataframe with

x Number of successes

BaFa01 Bayesian Factor

Page 135: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

hypotestBAF3x 135

References

[1] 2006 Ghosh M, Delampady M and Samanta T. An introduction to Bayesian analysis: Theoryand Methods. Springer, New York

[2] 2014 Sakthivel S, Subbiah M and Ramakrishnan R Default prior approach for Bayesian testingof hypotheses involving single binomial proportion International Journal of Statistics and Analysis,4 (2), 139 - 153

See Also

Other Hypothesis testing: hypotestBAF1x, hypotestBAF1, hypotestBAF2x, hypotestBAF2, hypotestBAF3x,hypotestBAF4x, hypotestBAF4, hypotestBAF5x, hypotestBAF5, hypotestBAF6x, hypotestBAF6

Examples

n=10; th0=0.1; a1=1; b1=1hypotestBAF3(n,th0,a1,b1)

hypotestBAF3x Bayesain Hypothesis testing given x: Hypothesis 3: Theta = Theta0Vs Theta < Theta0

Description

Bayesain Hypothesis testing given x: Hypothesis 3: Theta = Theta0 Vs Theta < Theta0

Usage

hypotestBAF3x(x, n, th0, a1, b1)

Arguments

x - Number of success

n - Number of trials from data

th0 - Hypothetical parameter for H0

a1 - Priors for hypothesis H1

b1 - Priors for hypothesis H1

Details

Computes Bayes factor under Beta-Binomial model for the model: p = p0 Vs p < p0 from thegiven number of trials n and and for given number of successes x = 0, 1, 2......n We use the follow-ing guideline for reporting the results:

• 1/3 <= BaFa01 < 1: Evidence against H0 is not worth more than a bare mention.

• 1/20 <= BaFa01 < 1/3: Evidence against H0 is positive.

• 1/150 <= BaFa01 < 1/20: Evidence against H0 is strong.

Page 136: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

136 hypotestBAF4

• BaFa10 < 1/150: Evidence against H0 is very strong.

• 1 <= BaFa01 < 3: Evidence against H1 is not worth more than a bare mention.

• 3 <= BaFa01 < 20: Evidence against H1 is positive.

• 20 <= BaFa01 < 150: Evidence against H1 is strong.

• 150 <= BaFa01: Evidence against H1 is very strong.

Value

A dataframe with

x Number of successes

BaFa01 Bayesian Factor

References

[1] 2006 Ghosh M, Delampady M and Samanta T. An introduction to Bayesian analysis: Theoryand Methods. Springer, New York

[2] 2014 Sakthivel S, Subbiah M and Ramakrishnan R Default prior approach for Bayesian testingof hypotheses involving single binomial proportion International Journal of Statistics and Analysis,4 (2), 139 - 153

See Also

Other Hypothesis testing: hypotestBAF1x, hypotestBAF1, hypotestBAF2x, hypotestBAF2, hypotestBAF3,hypotestBAF4x, hypotestBAF4, hypotestBAF5x, hypotestBAF5, hypotestBAF6x, hypotestBAF6

Examples

x=682; n=925; th0=0.75; a1=3; b1=3hypotestBAF3x(x,n,th0,a1,b1)

hypotestBAF4 Bayesain Hypothesis testing :Hypothesis 4: Theta <= Theta0 Vs Theta> Theta0

Description

Bayesain Hypothesis testing :Hypothesis 4: Theta <= Theta0 Vs Theta > Theta0

Usage

hypotestBAF4(n, th0, a0, b0, a1, b1)

Page 137: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

hypotestBAF4 137

Arguments

n - Number of trials from datath0 - Hypothetical parameter for H0a0 - Priors for hypothesis H0b0 - Priors for hypothesis H0a1 - Priors for hypothesis H1b1 - Priors for hypothesis H1

Details

Computes Bayes factor under Beta-Binomial model for the model: p <= p0 Vs p > p0 from thegiven number of trials n and for all number of successes x = 0, 1, 2......n We use the followingguideline for reporting the results:

• 1/3 <= BaFa01 < 1: Evidence against H0 is not worth more than a bare mention.• 1/20 <= BaFa01 < 1/3: Evidence against H0 is positive.• 1/150 <= BaFa01 < 1/20: Evidence against H0 is strong.• BaFa10 < 1/150: Evidence against H0 is very strong.• 1 <= BaFa01 < 3: Evidence against H1 is not worth more than a bare mention.• 3 <= BaFa01 < 20: Evidence against H1 is positive.• 20 <= BaFa01 < 150: Evidence against H1 is strong.• 150 <= BaFa01: Evidence against H1 is very strong.

Value

A dataframe with

x Number of successesBaFa01 Bayesian Factor

References

[1] 2006 Ghosh M, Delampady M and Samanta T. An introduction to Bayesian analysis: Theoryand Methods. Springer, New York

[2] 2014 Sakthivel S, Subbiah M and Ramakrishnan R Default prior approach for Bayesian testingof hypotheses involving single binomial proportion International Journal of Statistics and Analysis,4 (2), 139 - 153

See Also

Other Hypothesis testing: hypotestBAF1x, hypotestBAF1, hypotestBAF2x, hypotestBAF2, hypotestBAF3x,hypotestBAF3, hypotestBAF4x, hypotestBAF5x, hypotestBAF5, hypotestBAF6x, hypotestBAF6

Examples

n=10; th0=0.1; a0=0.5; b0=0.5; a1=1; b1=1hypotestBAF4(n,th0,a0,b0,a1,b1)

Page 138: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

138 hypotestBAF4x

hypotestBAF4x Bayesain Hypothesis testing given x: Hypothesis 4: Theta <= Theta0Vs Theta > Theta0

Description

Bayesain Hypothesis testing given x: Hypothesis 4: Theta <= Theta0 Vs Theta > Theta0

Usage

hypotestBAF4x(x, n, th0, a0, b0, a1, b1)

Arguments

x - Number of success

n - Number of trials from data

th0 - Hypothetical parameter for H0

a0 - Priors for hypothesis H0

b0 - Priors for hypothesis H0

a1 - Priors for hypothesis H1

b1 - Priors for hypothesis H1

Details

Computes Bayes factor under Beta-Binomial model for the model: p <= p0 Vs p > p0 from thegiven number of trials n and for given number of successes x = 0, 1, 2......n We use the followingguideline for reporting the results:

• 1/3 <= BaFa01 < 1: Evidence against H0 is not worth more than a bare mention.

• 1/20 <= BaFa01 < 1/3: Evidence against H0 is positive.

• 1/150 <= BaFa01 < 1/20: Evidence against H0 is strong.

• BaFa10 < 1/150: Evidence against H0 is very strong.

• 1 <= BaFa01 < 3: Evidence against H1 is not worth more than a bare mention.

• 3 <= BaFa01 < 20: Evidence against H1 is positive.

• 20 <= BaFa01 < 150: Evidence against H1 is strong.

• 150 <= BaFa01: Evidence against H1 is very strong.

Value

A dataframe with

x Number of successes

BaFa01 Bayesian Factor

Page 139: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

hypotestBAF5 139

References

[1] 2006 Ghosh M, Delampady M and Samanta T. An introduction to Bayesian analysis: Theoryand Methods. Springer, New York

[2] 2014 Sakthivel S, Subbiah M and Ramakrishnan R Default prior approach for Bayesian testingof hypotheses involving single binomial proportion International Journal of Statistics and Analysis,4 (2), 139 - 153

See Also

Other Hypothesis testing: hypotestBAF1x, hypotestBAF1, hypotestBAF2x, hypotestBAF2, hypotestBAF3x,hypotestBAF3, hypotestBAF4, hypotestBAF5x, hypotestBAF5, hypotestBAF6x, hypotestBAF6

Examples

x=682; n=925; th0=0.75;a0=0.5; b0=0.5; a1=3; b1=3hypotestBAF4x(x,n,th0,a0,b0,a1,b1)

hypotestBAF5 Bayesain Hypothesis testing : Hypothesis 5: Theta >= Theta0 VsTheta < Theta0

Description

Bayesain Hypothesis testing : Hypothesis 5: Theta >= Theta0 Vs Theta < Theta0

Usage

hypotestBAF5(n, th0, a0, b0, a1, b1)

Arguments

n - Number of trials from data

th0 - Hypothetical parameter for H0

a0 - Priors for hypothesis H0

b0 - Priors for hypothesis H0

a1 - Priors for hypothesis H1

b1 - Priors for hypothesis H1

Details

Computes Bayes factor under Beta-Binomial model for the model: p >= p0 Vs p < p0 from thegiven number of trials n and for all number of successes x = 0, 1, 2......n We use the followingguideline for reporting the results:

• 1/3 <= BaFa01 < 1: Evidence against H0 is not worth more than a bare mention.

• 1/20 <= BaFa01 < 1/3: Evidence against H0 is positive.

Page 140: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

140 hypotestBAF5x

• 1/150 <= BaFa01 < 1/20: Evidence against H0 is strong.

• BaFa10 < 1/150: Evidence against H0 is very strong.

• 1 <= BaFa01 < 3: Evidence against H1 is not worth more than a bare mention.

• 3 <= BaFa01 < 20: Evidence against H1 is positive.

• 20 <= BaFa01 < 150: Evidence against H1 is strong.

• 150 <= BaFa01: Evidence against H1 is very strong.

Value

A dataframe with

x Number of successes

BaFa01 Bayesian Factor

References

[1] 2006 Ghosh M, Delampady M and Samanta T. An introduction to Bayesian analysis: Theoryand Methods. Springer, New York

[2] 2014 Sakthivel S, Subbiah M and Ramakrishnan R Default prior approach for Bayesian testingof hypotheses involving single binomial proportion International Journal of Statistics and Analysis,4 (2), 139 - 153

See Also

Other Hypothesis testing: hypotestBAF1x, hypotestBAF1, hypotestBAF2x, hypotestBAF2, hypotestBAF3x,hypotestBAF3, hypotestBAF4x, hypotestBAF4, hypotestBAF5x, hypotestBAF6x, hypotestBAF6

Examples

n=10; th0=0.1; a0=0.5; b0= 0.5;a1=1; b1=1hypotestBAF5(n,th0,a0,b0,a1,b1)

hypotestBAF5x Bayesain Hypothesis testing given x: Hypothesis 5: Theta >= Theta0Vs Theta < Theta0

Description

Bayesain Hypothesis testing given x: Hypothesis 5: Theta >= Theta0 Vs Theta < Theta0

Usage

hypotestBAF5x(x, n, th0, a0, b0, a1, b1)

Page 141: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

hypotestBAF5x 141

Arguments

x - Number of success

n - Number of trials from data

th0 - Hypothetical parameter for H0

a0 - Priors for hypothesis H0

b0 - Priors for hypothesis H0

a1 - Priors for hypothesis H1

b1 - Priors for hypothesis H1

Details

Computes Bayes factor under Beta-Binomial model for the model: p = p0 Vs p 6= p0 from thegiven number of trials n and and for given number of successes x = 0, 1, 2......n We use the follow-ing guideline for reporting the results:

• 1/3 <= BaFa01 < 1: Evidence against H0 is not worth more than a bare mention.

• 1/20 <= BaFa01 < 1/3: Evidence against H0 is positive.

• 1/150 <= BaFa01 < 1/20: Evidence against H0 is strong.

• BaFa10 < 1/150: Evidence against H0 is very strong.

• 1 <= BaFa01 < 3: Evidence against H1 is not worth more than a bare mention.

• 3 <= BaFa01 < 20: Evidence against H1 is positive.

• 20 <= BaFa01 < 150: Evidence against H1 is strong.

• 150 <= BaFa01: Evidence against H1 is very strong.

Value

A dataframe with

x Number of successes

BaFa01 Bayesian Factor

References

[1] 2006 Ghosh M, Delampady M and Samanta T. An introduction to Bayesian analysis: Theoryand Methods. Springer, New York

[2] 2014 Sakthivel S, Subbiah M and Ramakrishnan R Default prior approach for Bayesian testingof hypotheses involving single binomial proportion International Journal of Statistics and Analysis,4 (2), 139 - 153

See Also

Other Hypothesis testing: hypotestBAF1x, hypotestBAF1, hypotestBAF2x, hypotestBAF2, hypotestBAF3x,hypotestBAF3, hypotestBAF4x, hypotestBAF4, hypotestBAF5, hypotestBAF6x, hypotestBAF6

Page 142: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

142 hypotestBAF6

Examples

x=682; n=925; th0=0.75; a0=0.5; b0= 0.5;a1=1; b1=1hypotestBAF5x(x,n,th0,a0,b0,a1,b1)

hypotestBAF6 Bayesain Hypothesis testing : Hypothesis 6: Theta < Theta1 Vs Theta> Theta2

Description

Bayesain Hypothesis testing : Hypothesis 6: Theta < Theta1 Vs Theta > Theta2

Usage

hypotestBAF6(n, th1, a1, b1, th2, a2, b2)

Arguments

n - Number of trials from data

th1 - Hypothetical parameter for H1

a1 - Priors for hypothesis H1

b1 - Priors for hypothesis H1

th2 - Hypothetical parameter for H2

a2 - Priors for hypothesis H2

b2 - Priors for hypothesis H2

Details

Computes Bayes factor under Beta-Binomial model for the model: p < p1 Vs p > p2 from thegiven number of trials n and for all number of successes x = 0, 1, 2......n We use the followingguideline for reporting the results:

• 1/3 <= BaFa01 < 1: Evidence against H0 is not worth more than a bare mention.

• 1/20 <= BaFa01 < 1/3: Evidence against H0 is positive.

• 1/150 <= BaFa01 < 1/20: Evidence against H0 is strong.

• BaFa10 < 1/150: Evidence against H0 is very strong.

• 1 <= BaFa01 < 3: Evidence against H1 is not worth more than a bare mention.

• 3 <= BaFa01 < 20: Evidence against H1 is positive.

• 20 <= BaFa01 < 150: Evidence against H1 is strong.

• 150 <= BaFa01: Evidence against H1 is very strong.

Page 143: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

hypotestBAF6x 143

Value

A dataframe with

x Number of successes

BaFa01 Bayesian Factor

References

[1] 2006 Ghosh M, Delampady M and Samanta T. An introduction to Bayesian analysis: Theoryand Methods. Springer, New York

[2] 2014 Sakthivel S, Subbiah M and Ramakrishnan R Default prior approach for Bayesian testingof hypotheses involving single binomial proportion International Journal of Statistics and Analysis,4 (2), 139 - 153

See Also

Other Hypothesis testing: hypotestBAF1x, hypotestBAF1, hypotestBAF2x, hypotestBAF2, hypotestBAF3x,hypotestBAF3, hypotestBAF4x, hypotestBAF4, hypotestBAF5x, hypotestBAF5, hypotestBAF6x

Examples

n=10;th1=0.1; a1=1; b1=1; th2=0.9; a2=0.5; b2=0.5hypotestBAF6(n,th1,a1,b1,th2,a2,b2)

hypotestBAF6x Bayesain Hypothesis testing given x: Hypothesis 6: Theta < Theta1Vs Theta > Theta2

Description

Bayesain Hypothesis testing given x: Hypothesis 6: Theta < Theta1 Vs Theta > Theta2

Usage

hypotestBAF6x(x, n, th1, a1, b1, th2, a2, b2)

Arguments

x - Number of success

n - Number of trials from data

th1 - Hypothetical parameter for H1

a1 - Priors for hypothesis H1

b1 - Priors for hypothesis H1

th2 - Hypothetical parameter for H2

a2 - Priors for hypothesis H2

b2 - Priors for hypothesis H2

Page 144: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

144 hypotestBAF6x

Details

Computes Bayes factor under Beta-Binomial model for the model: p < p1 Vs p > p2 from thegiven number of trials n and and for given number of successes x = 0, 1, 2......n We use the follow-ing guideline for reporting the results:

• 1/3 <= BaFa01 < 1: Evidence against H0 is not worth more than a bare mention.

• 1/20 <= BaFa01 < 1/3: Evidence against H0 is positive.

• 1/150 <= BaFa01 < 1/20: Evidence against H0 is strong.

• BaFa10 < 1/150: Evidence against H0 is very strong.

• 1 <= BaFa01 < 3: Evidence against H1 is not worth more than a bare mention.

• 3 <= BaFa01 < 20: Evidence against H1 is positive.

• 20 <= BaFa01 < 150: Evidence against H1 is strong.

• 150 <= BaFa01: Evidence against H1 is very strong.

Value

A dataframe with

x Number of successes

BaFa01 Bayesian Factor

References

[1] 2006 Ghosh M, Delampady M and Samanta T. An introduction to Bayesian analysis: Theoryand Methods. Springer, New York

[2] 2014 Sakthivel S, Subbiah M and Ramakrishnan R Default prior approach for Bayesian testingof hypotheses involving single binomial proportion International Journal of Statistics and Analysis,4 (2), 139 - 153

See Also

Other Hypothesis testing: hypotestBAF1x, hypotestBAF1, hypotestBAF2x, hypotestBAF2, hypotestBAF3x,hypotestBAF3, hypotestBAF4x, hypotestBAF4, hypotestBAF5x, hypotestBAF5, hypotestBAF6

Examples

x=682; n=925; th1=0.5; a1=1; b1=1; th2=0.9; a2=0.5; b2=0.5hypotestBAF6x(x,n,th1,a1,b1,th2,a2,b2)

Page 145: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

lengthAAll 145

lengthAAll Expected Length summary calculation using 6 adjusted methods(Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine)

Description

Expected Length summary calculation using 6 adjusted methods (Wald, Wald-T, Likelihood, Score,Logit-Wald, ArcSine)

Usage

lengthAAll(n, alp, h, a, b)

Arguments

n - Number of trialsalp - Alpha value (significance level required)h - Adding factora - Beta parameters for hypo "p"b - Beta parameters for hypo "p"

Details

The sum of length of 6 adjusted methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine)for n given alp, a, b

Value

A dataframe with

sumLen The sum of the expected lengthexplMean The mean of the expected lengthexplSD The Standard Deviation of the expected lengthexplMax The max of the expected lengthexplLL The Lower limit of the expected length calculated using mean - SDexplUL The Upper limit of the expected length calculated using mean + SDmethod Name of the method

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

Page 146: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

146 lengthAAS

See Also

Other Expected length of adjusted methods: PlotexplAAS, PlotexplAAll, PlotexplALR, PlotexplALT,PlotexplASC, PlotexplATW, PlotexplAWD, PlotlengthAAS, PlotlengthAAll, PlotlengthALR,PlotlengthALT, PlotlengthASC, PlotlengthATW, PlotlengthAWD, lengthAAS, lengthALR, lengthALT,lengthASC, lengthATW, lengthAWD

Examples

n= 10; alp=0.05; h=2;a=1;b=1;lengthAAll(n,alp,h,a,b)

lengthAAS Expected length and sum of length of Adjusted ArcSine method

Description

Expected length and sum of length of Adjusted ArcSine method

Usage

lengthAAS(n, alp, h, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Evaluation of adjusted Wald-type interval for the arcsine transformation of the parameter p usingsum of length of the n+ 1 intervals

Value

A dataframe with

sumLen The sum of the expected length

explMean The mean of the expected length

explSD The Standard Deviation of the expected length

explMax The max of the expected length

explLL The Lower limit of the expected length calculated using mean - SD

explUL The Upper limit of the expected length calculated using mean + SD

Page 147: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

lengthAll 147

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

Other Expected length of adjusted methods: PlotexplAAS, PlotexplAAll, PlotexplALR, PlotexplALT,PlotexplASC, PlotexplATW, PlotexplAWD, PlotlengthAAS, PlotlengthAAll, PlotlengthALR,PlotlengthALT, PlotlengthASC, PlotlengthATW, PlotlengthAWD, lengthAAll, lengthALR, lengthALT,lengthASC, lengthATW, lengthAWD

Examples

n= 10; alp=0.05; h=2;a=1;b=1;lengthAAS(n,alp,h,a,b)

lengthAll Expected Length summary calculation using 6 base methods (Wald,Wald-T, Likelihood, Score, Logit-Wald, ArcSine)

Description

Expected Length summary calculation using 6 base methods (Wald, Wald-T, Likelihood, Score,Logit-Wald, ArcSine)

Usage

lengthAll(n, alp, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The sum of length for 6 base methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine) forn given alpha alp and Beta parameters a, b

Page 148: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

148 lengthAll

Value

A dataframe with

sumLen The sum of the expected length

explMean The mean of the expected length

explSD The Standard Deviation of the expected length

explMax The max of the expected length

explLL The Lower limit of the expected length calculated using mean - SD

explUL The Upper limit of the expected length calculated using mean + SD

method The name of the method

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Expected length of base methods: PlotexplAS, PlotexplAll, PlotexplBA, PlotexplEX,PlotexplLR, PlotexplLT, PlotexplSC, PlotexplTW, PlotexplWD, PlotlengthAS, PlotlengthAll,PlotlengthBA, PlotlengthEX, PlotlengthLR, PlotlengthLT, PlotlengthSC, PlotlengthTW,PlotlengthWD, lengthAS, lengthBA, lengthEX, lengthLR, lengthLT, lengthSC, lengthTW, lengthWD

Examples

## Not run:n=5; alp=0.05;a=1;b=1lengthAll(n,alp,a,b)

## End(Not run)

Page 149: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

lengthALR 149

lengthALR Performs expected length and sum of length of Adjusted Likelihoodmethod Performs expected length and sum of length of Adjusted Like-lihood method

Description

Performs expected length and sum of length of Adjusted Likelihood method Performs expectedlength and sum of length of Adjusted Likelihood method

Usage

lengthALR(n, alp, h, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Evaluation of adjusted Likelihood ratio limits using sum of length of the n+ 1 intervals

Value

A dataframe with

sumLen The sum of the expected length

explMean The mean of the expected length

explSD The Standard Deviation of the expected length

explMax The max of the expected length

explLL The Lower limit of the expected length calculated using mean - SD

explUL The Upper limit of the expected length calculated using mean + SD

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

Page 150: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

150 lengthALT

See Also

Other Expected length of adjusted methods: PlotexplAAS, PlotexplAAll, PlotexplALR, PlotexplALT,PlotexplASC, PlotexplATW, PlotexplAWD, PlotlengthAAS, PlotlengthAAll, PlotlengthALR,PlotlengthALT, PlotlengthASC, PlotlengthATW, PlotlengthAWD, lengthAAS, lengthAAll, lengthALT,lengthASC, lengthATW, lengthAWD

Examples

n= 10; alp=0.05; h=2;a=1;b=1;lengthALR(n,alp,h,a,b)

lengthALT Performs expected length and sum of length of Adjusted Logit Waldmethod

Description

Performs expected length and sum of length of Adjusted Logit Wald method

Usage

lengthALT(n, alp, h, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Evaluation of adjusted Wald-type interval based on the logit transformation of p using sum of lengthof the n+ 1 intervals

Value

A dataframe with

sumLen The sum of the expected length

explMean The mean of the expected length

explSD The Standard Deviation of the expected length

explMax The max of the expected length

explLL The Lower limit of the expected length calculated using mean - SD

explUL The Upper limit of the expected length calculated using mean + SD

Page 151: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

lengthAS 151

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

Other Expected length of adjusted methods: PlotexplAAS, PlotexplAAll, PlotexplALR, PlotexplALT,PlotexplASC, PlotexplATW, PlotexplAWD, PlotlengthAAS, PlotlengthAAll, PlotlengthALR,PlotlengthALT, PlotlengthASC, PlotlengthATW, PlotlengthAWD, lengthAAS, lengthAAll, lengthALR,lengthASC, lengthATW, lengthAWD

Examples

n= 10; alp=0.05; h=2;a=1;b=1;lengthALT(n,alp,h,a,b)

lengthAS Expected length and sum of length of ArcSine method

Description

Expected length and sum of length of ArcSine method

Usage

lengthAS(n, alp, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Evaluation of Wald-type interval for the arcsine transformation of the parameter p using sum oflength of the n+ 1 intervals

Page 152: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

152 lengthAS

Value

A dataframe with

sumLen The sum of the expected length

explMean The mean of the expected length

explSD The Standard Deviation of the expected length

explMax The max of the expected length

explLL The Lower limit of the expected length calculated using mean - SD

explUL The Upper limit of the expected length calculated using mean + SD

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Expected length of base methods: PlotexplAS, PlotexplAll, PlotexplBA, PlotexplEX,PlotexplLR, PlotexplLT, PlotexplSC, PlotexplTW, PlotexplWD, PlotlengthAS, PlotlengthAll,PlotlengthBA, PlotlengthEX, PlotlengthLR, PlotlengthLT, PlotlengthSC, PlotlengthTW,PlotlengthWD, lengthAll, lengthBA, lengthEX, lengthLR, lengthLT, lengthSC, lengthTW,lengthWD

Examples

n=5; alp=0.05;a=1;b=1lengthAS(n,alp,a,b)

Page 153: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

lengthASC 153

lengthASC Performs expected length and sum of length of Adjusted Score method

Description

Performs expected length and sum of length of Adjusted Score method

Usage

lengthASC(n, alp, h, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Evaluation of adjusted score test approach using sum of length of the n+ 1 intervals

Value

A dataframe with

sumLen The sum of the expected length

explMean The mean of the expected length

explSD The Standard Deviation of the expected length

explMax The max of the expected length

explLL The Lower limit of the expected length calculated using mean - SD

explUL The Upper limit of the expected length calculated using mean + SD

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

Page 154: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

154 lengthATW

See Also

Other Expected length of adjusted methods: PlotexplAAS, PlotexplAAll, PlotexplALR, PlotexplALT,PlotexplASC, PlotexplATW, PlotexplAWD, PlotlengthAAS, PlotlengthAAll, PlotlengthALR,PlotlengthALT, PlotlengthASC, PlotlengthATW, PlotlengthAWD, lengthAAS, lengthAAll, lengthALR,lengthALT, lengthATW, lengthAWD

Examples

n= 10; alp=0.05; h=2;a=1;b=1;lengthASC(n,alp,h,a,b)

lengthATW Performs expected length and sum of length of Adjusted Wald-Tmethod

Description

Performs expected length and sum of length of Adjusted Wald-T method

Usage

lengthATW(n, alp, h, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Evaluation of approximate and adjusted method based on a t_approximation of the standardizedpoint estimator using sum of length of the n+ 1 intervals

Value

A dataframe with

sumLen The sum of the expected length

explMean The mean of the expected length

explSD The Standard Deviation of the expected length

explMax The max of the expected length

explLL The Lower limit of the expected length calculated using mean - SD

explUL The Upper limit of the expected length calculated using mean + SD

Page 155: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

lengthAWD 155

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

Other Expected length of adjusted methods: PlotexplAAS, PlotexplAAll, PlotexplALR, PlotexplALT,PlotexplASC, PlotexplATW, PlotexplAWD, PlotlengthAAS, PlotlengthAAll, PlotlengthALR,PlotlengthALT, PlotlengthASC, PlotlengthATW, PlotlengthAWD, lengthAAS, lengthAAll, lengthALR,lengthALT, lengthASC, lengthAWD

Examples

n= 10; alp=0.05; h=2;a=1;b=1;lengthATW(n,alp,h,a,b)

lengthAWD Performs expected length and sum of length of Adjusted Wald method

Description

Performs expected length and sum of length of Adjusted Wald method

Usage

lengthAWD(n, alp, h, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Evaluation of adjusted Wald-type interval using sum of length of the n+ 1 intervals

Page 156: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

156 lengthBA

Value

A dataframe with

sumLen The sum of the expected length

explMean The mean of the expected length

explSD The Standard Deviation of the expected length

explMax The max of the expected length

explLL The Lower limit of the expected length calculated using mean - SD

explUL The Upper limit of the expected length calculated using mean + SD

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

Other Expected length of adjusted methods: PlotexplAAS, PlotexplAAll, PlotexplALR, PlotexplALT,PlotexplASC, PlotexplATW, PlotexplAWD, PlotlengthAAS, PlotlengthAAll, PlotlengthALR,PlotlengthALT, PlotlengthASC, PlotlengthATW, PlotlengthAWD, lengthAAS, lengthAAll, lengthALR,lengthALT, lengthASC, lengthATW

Examples

n= 10; alp=0.05; h=2;a=1;b=1;lengthAWD(n,alp,h,a,b)

lengthBA Expected length and sum of length of Bayesian method

Description

Expected length and sum of length of Bayesian method

Usage

lengthBA(n, alp, a, b, a1, a2)

Page 157: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

lengthBA 157

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

a1 - Beta Prior Parameters for Bayesian estimation

a2 - Beta Prior Parameters for Bayesian estimation

Details

Evaluation of Bayesian Highest Probability Density (HPD) and two tailed intervals using sum oflength of the n + 1 intervals for the Beta - Binomial conjugate prior model for the probability ofsuccess p

Value

A dataframe with

sumLen The sum of the expected length

explMean The mean of the expected length

explSD The Standard Deviation of the expected length

explMax The max of the expected length

explLL The Lower limit of the expected length calculated using mean - SD

explUL The Upper limit of the expected length calculated using mean + SD

method The method used - Quantile and HPD

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

Page 158: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

158 lengthCAll

See Also

Other Expected length of base methods: PlotexplAS, PlotexplAll, PlotexplBA, PlotexplEX,PlotexplLR, PlotexplLT, PlotexplSC, PlotexplTW, PlotexplWD, PlotlengthAS, PlotlengthAll,PlotlengthBA, PlotlengthEX, PlotlengthLR, PlotlengthLT, PlotlengthSC, PlotlengthTW,PlotlengthWD, lengthAS, lengthAll, lengthEX, lengthLR, lengthLT, lengthSC, lengthTW,lengthWD

Examples

n=5; alp=0.05;a=1;b=1;a1=1;a2=1lengthBA(n,alp,a,b,a1,a2)

lengthCAll Expected Length summary calculation using 5 continuity correctedmethods (Wald, Wald-T, Score, Logit-Wald, ArcSine)

Description

Expected Length summary calculation using 5 continuity corrected methods (Wald, Wald-T, Score,Logit-Wald, ArcSine)

Usage

lengthCAll(n, alp, c, a, b)

Arguments

n - Number of trialsalp - Alpha value (significance level required)c - Continuity correctiona - Beta parameters for hypo "p"b - Beta parameters for hypo "p"

Details

The sum of length of 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald, ArcSine)of n given alp, a, b

Value

A dataframe with

sumLen The sum of the expected lengthexplMean The mean of the expected lengthexplSD The Standard Deviation of the expected lengthexplMax The max of the expected lengthexplLL The Lower limit of the expected length calculated using mean - SDexplUL The Upper limit of the expected length calculated using mean + SD

Page 159: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

lengthCAS 159

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

Other Expected length of continuity corrected methods: PlotexplCAS, PlotexplCAll, PlotexplCLT,PlotexplCSC, PlotexplCTW, PlotexplCWD, PlotlengthCAS, PlotlengthCAll, PlotlengthCLT,PlotlengthCSC, PlotlengthCTW, PlotlengthCWD, lengthCAS, lengthCLT, lengthCSC, lengthCTW,lengthCWD

Examples

## Not run:n= 10; alp=0.05; c=1/(2*n);a=1;b=1;lengthCAll(n,alp,c,a,b)

## End(Not run)

lengthCAS Expected Length summary of continuity corrected ArcSine method

Description

Expected Length summary of continuity corrected ArcSine method

Usage

lengthCAS(n, alp, c, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Evaluation of continuity corrected Wald-type interval for the arcsine transformation of the parame-ter p using sum of length of the n+ 1 intervals

Page 160: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

160 lengthCLT

Value

A dataframe with

sumLen The sum of the expected length

explMean The mean of the expected length

explSD The Standard Deviation of the expected length

explMax The max of the expected length

explLL The Lower limit of the expected length calculated using mean - SD

explUL The Upper limit of the expected length calculated using mean + SD

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

Other Expected length of continuity corrected methods: PlotexplCAS, PlotexplCAll, PlotexplCLT,PlotexplCSC, PlotexplCTW, PlotexplCWD, PlotlengthCAS, PlotlengthCAll, PlotlengthCLT,PlotlengthCSC, PlotlengthCTW, PlotlengthCWD, lengthCAll, lengthCLT, lengthCSC, lengthCTW,lengthCWD

Examples

n= 10; alp=0.05; c=1/(2*n);a=1;b=1;lengthCAS(n,alp,c,a,b)

lengthCLT Expected Length summary of continuity corrected Logit Wald method

Description

Expected Length summary of continuity corrected Logit Wald method

Usage

lengthCLT(n, alp, c, a, b)

Page 161: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

lengthCLT 161

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Evaluation of continuity corrected Wald-type interval based on the logit transformation of p usingsum of length of the n+ 1 intervals

Value

A dataframe with

sumLen The sum of the expected length

explMean The mean of the expected length

explSD The Standard Deviation of the expected length

explMax The max of the expected length

explLL The Lower limit of the expected length calculated using mean - SD

explUL The Upper limit of the expected length calculated using mean + SD

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

Other Expected length of continuity corrected methods: PlotexplCAS, PlotexplCAll, PlotexplCLT,PlotexplCSC, PlotexplCTW, PlotexplCWD, PlotlengthCAS, PlotlengthCAll, PlotlengthCLT,PlotlengthCSC, PlotlengthCTW, PlotlengthCWD, lengthCAS, lengthCAll, lengthCSC, lengthCTW,lengthCWD

Examples

n= 10; alp=0.05; c=1/(2*n);a=1;b=1;lengthCLT(n,alp,c,a,b)

Page 162: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

162 lengthCSC

lengthCSC Expected Length summary of continuity corrected Score method

Description

Expected Length summary of continuity corrected Score method

Usage

lengthCSC(n, alp, c, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Evaluation of continuity corrected score test approach using sum of length of the n+ 1 intervals

Value

A dataframe with

sumLen The sum of the expected length

explMean The mean of the expected length

explSD The Standard Deviation of the expected length

explMax The max of the expected length

explLL The Lower limit of the expected length calculated using mean - SD

explUL The Upper limit of the expected length calculated using mean + SD

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

Page 163: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

lengthCTW 163

See Also

Other Expected length of continuity corrected methods: PlotexplCAS, PlotexplCAll, PlotexplCLT,PlotexplCSC, PlotexplCTW, PlotexplCWD, PlotlengthCAS, PlotlengthCAll, PlotlengthCLT,PlotlengthCSC, PlotlengthCTW, PlotlengthCWD, lengthCAS, lengthCAll, lengthCLT, lengthCTW,lengthCWD

Examples

n= 10; alp=0.05; c=1/(2*n);a=1;b=1;lengthCSC(n,alp,c,a,b)

lengthCTW Expected Length summary of continuity corrected Wald-T method

Description

Expected Length summary of continuity corrected Wald-T method

Usage

lengthCTW(n, alp, c, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Evaluation of approximate and continuity corrected method based on a t_approximation of thestandardized point estimator using sum of length of the n+ 1 intervals

Value

A dataframe with

sumLen The sum of the expected length

explMean The mean of the expected length

explSD The Standard Deviation of the expected length

explMax The max of the expected length

explLL The Lower limit of the expected length calculated using mean - SD

explUL The Upper limit of the expected length calculated using mean + SD

Page 164: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

164 lengthCWD

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

Other Expected length of continuity corrected methods: PlotexplCAS, PlotexplCAll, PlotexplCLT,PlotexplCSC, PlotexplCTW, PlotexplCWD, PlotlengthCAS, PlotlengthCAll, PlotlengthCLT,PlotlengthCSC, PlotlengthCTW, PlotlengthCWD, lengthCAS, lengthCAll, lengthCLT, lengthCSC,lengthCWD

Examples

n= 10; alp=0.05; c=1/(2*n);a=1;b=1;lengthCTW(n,alp,c,a,b)

lengthCWD Expected Length summary of continuity corrected Wald method

Description

Expected Length summary of continuity corrected Wald method

Usage

lengthCWD(n, alp, c, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Evaluation of Wald-type interval with continuity correction using sum of length of the n+1 intervals

Page 165: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

lengthEX 165

Value

A dataframe with

sumLen The sum of the expected length

explMean The mean of the expected length

explSD The Standard Deviation of the expected length

explMax The max of the expected length

explLL The Lower limit of the expected length calculated using mean - SD

explUL The Upper limit of the expected length calculated using mean + SD

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

See Also

Other Expected length of continuity corrected methods: PlotexplCAS, PlotexplCAll, PlotexplCLT,PlotexplCSC, PlotexplCTW, PlotexplCWD, PlotlengthCAS, PlotlengthCAll, PlotlengthCLT,PlotlengthCSC, PlotlengthCTW, PlotlengthCWD, lengthCAS, lengthCAll, lengthCLT, lengthCSC,lengthCTW

Examples

n= 10; alp=0.05; c=1/(2*n);a=1;b=1;lengthCWD(n,alp,c,a,b)

lengthEX Expected length and sum of length of Exact method

Description

Expected length and sum of length of Exact method

Usage

lengthEX(n, alp, e, a, b)

Page 166: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

166 lengthEX

Arguments

n - Number of trials

alp - Alpha value (significance level required)

e - Exact method indicator in [0, 1] 1: Clopper Pearson, 0.5: Mid P The input canalso be a range of values between 0 and 1.

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Evaluation of Confidence interval for p based on inverting equal-tailed binomial tests with nullhypothesis H0 : p = p0 using sum of length of the n+ 1 intervals.

Value

A dataframe with

sumLen The sum of the expected length

explMean The mean of the expected length

explSD The Standard Deviation of the expected length

explMax The max of the expected length

explLL The Lower limit of the expected length calculated using mean - SD

explUL The Upper limit of the expected length calculated using mean + SD

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

Page 167: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

lengthGEN 167

See Also

Other Expected length of base methods: PlotexplAS, PlotexplAll, PlotexplBA, PlotexplEX,PlotexplLR, PlotexplLT, PlotexplSC, PlotexplTW, PlotexplWD, PlotlengthAS, PlotlengthAll,PlotlengthBA, PlotlengthEX, PlotlengthLR, PlotlengthLT, PlotlengthSC, PlotlengthTW,PlotlengthWD, lengthAS, lengthAll, lengthBA, lengthLR, lengthLT, lengthSC, lengthTW,lengthWD

Examples

## Not run:n=5; alp=0.05;e=0.5;a=1;b=1lengthEX(n,alp,e,a,b)n=5; alp=0.05;e=1;a=1;b=1 #Clopper-PearsonlengthEX(n,alp,e,a,b)n=5; alp=0.05;e=c(0.1,0.5,0.95,1);a=1;b=1 #Range including Mid-p and Clopper-PearsonlengthEX(n,alp,e,a,b)

## End(Not run)

lengthGEN Calculates the sum of lengths for a specific LL and UL

Description

Calculates the sum of lengths for a specific LL and UL

Usage

lengthGEN(n, LL, UL, hp)

Arguments

n - Number of trials

LL - Lower limit

UL - Upper limit

hp - Hypothetical "p"

Details

Evaluation of intervals obtained from any method using sum of the lengths for the n+ 1 intervals

Page 168: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

168 lengthLR

Value

A dataframe with

sumLen The sum of the expected length

explMean The mean of the expected length

explSD The Standard Deviation of the expected length

explMax The max of the expected length

explLL The Lower limit of the expected length calculated using mean - SD

explUL The Upper limit of the expected length calculated using mean + SD

See Also

Other Expected length: PlotexplGEN, PlotexplSIM, PlotlengthGEN, PlotlengthSIM, lengthSIM

Examples

n= 5;LL=c(0,0.01,0.0734,0.18237,0.3344,0.5492) #Lower and Upper LimitsUL=c(0.4507,0.6655,0.8176,0.9265,0.9899,1)hp=seq(0,1,by=0.01)lengthGEN(n,LL,UL,hp)

lengthLR Expected length and sum of length of likelihood Ratio method

Description

Expected length and sum of length of likelihood Ratio method

Usage

lengthLR(n, alp, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Evaluation of Likelihood ratio limits using sum of length of the n+ 1 intervals

Page 169: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

lengthLR 169

Value

A dataframe with

sumLen The sum of the expected length

explMean The mean of the expected length

explSD The Standard Deviation of the expected length

explMax The max of the expected length

explLL The Lower limit of the expected length calculated using mean - SD

explUL The Upper limit of the expected length calculated using mean + SD

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Expected length of base methods: PlotexplAS, PlotexplAll, PlotexplBA, PlotexplEX,PlotexplLR, PlotexplLT, PlotexplSC, PlotexplTW, PlotexplWD, PlotlengthAS, PlotlengthAll,PlotlengthBA, PlotlengthEX, PlotlengthLR, PlotlengthLT, PlotlengthSC, PlotlengthTW,PlotlengthWD, lengthAS, lengthAll, lengthBA, lengthEX, lengthLT, lengthSC, lengthTW,lengthWD

Examples

n=5; alp=0.05;a=1;b=1lengthLR(n,alp,a,b)

Page 170: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

170 lengthLT

lengthLT Expected length and sum of length of Logit Wald method

Description

Expected length and sum of length of Logit Wald method

Usage

lengthLT(n, alp, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Evaluation of Wald-type interval based on the logit transformation of p using sum of length of then+ 1 intervals

Value

A dataframe with

sumLen The sum of the expected length

explMean The mean of the expected length

explSD The Standard Deviation of the expected length

explMax The max of the expected length

explLL The Lower limit of the expected length calculated using mean - SD

explUL The Upper limit of the expected length calculated using mean + SD

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

Page 171: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

lengthSC 171

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Expected length of base methods: PlotexplAS, PlotexplAll, PlotexplBA, PlotexplEX,PlotexplLR, PlotexplLT, PlotexplSC, PlotexplTW, PlotexplWD, PlotlengthAS, PlotlengthAll,PlotlengthBA, PlotlengthEX, PlotlengthLR, PlotlengthLT, PlotlengthSC, PlotlengthTW,PlotlengthWD, lengthAS, lengthAll, lengthBA, lengthEX, lengthLR, lengthSC, lengthTW,lengthWD

Examples

n=5; alp=0.05;a=1;b=1lengthLT(n,alp,a,b)

lengthSC Expected length and sum of length of Score method

Description

Expected length and sum of length of Score method

Usage

lengthSC(n, alp, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Evaluation of score test approach using sum of length of the n+ 1 intervals

Page 172: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

172 lengthSC

Value

A dataframe with

sumLen The sum of the expected length

explMean The mean of the expected length

explSD The Standard Deviation of the expected length

explMax The max of the expected length

explLL The Lower limit of the expected length calculated using mean - SD

explUL The Upper limit of the expected length calculated using mean + SD

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Expected length of base methods: PlotexplAS, PlotexplAll, PlotexplBA, PlotexplEX,PlotexplLR, PlotexplLT, PlotexplSC, PlotexplTW, PlotexplWD, PlotlengthAS, PlotlengthAll,PlotlengthBA, PlotlengthEX, PlotlengthLR, PlotlengthLT, PlotlengthSC, PlotlengthTW,PlotlengthWD, lengthAS, lengthAll, lengthBA, lengthEX, lengthLR, lengthLT, lengthTW,lengthWD

Examples

n=5; alp=0.05;a=1;b=1lengthSC(n,alp,a,b)

Page 173: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

lengthSIM 173

lengthSIM Sum of length calculated using simulation method

Description

Sum of length calculated using simulation method

Usage

lengthSIM(n, LL, UL, s, a, b)

Arguments

n - Number of trials

LL - Lower limit

UL - Upper limit

s - Number of Hypothetical "p"

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The calculation of the sum of length for n given lower limit LL and upper limit UL

Value

A dataframe with

sumLen The sum of the expected length

explMean The mean of the expected length

explSD The Standard Deviation of the expected length

explMax The max of the expected length

explLL The Lower limit of the expected length calculated using mean - SD

explUL The Upper limit of the expected length calculated using mean + SD

See Also

Other Expected length: PlotexplGEN, PlotexplSIM, PlotlengthGEN, PlotlengthSIM, lengthGEN

Examples

LL=c(0,0.01,0.0734,0.18237,0.3344,0.5492) #Lower and Upper LimitsUL=c(0.4507,0.6655,0.8176,0.9265,0.9899,1)n= 5; s=5000; a=1; b=1;lengthSIM(n,LL,UL,s,a,b)

Page 174: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

174 lengthTW

lengthTW Expected length and sum of length of Wald-T method

Description

Expected length and sum of length of Wald-T method

Usage

lengthTW(n, alp, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Evaluation of approximate method based on a t_approximation of the standardized point estimatorusing sum of length of the n+ 1 intervals

Value

A dataframe with

sumLen The sum of the expected length

explMean The mean of the expected length

explSD The Standard Deviation of the expected length

explMax The max of the expected length

explLL The Lower limit of the expected length calculated using mean - SD

explUL The Upper limit of the expected length calculated using mean + SD

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

Page 175: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

lengthWD 175

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Expected length of base methods: PlotexplAS, PlotexplAll, PlotexplBA, PlotexplEX,PlotexplLR, PlotexplLT, PlotexplSC, PlotexplTW, PlotexplWD, PlotlengthAS, PlotlengthAll,PlotlengthBA, PlotlengthEX, PlotlengthLR, PlotlengthLT, PlotlengthSC, PlotlengthTW,PlotlengthWD, lengthAS, lengthAll, lengthBA, lengthEX, lengthLR, lengthLT, lengthSC,lengthWD

Examples

n=5; alp=0.05;a=1;b=1lengthTW(n,alp,a,b)

lengthWD Expected length and sum of length of Wald method

Description

Expected length and sum of length of Wald method

Usage

lengthWD(n, alp, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Evaluation of Wald-type intervals using sum of length of the n+ 1 intervals

Page 176: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

176 lengthWD

Value

A dataframe with

sumLen The sum of the expected length

explMean The mean of the expected length

explSD The Standard Deviation of the expected length

explMax The max of the expected length

explLL The Lower limit of the expected length calculated using mean - SD

explUL The Upper limit of the expected length calculated using mean + SD

References

[1] 1993 Vollset SE. Confidence intervals for a binomial proportion. Statistics in Medicine: 12; 809- 824.

[2] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[3] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[4] 2001 Brown LD, Cai TT and DasGupta A. Interval estimation for a binomial proportion. Statis-tical Science: 16; 101 - 133.

[5] 2002 Pan W. Approximate confidence intervals for one proportion and difference of two propor-tions Computational Statistics and Data Analysis 40, 128, 143-157.

[6] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

[7] 2014 Martin Andres, A. and Alvarez Hernandez, M. Two-tailed asymptotic inferences for aproportion. Journal of Applied Statistics, 41, 7, 1516-1529

See Also

Other Expected length of base methods: PlotexplAS, PlotexplAll, PlotexplBA, PlotexplEX,PlotexplLR, PlotexplLT, PlotexplSC, PlotexplTW, PlotexplWD, PlotlengthAS, PlotlengthAll,PlotlengthBA, PlotlengthEX, PlotlengthLR, PlotlengthLT, PlotlengthSC, PlotlengthTW,PlotlengthWD, lengthAS, lengthAll, lengthBA, lengthEX, lengthLR, lengthLT, lengthSC,lengthTW

Examples

n=5; alp=0.05;a=1;b=1lengthWD(n,alp,a,b)

Page 177: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

pCOpBIAAll 177

pCOpBIAAll Performs p-Confidence and p-Bias estimation of 6 adjusted methods(Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine) given addingfactor

Description

Performs p-Confidence and p-Bias estimation of 6 adjusted methods (Wald, Wald-T, Likelihood,Score, Logit-Wald, ArcSine) given adding factor

Usage

pCOpBIAAll(n, alp, h)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

Details

Evaluation of p-Confidence and p-Bias estimation of 6 adjusted methods (Wald, Wald-T, Likeli-hood, Score, Logit-Wald, ArcSine)

Value

A dataframe with

x1 Number of successes (positive samples)

pconf p-Confidence

pbias p-Bias

method Method name

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of adjusted methods: PlotpCOpBIAAS, PlotpCOpBIAAll, PlotpCOpBIALR,PlotpCOpBIALT, PlotpCOpBIASC, PlotpCOpBIATW, PlotpCOpBIAWD, pCOpBIAAS, pCOpBIALR, pCOpBIALT,pCOpBIASC, pCOpBIATW, pCOpBIAWD

Page 178: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

178 pCOpBIAAS

Examples

n=5; alp=0.05;h=2pCOpBIAAll(n,alp,h)

pCOpBIAAS p-Confidence and p-Bias estimation for adjusted ArcSine method

Description

p-Confidence and p-Bias estimation for adjusted ArcSine method

Usage

pCOpBIAAS(n, alp, h)

Arguments

n - Number of trialsalp - Alpha value (significance level required)h - Adding factor

Details

Evaluation of adjusted Wald-type interval for the arcsine transformation of the parameter p usingp-confidence and p-bias for the n+ 1 intervals

Value

A dataframe with

x1 Number of successes (positive samples)pconf p-Confidencepbias p-Bias

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of adjusted methods: PlotpCOpBIAAS, PlotpCOpBIAAll, PlotpCOpBIALR,PlotpCOpBIALT, PlotpCOpBIASC, PlotpCOpBIATW, PlotpCOpBIAWD, pCOpBIAAll, pCOpBIALR, pCOpBIALT,pCOpBIASC, pCOpBIATW, pCOpBIAWD

Examples

n=5; alp=0.05;h=2pCOpBIAAS(n,alp,h)

Page 179: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

pCOpBIAll 179

pCOpBIAll Calculates p-confidence and p-bias for a given n and alpha level for 6base methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine)

Description

Calculates p-confidence and p-bias for a given n and alpha level for 6 base methods (Wald, Wald-T,Likelihood, Score, Logit-Wald, ArcSine)

Usage

pCOpBIAll(n, alp)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Details

Evaluation of p-confidence and p-bias for the n+ 1 intervals using 6 base methods (Wald, Wald-T,Likelihood, Score, Logit-Wald, ArcSine)

Value

A dataframe with

x1 Number of successes (positive samples)

pconf p-Confidence

pbias p-Bias

method Method

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of base methods: PlotpCOpBIAS, PlotpCOpBIAll, PlotpCOpBIBA,PlotpCOpBIEX, PlotpCOpBILR, PlotpCOpBILT, PlotpCOpBISC, PlotpCOpBITW, PlotpCOpBIWD,pCOpBIAS, pCOpBIBA, pCOpBIEX, pCOpBILR, pCOpBILT, pCOpBISC, pCOpBITW, pCOpBIWD

Examples

n=5; alp=0.05pCOpBIAll(n,alp)

Page 180: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

180 pCOpBIALR

pCOpBIALR p-Confidence and p-Bias estimation for adjusted Likelihood method

Description

p-Confidence and p-Bias estimation for adjusted Likelihood method

Usage

pCOpBIALR(n, alp, h)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

Details

Evaluation of adjusted Likelihood ratio limits using p-confidence and p-bias for the n+ 1 intervals

Value

A dataframe with

x1 Number of successes (positive samples)

pconf p-Confidence

pbias p-Bias

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of adjusted methods: PlotpCOpBIAAS, PlotpCOpBIAAll, PlotpCOpBIALR,PlotpCOpBIALT, PlotpCOpBIASC, PlotpCOpBIATW, PlotpCOpBIAWD, pCOpBIAAS, pCOpBIAAll, pCOpBIALT,pCOpBIASC, pCOpBIATW, pCOpBIAWD

Examples

n=5; alp=0.05;h=2pCOpBIALR(n,alp,h)

Page 181: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

pCOpBIALT 181

pCOpBIALT p-Confidence and p-Bias estimation for adjusted Logit-Wald method

Description

p-Confidence and p-Bias estimation for adjusted Logit-Wald method

Usage

pCOpBIALT(n, alp, h)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

Details

Evaluation of adjusted Wald-type interval based on the logit transformation of p using p-confidenceand p-bias for the n+ 1 intervals

Value

A dataframe with

x1 Number of successes (positive samples)

pconf p-Confidence

pbias p-Bias

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of adjusted methods: PlotpCOpBIAAS, PlotpCOpBIAAll, PlotpCOpBIALR,PlotpCOpBIALT, PlotpCOpBIASC, PlotpCOpBIATW, PlotpCOpBIAWD, pCOpBIAAS, pCOpBIAAll, pCOpBIALR,pCOpBIASC, pCOpBIATW, pCOpBIAWD

Examples

n=5; alp=0.05;h=2pCOpBIALT(n,alp,h)

Page 182: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

182 pCOpBIAS

pCOpBIAS p-confidence and p-bias for ArcSine method given n and alpha level

Description

p-confidence and p-bias for ArcSine method given n and alpha level

Usage

pCOpBIAS(n, alp)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Details

Evaluation of Wald-type interval for the arcsine transformation of the parameter p using p-confidenceand p-bias for the n+ 1 intervals

Value

A dataframe with

x1 Number of successes (positive samples)

pconf p-Confidence

pbias p-Bias

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of base methods: PlotpCOpBIAS, PlotpCOpBIAll, PlotpCOpBIBA,PlotpCOpBIEX, PlotpCOpBILR, PlotpCOpBILT, PlotpCOpBISC, PlotpCOpBITW, PlotpCOpBIWD,pCOpBIAll, pCOpBIBA, pCOpBIEX, pCOpBILR, pCOpBILT, pCOpBISC, pCOpBITW, pCOpBIWD

Examples

n=5; alp=0.05pCOpBIAS(n,alp)

Page 183: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

pCOpBIASC 183

pCOpBIASC p-Confidence and p-Bias estimation for adjusted Score method

Description

p-Confidence and p-Bias estimation for adjusted Score method

Usage

pCOpBIASC(n, alp, h)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

Details

Evaluation of adjusted score test approach using p-confidence and p-bias for the n+ 1 intervals

Value

A dataframe with

x1 Number of successes (positive samples)

pconf p-Confidence

pbias p-Bias

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of adjusted methods: PlotpCOpBIAAS, PlotpCOpBIAAll, PlotpCOpBIALR,PlotpCOpBIALT, PlotpCOpBIASC, PlotpCOpBIATW, PlotpCOpBIAWD, pCOpBIAAS, pCOpBIAAll, pCOpBIALR,pCOpBIALT, pCOpBIATW, pCOpBIAWD

Examples

n=5; alp=0.05;h=2pCOpBIASC(n,alp,h)

Page 184: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

184 pCOpBIATW

pCOpBIATW p-Confidence and p-Bias estimation for adjusted Wald-T method

Description

p-Confidence and p-Bias estimation for adjusted Wald-T method

Usage

pCOpBIATW(n, alp, h)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

Details

Evaluation of approximate Wald method based on a t_approximation of the standardized pointestimator using p-confidence and p-bias for the n+ 1 intervals

Value

A dataframe with

x1 Number of successes (positive samples)

pconf p-Confidence

pbias p-Bias

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of adjusted methods: PlotpCOpBIAAS, PlotpCOpBIAAll, PlotpCOpBIALR,PlotpCOpBIALT, PlotpCOpBIASC, PlotpCOpBIATW, PlotpCOpBIAWD, pCOpBIAAS, pCOpBIAAll, pCOpBIALR,pCOpBIALT, pCOpBIASC, pCOpBIAWD

Examples

n=5; alp=0.05;h=2pCOpBIATW(n,alp,h)

Page 185: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

pCOpBIAWD 185

pCOpBIAWD p-Confidence and p-Bias estimation for adjusted Wald method

Description

p-Confidence and p-Bias estimation for adjusted Wald method

Usage

pCOpBIAWD(n, alp, h)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

Details

Evaluation of adjusted Wald-type interval using p-confidence and p-bias for the n+ 1 intervals

Value

A dataframe with

x1 Number of successes (positive samples)

pconf p-Confidence

pbias p-Bias

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of adjusted methods: PlotpCOpBIAAS, PlotpCOpBIAAll, PlotpCOpBIALR,PlotpCOpBIALT, PlotpCOpBIASC, PlotpCOpBIATW, PlotpCOpBIAWD, pCOpBIAAS, pCOpBIAAll, pCOpBIALR,pCOpBIALT, pCOpBIASC, pCOpBIATW

Examples

n=5; alp=0.05;h=2pCOpBIAWD(n,alp,h)

Page 186: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

186 pCOpBIBA

pCOpBIBA p-confidence and p-bias for Bayesian method given n and alpha leveland priors a & b

Description

p-confidence and p-bias for Bayesian method given n and alpha level and priors a & b

Usage

pCOpBIBA(n, alp, a1, a2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a1 - Shape parameter 1 for prior Beta distribution in Bayesian model

a2 - Shape parameter 2 for prior Beta distribution in Bayesian model

Details

Evaluation of Bayesian Highest Probability Density (HPD) and two tailed intervals using p-confidenceand p-bias for the n+ 1 intervals for the Beta - Binomial conjugate prior model for the probabilityof success p

Value

A dataframe with

x1 Number of successes (positive samples)

pconfQ p-Confidence Quantile

pbiasQ p-Bias Quantile

pconfH p-Confidence HPD

pbiasH p-Bias HPD

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of base methods: PlotpCOpBIAS, PlotpCOpBIAll, PlotpCOpBIBA,PlotpCOpBIEX, PlotpCOpBILR, PlotpCOpBILT, PlotpCOpBISC, PlotpCOpBITW, PlotpCOpBIWD,pCOpBIAS, pCOpBIAll, pCOpBIEX, pCOpBILR, pCOpBILT, pCOpBISC, pCOpBITW, pCOpBIWD

Page 187: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

pCOpBICAll 187

Examples

n=5; alp=0.05;a1=1;a2=1pCOpBIBA(n,alp,a1,a2)

pCOpBICAll Performs p-Confidence and p-Bias estimation for 5 continuity cor-rected methods (Wald, Wald-T, Score, Logit-Wald, ArcSine)

Description

Performs p-Confidence and p-Bias estimation for 5 continuity corrected methods (Wald, Wald-T,Score, Logit-Wald, ArcSine)

Usage

pCOpBICAll(n, alp, c)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

Evaluation of p-Confidence and p-Bias estimation of 5 continuity corrected methods (Wald, Wald-T,Score, Logit-Wald, ArcSine)

Value

A dataframe with

x1 Number of successes (positive samples)

pconf p-Confidence

pbias p-Bias

method Method name

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of continuity corrected methods: PlotpCOpBICAS, PlotpCOpBICAll,PlotpCOpBICLT, PlotpCOpBICSC, PlotpCOpBICTW, PlotpCOpBICWD, pCOpBICAS, pCOpBICLT, pCOpBICSC,pCOpBICTW, pCOpBICWD

Page 188: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

188 pCOpBICAS

Examples

n=5; alp=0.05;c=1/(2*n)pCOpBICAll(n,alp,c)

pCOpBICAS p-Confidence and p-Bias estimation for continuity corrected ArcSinemethod

Description

p-Confidence and p-Bias estimation for continuity corrected ArcSine method

Usage

pCOpBICAS(n, alp, c)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

Evaluation of continuity corrected Wald-type interval for the arcsine transformation of the parame-ter p using p-confidence and p-bias for the n+ 1 intervals

Value

A dataframe with

x1 Number of successes (positive samples)

pconf p-Confidence

pbias p-Bias

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of continuity corrected methods: PlotpCOpBICAS, PlotpCOpBICAll,PlotpCOpBICLT, PlotpCOpBICSC, PlotpCOpBICTW, PlotpCOpBICWD, pCOpBICAll, pCOpBICLT, pCOpBICSC,pCOpBICTW, pCOpBICWD

Page 189: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

pCOpBICLT 189

Examples

n=5; alp=0.05;c=1/(2*n)pCOpBICAS(n,alp,c)

pCOpBICLT p-Confidence and p-Bias estimation for continuity corrected LogitWald method

Description

p-Confidence and p-Bias estimation for continuity corrected Logit Wald method

Usage

pCOpBICLT(n, alp, c)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

Evaluation of continuity corrected Wald-type interval based on the logit transformation of p usingp-confidence and p-bias for the n+ 1 intervals

Value

A dataframe with

x1 Number of successes (positive samples)

pconf p-Confidence

pbias p-Bias

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of continuity corrected methods: PlotpCOpBICAS, PlotpCOpBICAll,PlotpCOpBICLT, PlotpCOpBICSC, PlotpCOpBICTW, PlotpCOpBICWD, pCOpBICAS, pCOpBICAll, pCOpBICSC,pCOpBICTW, pCOpBICWD

Page 190: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

190 pCOpBICSC

Examples

n=5; alp=0.05;c=1/(2*n)pCOpBICLT(n,alp,c)

pCOpBICSC p-Confidence and p-Bias estimation for continuity corrected Scoremethod

Description

p-Confidence and p-Bias estimation for continuity corrected Score method

Usage

pCOpBICSC(n, alp, c)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

Evaluation of continuity corrected score test approach using p-confidence and p-bias for the n + 1intervals

Value

A dataframe with

x1 Number of successes (positive samples)

pconf p-Confidence

pbias p-Bias

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of continuity corrected methods: PlotpCOpBICAS, PlotpCOpBICAll,PlotpCOpBICLT, PlotpCOpBICSC, PlotpCOpBICTW, PlotpCOpBICWD, pCOpBICAS, pCOpBICAll, pCOpBICLT,pCOpBICTW, pCOpBICWD

Page 191: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

pCOpBICTW 191

Examples

n=5; alp=0.05;c=1/(2*n)pCOpBICSC(n,alp,c)

pCOpBICTW p-Confidence and p-Bias estimation for continuity corrected Wald-Tmethod

Description

p-Confidence and p-Bias estimation for continuity corrected Wald-T method

Usage

pCOpBICTW(n, alp, c)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

Evaluation of continuity corrected Wald method based on a t_approximation of the standardizedpoint estimator using p-confidence and p-bias for the n+ 1 intervals

Value

A dataframe with

x1 Number of successes (positive samples)

pconf p-Confidence

pbias p-Bias

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of continuity corrected methods: PlotpCOpBICAS, PlotpCOpBICAll,PlotpCOpBICLT, PlotpCOpBICSC, PlotpCOpBICTW, PlotpCOpBICWD, pCOpBICAS, pCOpBICAll, pCOpBICLT,pCOpBICSC, pCOpBICWD

Page 192: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

192 pCOpBICWD

Examples

n=5; alp=0.05;c=1/(2*n)pCOpBICTW(n,alp,c)

pCOpBICWD p-Confidence and p-Bias estimation for continuity corrected Waldmethod

Description

p-Confidence and p-Bias estimation for continuity corrected Wald method

Usage

pCOpBICWD(n, alp, c)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

Evaluation of Wald-type interval with continuity correction using p-confidence and p-bias for then+ 1 intervals

Value

A dataframe with

x1 Number of successes (positive samples)

pconf p-Confidence

pbias p-Bias

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of continuity corrected methods: PlotpCOpBICAS, PlotpCOpBICAll,PlotpCOpBICLT, PlotpCOpBICSC, PlotpCOpBICTW, PlotpCOpBICWD, pCOpBICAS, pCOpBICAll, pCOpBICLT,pCOpBICSC, pCOpBICTW

Page 193: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

pCOpBIEX 193

Examples

n=5; alp=0.05;c=1/(2*n)pCOpBICWD(n,alp,c)

pCOpBIEX p-confidence and p-bias for Exact method given n and alpha level

Description

p-confidence and p-bias for Exact method given n and alpha level

Usage

pCOpBIEX(n, alp, e)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

e - Exact method indicator in [0, 1] 1: Clopper Pearson, 0.5: Mid P. The input canalso be a range of values between 0 and 1.

Details

Evaluation of Confidence interval for p based on inverting equal-tailed binomial tests with nullhypothesis H0 : p = p0 using p-confidence and p-bias for the n+ 1 intervals

Value

A dataframe with

x1 Number of successes (positive samples)

pconf p-Confidence

pbias p-Bias

e - Exact method input

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of base methods: PlotpCOpBIAS, PlotpCOpBIAll, PlotpCOpBIBA,PlotpCOpBIEX, PlotpCOpBILR, PlotpCOpBILT, PlotpCOpBISC, PlotpCOpBITW, PlotpCOpBIWD,pCOpBIAS, pCOpBIAll, pCOpBIBA, pCOpBILR, pCOpBILT, pCOpBISC, pCOpBITW, pCOpBIWD

Page 194: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

194 pCOpBIGEN

Examples

n=5; alp=0.05;e=0.5pCOpBIEX(n,alp,e)n=5; alp=0.05;e=1 #Clopper-PearsonpCOpBIEX(n,alp,e)n=5; alp=0.05;e=c(0.1,0.5,0.95,1) #Range including Mid-p and Clopper-PearsonpCOpBIEX(n,alp,e)

pCOpBIGEN Performs p-Confidence and p-Bias estimation only using n, lower limitand upper limit for general method

Description

Performs p-Confidence and p-Bias estimation only using n, lower limit and upper limit for generalmethod

Usage

pCOpBIGEN(n, LL, UL)

Arguments

n - Number of trialsLL - Lower limitUL - Upper limit

Details

Evaluation of intervals obtained from any method using p-confidence and p-bias for the n + 1intervals

Value

A dataframe with

x1 Number of successes (positive samples)pconf p-Confidencepbias p-Bias

References

[1] 1998 Agresti A and Coull BA. Approximate is better than "Exact" for interval estimation ofbinomial proportions. The American Statistician: 52; 119 - 126.

[2] 1998 Newcombe RG. Two-sided confidence intervals for the single proportion: Comparison ofseven methods. Statistics in Medicine: 17; 857 - 872.

[3] 2008 Pires, A.M., Amado, C. Interval Estimators for a Binomial Proportion: Comparison ofTwenty Methods. REVSTAT - Statistical Journal, 6, 165-197.

Page 195: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

pCOpBILR 195

See Also

Other General methods for p-Confidence and p-Bias: PlotpCOpBIGEN

Examples

LL=c(0,0.01,0.0734,0.18237,0.3344,0.5492) #Lower and Upper LimitsUL=c(0.4507,0.6655,0.8176,0.9265,0.9899,1)n=5;pCOpBIGEN(n,LL,UL)

pCOpBILR p-confidence and p-bias for Likelihood method given n and alpha level

Description

p-confidence and p-bias for Likelihood method given n and alpha level

Usage

pCOpBILR(n, alp)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Details

Evaluation of Likelihood ratio limits using p-confidence and p-bias for the n+ 1 intervals

Value

A dataframe with

x1 Number of successes (positive samples)

pconf p-Confidence

pbias p-Bias

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of base methods: PlotpCOpBIAS, PlotpCOpBIAll, PlotpCOpBIBA,PlotpCOpBIEX, PlotpCOpBILR, PlotpCOpBILT, PlotpCOpBISC, PlotpCOpBITW, PlotpCOpBIWD,pCOpBIAS, pCOpBIAll, pCOpBIBA, pCOpBIEX, pCOpBILT, pCOpBISC, pCOpBITW, pCOpBIWD

Page 196: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

196 pCOpBILT

Examples

n=5; alp=0.05pCOpBILR(n,alp)

pCOpBILT p-confidence and p-bias for Logit Wald method given n and alpha level

Description

p-confidence and p-bias for Logit Wald method given n and alpha level

Usage

pCOpBILT(n, alp)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Details

Evaluation of Wald-type interval based on the logit transformation of p using p-confidence andp-bias for the n+ 1 intervals

Value

A dataframe with

x1 Number of successes (positive samples)

pconf p-Confidencepbias p-Bias

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of base methods: PlotpCOpBIAS, PlotpCOpBIAll, PlotpCOpBIBA,PlotpCOpBIEX, PlotpCOpBILR, PlotpCOpBILT, PlotpCOpBISC, PlotpCOpBITW, PlotpCOpBIWD,pCOpBIAS, pCOpBIAll, pCOpBIBA, pCOpBIEX, pCOpBILR, pCOpBISC, pCOpBITW, pCOpBIWD

Examples

n=5; alp=0.05pCOpBILT(n,alp)

Page 197: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

pCOpBISC 197

pCOpBISC p-confidence and p-bias for Score method given n and alpha level

Description

p-confidence and p-bias for Score method given n and alpha level

Usage

pCOpBISC(n, alp)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Details

Evaluation of score test approach using p-confidence and p-bias for the n+ 1 intervals

Value

A dataframe with

x1 Number of successes (positive samples)

pconf p-Confidence

pbias p-Bias

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of base methods: PlotpCOpBIAS, PlotpCOpBIAll, PlotpCOpBIBA,PlotpCOpBIEX, PlotpCOpBILR, PlotpCOpBILT, PlotpCOpBISC, PlotpCOpBITW, PlotpCOpBIWD,pCOpBIAS, pCOpBIAll, pCOpBIBA, pCOpBIEX, pCOpBILR, pCOpBILT, pCOpBITW, pCOpBIWD

Examples

n=5; alp=0.05pCOpBISC(n,alp)

Page 198: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

198 pCOpBITW

pCOpBITW p-confidence and p-bias for T-Wald method given n and alpha level

Description

p-confidence and p-bias for T-Wald method given n and alpha level

Usage

pCOpBITW(n, alp)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Details

Evaluation of approximate method based on a t_approximation of the standardized point estimatorusing p-confidence and p-bias for the n+ 1 intervals

Value

A dataframe with

x1 Number of successes (positive samples)

pconf p-Confidence

pbias p-Bias

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of base methods: PlotpCOpBIAS, PlotpCOpBIAll, PlotpCOpBIBA,PlotpCOpBIEX, PlotpCOpBILR, PlotpCOpBILT, PlotpCOpBISC, PlotpCOpBITW, PlotpCOpBIWD,pCOpBIAS, pCOpBIAll, pCOpBIBA, pCOpBIEX, pCOpBILR, pCOpBILT, pCOpBISC, pCOpBIWD

Examples

n=5; alp=0.05pCOpBITW(n,alp)

Page 199: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

pCOpBIWD 199

pCOpBIWD p-confidence and p-bias for Wald method given n and alpha level

Description

p-confidence and p-bias for Wald method given n and alpha level

Usage

pCOpBIWD(n, alp)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Details

Evaluation of Wald-type intervals using p-confidence and p-bias for the n+ 1 intervals

Value

A dataframe with

x1 Number of successes (positive samples)

pconf p-Confidence

pbias p-Bias

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of base methods: PlotpCOpBIAS, PlotpCOpBIAll, PlotpCOpBIBA,PlotpCOpBIEX, PlotpCOpBILR, PlotpCOpBILT, PlotpCOpBISC, PlotpCOpBITW, PlotpCOpBIWD,pCOpBIAS, pCOpBIAll, pCOpBIBA, pCOpBIEX, pCOpBILR, pCOpBILT, pCOpBISC, pCOpBITW

Examples

n=5; alp=0.05pCOpBIWD(n,alp)

Page 200: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

200 PlotciAAllg

PlotciAAll Plots the CI estimation of 6 adjusted methods (Wald, Wald-T, Likeli-hood, Score, Logit-Wald, ArcSine)

Description

Plots the CI estimation of 6 adjusted methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, Arc-Sine)

Usage

PlotciAAll(n, alp, h)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

Details

The plots of the Confidence Interval using 6 adjusted methods (Wald, Wald-T, Likelihood, Score,Logit-Wald, ArcSine) for n given alp and h

See Also

Other Adjusted methods of CI estimation: PlotciAAS, PlotciAAllg, PlotciALR, PlotciALT,PlotciASC, PlotciATW, PlotciAWD, ciAAS, ciAAll, ciALR, ciALT, ciASC, ciATW, ciAWD

Examples

n=5; alp=0.05;h=2PlotciAAll(n,alp,h)

PlotciAAllg Plots the CI estimation of 6 adjusted methods (Wald, Wald-T, Likeli-hood, Score, Logit-Wald, ArcSine) grouped by x value

Description

Plots the CI estimation of 6 adjusted methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, Arc-Sine) grouped by x value

Usage

PlotciAAllg(n, alp, h)

Page 201: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotciAAllx 201

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - adjustment

Details

The plot of Confidence Interval of n given alp and h grouped by x for 6 adjusted methods (Wald,Wald-T, Likelihood, Score, Logit-Wald, ArcSine)

See Also

Other Adjusted methods of CI estimation: PlotciAAS, PlotciAAll, PlotciALR, PlotciALT, PlotciASC,PlotciATW, PlotciAWD, ciAAS, ciAAll, ciALR, ciALT, ciASC, ciATW, ciAWD

Examples

n=5; alp=0.05; h=2PlotciAAllg(n,alp,h)

PlotciAAllx Plots the CI estimation of 6 adjusted methods (Wald, Wald-T, Likeli-hood, Score, Logit-Wald, ArcSine)

Description

Plots the CI estimation of 6 adjusted methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, Arc-Sine)

Usage

PlotciAAllx(x, n, alp, h)

Arguments

x - Number of success

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

Details

The plots of confidence intervals of using 6 adjusted methods (Wald, Wald-T, Likelihood, Score,Logit-Wald, ArcSine) for n given alp, x and h

Page 202: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

202 PlotciAAllxg

See Also

Other Adjusted methods of CI estimation given x & n: ciAASx, ciAAllx, ciALRx, ciALTx, ciASCx,ciATWx, ciAWDx

Examples

x=5; n=5; alp=0.05; h=2PlotciAAllx(x,n,alp,h)

PlotciAAllxg Plots the CI estimation of 6 adjusted methods (Wald, Wald-T, Likeli-hood, Score, Logit-Wald, ArcSine) grouped by x value

Description

Plots the CI estimation of 6 adjusted methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, Arc-Sine) grouped by x value

Usage

PlotciAAllxg(x, n, alp, h)

Arguments

x - Number of success

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

Details

The plots of confidence intervals of using 6 adjusted methods (Wald, Wald-T, Likelihood, Score,Logit-Wald, ArcSine) grouped by x for n given alp, x and h

Examples

x=5; n=5; alp=0.5;h=2PlotciAAllxg(x,n,alp,h)

Page 203: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotciAAS 203

PlotciAAS Plot of CI estimation of adjusted ArcSine

Description

Plot of CI estimation of adjusted ArcSine

Usage

PlotciAAS(n, alp, h)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

Details

The plots of the Confidence Interval using adjusted ArcSine method for n given alp and h

See Also

Other Adjusted methods of CI estimation: PlotciAAllg, PlotciAAll, PlotciALR, PlotciALT,PlotciASC, PlotciATW, PlotciAWD, ciAAS, ciAAll, ciALR, ciALT, ciASC, ciATW, ciAWD

Examples

n=5; alp=0.05;h=2PlotciAAS(n,alp,h)

PlotciAll Plots the CI estimation of 6 base methods (Wald, Wald-T, Likelihood,Score, Logit-Wald, ArcSine) methods

Description

Plots the CI estimation of 6 base methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine)methods

Usage

PlotciAll(n, alp)

Page 204: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

204 PlotciAllg

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Details

The plot of Confidence Interval of 6 base methods (Wald, Wald-T, Likelihood, Score, Logit-Wald,ArcSine) for n given alp.

See Also

Other Basic methods of CI estimation: PlotciAS, PlotciAllg, PlotciBA, PlotciEX, PlotciLR,PlotciLT, PlotciSC, PlotciTW, PlotciWD, ciAS, ciAll, ciBA, ciEX, ciLR, ciLT, ciSC, ciTW,ciWD

Examples

n=5; alp=0.05;PlotciAll(n,alp)

PlotciAllg Plots the CI estimation of 6 base methods (Wald, Wald-T, Likelihood,Score, Logit-Wald, ArcSine) grouped by x value

Description

Plots the CI estimation of 6 base methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine)grouped by x value

Usage

PlotciAllg(n, alp)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Details

The plot of Confidence Interval of 6 base methods (Wald, Wald-T, Likelihood, Score, Logit-Wald,ArcSine) for n given alp.

See Also

Other Basic methods of CI estimation: PlotciAS, PlotciAll, PlotciBA, PlotciEX, PlotciLR,PlotciLT, PlotciSC, PlotciTW, PlotciWD, ciAS, ciAll, ciBA, ciEX, ciLR, ciLT, ciSC, ciTW,ciWD

Page 205: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotciAllx 205

Examples

n=5; alp=0.05;PlotciAllg(n,alp)

PlotciAllx Plots the CI estimation of 6 base methods (Wald, Wald-T, Likelihood,Score, Logit-Wald, ArcSine)

Description

Plots the CI estimation of 6 base methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine)

Usage

PlotciAllx(x, n, alp)

Arguments

x - Number of sucess

n - Number of trials

alp - Alpha value (significance level required)

Details

Plots of the Confidence Intervals of 6 base methods (Wald, Wald-T, Likelihood, Score, Logit-Wald,ArcSine) for n given alp and x

See Also

Other Base methods of CI estimation given x & n: PlotciAllxg, PlotciEXx, ciASx, ciAllx,ciBAx, ciEXx, ciLRx, ciLTx, ciSCx, ciTWx, ciWDx

Examples

x=5; n=5; alp=0.05;PlotciAllx(x,n,alp)

Page 206: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

206 PlotciALR

PlotciAllxg Plots the CI estimation of 6 base methods (Wald, Wald-T, Likelihood,Score, Logit-Wald, ArcSine) grouped by x value

Description

Plots the CI estimation of 6 base methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine)grouped by x value

Usage

PlotciAllxg(x, n, alp)

Arguments

x - Number of sucess

n - Number of trials

alp - Alpha value (significance level required)

Details

Plots of the Confidence Interval of 6 base methods (Wald, Wald-T, Likelihood, Score, Logit-Wald,ArcSine) for n given alp and x grouped by x

See Also

Other Base methods of CI estimation given x & n: PlotciAllx, PlotciEXx, ciASx, ciAllx, ciBAx,ciEXx, ciLRx, ciLTx, ciSCx, ciTWx, ciWDx

Examples

x=5; n=5; alp=0.05;PlotciAllxg(x,n,alp)

PlotciALR Plot of CI estimation of adjusted Likelihood Ratio

Description

Plot of CI estimation of adjusted Likelihood Ratio

Usage

PlotciALR(n, alp, h)

Page 207: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotciALT 207

Arguments

n - Number of trialsalp - Alpha value (significance level required)h - Adding factor

Details

The plots of the Confidence Interval using adjusted Likelihood Ratio method for n given alp and h

See Also

Other Adjusted methods of CI estimation: PlotciAAS, PlotciAAllg, PlotciAAll, PlotciALT,PlotciASC, PlotciATW, PlotciAWD, ciAAS, ciAAll, ciALR, ciALT, ciASC, ciATW, ciAWD

Examples

n=5; alp=0.05;h=2PlotciALR(n,alp,h)

PlotciALT Plot of CI estimation of adjusted Logit Wald

Description

Plot of CI estimation of adjusted Logit Wald

Usage

PlotciALT(n, alp, h)

Arguments

n - Number of trialsalp - Alpha value (significance level required)h - Adding factor

Details

The plots of the Confidence Interval using adjusted Logit Wald method for n given alp and h

See Also

Other Adjusted methods of CI estimation: PlotciAAS, PlotciAAllg, PlotciAAll, PlotciALR,PlotciASC, PlotciATW, PlotciAWD, ciAAS, ciAAll, ciALR, ciALT, ciASC, ciATW, ciAWD

Examples

n=5; alp=0.05;h=2PlotciALT(n,alp,h)

Page 208: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

208 PlotciASC

PlotciAS Plots the CI estimation of ArcSine method

Description

Plots the CI estimation of ArcSine method

Usage

PlotciAS(n, alp)

Arguments

n - Number of trialsalp - Alpha value (significance level required)

Details

The plot of Confidence Interval of n given alp using ArcSine method

See Also

Other Basic methods of CI estimation: PlotciAllg, PlotciAll, PlotciBA, PlotciEX, PlotciLR,PlotciLT, PlotciSC, PlotciTW, PlotciWD, ciAS, ciAll, ciBA, ciEX, ciLR, ciLT, ciSC, ciTW,ciWD

Examples

n=5; alp=0.05PlotciAS(n,alp)

PlotciASC Plot of CI estimation of adjusted Score

Description

Plot of CI estimation of adjusted Score

Usage

PlotciASC(n, alp, h)

Arguments

n - Number of trialsalp - Alpha value (significance level required)h - Adding factor

Page 209: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotciATW 209

Details

The plots of the Confidence Interval using adjusted Score method for n given alp and h

See Also

Other Adjusted methods of CI estimation: PlotciAAS, PlotciAAllg, PlotciAAll, PlotciALR,PlotciALT, PlotciATW, PlotciAWD, ciAAS, ciAAll, ciALR, ciALT, ciASC, ciATW, ciAWD

Examples

n=5; alp=0.05;h=2PlotciASC(n,alp,h)

PlotciATW Plot of CI estimation of adjusted Wald-T

Description

Plot of CI estimation of adjusted Wald-T

Usage

PlotciATW(n, alp, h)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

Details

The plots of the Confidence Interval using adjusted Wald-T method for n given alp and h

See Also

Other Adjusted methods of CI estimation: PlotciAAS, PlotciAAllg, PlotciAAll, PlotciALR,PlotciALT, PlotciASC, PlotciAWD, ciAAS, ciAAll, ciALR, ciALT, ciASC, ciATW, ciAWD

Examples

n=5; alp=0.05;h=2PlotciATW(n,alp,h)

Page 210: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

210 PlotciBA

PlotciAWD Plot of CI estimation of adjusted Wald

Description

Plot of CI estimation of adjusted Wald

Usage

PlotciAWD(n, alp, h)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

Details

The plots of the Confidence Interval using adjusted Wald method for n given alp and h

See Also

Other Adjusted methods of CI estimation: PlotciAAS, PlotciAAllg, PlotciAAll, PlotciALR,PlotciALT, PlotciASC, PlotciATW, ciAAS, ciAAll, ciALR, ciALT, ciASC, ciATW, ciAWD

Examples

n=5; alp=0.05;h=2PlotciAWD(n,alp,h)

PlotciBA Plots the CI estimation of Bayesian method

Description

Plots the CI estimation of Bayesian method

Usage

PlotciBA(n, alp, a, b)

Page 211: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotciCAll 211

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Shape parameter 1 for prior Beta distribution in Bayesian model. Can also bea vector of priors.

b - Shape parameter 2 for prior Beta distribution in Bayesian model. Can also bea vector of priors.

Details

The plot of Confidence Interval of n given alp using Bayesian method

See Also

Other Basic methods of CI estimation: PlotciAS, PlotciAllg, PlotciAll, PlotciEX, PlotciLR,PlotciLT, PlotciSC, PlotciTW, PlotciWD, ciAS, ciAll, ciBA, ciEX, ciLR, ciLT, ciSC, ciTW,ciWD

Examples

n=5; alp=0.05; a=0.5;b=0.5;PlotciBA(n,alp,a,b)n=5; alp=0.05; a=c(0.5,2,1,1,2,0.5);b=c(0.5,2,1,1,2,0.5)PlotciBA(n,alp,a,b)

PlotciCAll Plots the CI estimation of 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald, ArcSine) given n, alp and c

Description

Plots the CI estimation of 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald, Arc-Sine) given n, alp and c

Usage

PlotciCAll(n, alp, c)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Page 212: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

212 PlotciCAllg

Details

Plots the Confidence Interval for 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald,ArcSine) for n given alp along with Continuity correction c

See Also

Other Continuity correction methods of CI estimation: PlotciCAS, PlotciCAllg, PlotciCLT,PlotciCSC, PlotciCTW, PlotciCWD, ciCAS, ciCAll, ciCLT, ciCSC, ciCTW, ciCWD

Examples

n=5; alp=0.05;c=1/(2*n)PlotciCAll(n,alp,c)

PlotciCAllg Plots the CI estimation of 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald, ArcSine) grouped by x value

Description

Plots the CI estimation of 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald, Arc-Sine) grouped by x value

Usage

PlotciCAllg(n, alp, c)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

Plots the Confidence Interval for 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald,ArcSine) grouped by x for n given alp along with Continuity correction c

See Also

Other Continuity correction methods of CI estimation: PlotciCAS, PlotciCAll, PlotciCLT, PlotciCSC,PlotciCTW, PlotciCWD, ciCAS, ciCAll, ciCLT, ciCSC, ciCTW, ciCWD

Examples

n=5; alp=0.05; c=1/(2*n)PlotciCAllg(n,alp,c)

Page 213: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotciCAllx 213

PlotciCAllx Plots the CI estimation of 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald, ArcSine) given n, alp and x with continuity cor-rection c

Description

Plots the CI estimation of 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald, Arc-Sine) given n, alp and x with continuity correction c

Usage

PlotciCAllx(x, n, alp, c)

Arguments

x - Number of sucess

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

Plots the Confidence Interval of 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald,ArcSine) for n given alp, x and and c

See Also

Other Continuity correction methods of CI estimation given x and n: PlotciCAllxg, ciCAllx,ciCLTx, ciCSCx, ciCTWx, ciCWDx

Examples

x=5; n=5; alp=0.05;c=1/(2*n)PlotciCAllx(x,n,alp,c)

Page 214: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

214 PlotciCAS

PlotciCAllxg Plots the CI estimation of 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald, ArcSine) given x & n grouped by x value

Description

Plots the CI estimation of 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald, Arc-Sine) given x & n grouped by x value

Usage

PlotciCAllxg(x, n, alp, c)

Arguments

x - Number of sucess

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

Plots he Confidence Interval of 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald,ArcSine) for n given alp, c and x grouped by x

See Also

Other Continuity correction methods of CI estimation given x and n: PlotciCAllx, ciCAllx,ciCLTx, ciCSCx, ciCTWx, ciCWDx

Examples

x=5; n=5; alp=0.05;c=1/(2*n)PlotciCAllxg(x,n,alp,c)

PlotciCAS Plots the CI estimation of continuity corrected ArcSine method givenn, alp and c

Description

Plots the CI estimation of continuity corrected ArcSine method given n, alp and c

Usage

PlotciCAS(n, alp, c)

Page 215: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotciCLT 215

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

Plots the Confidence Interval for continuity corrected ArcSine method for n given alp along withContinuity correction c

See Also

Other Continuity correction methods of CI estimation: PlotciCAllg, PlotciCAll, PlotciCLT,PlotciCSC, PlotciCTW, PlotciCWD, ciCAS, ciCAll, ciCLT, ciCSC, ciCTW, ciCWD

Examples

n=5; alp=0.05;c=1/(2*n)PlotciCAS(n,alp,c)

PlotciCLT Plots the CI estimation of continuity corrected Logit Wald methodgiven n, alp and c

Description

Plots the CI estimation of continuity corrected Logit Wald method given n, alp and c

Usage

PlotciCLT(n, alp, c)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

Plots the Confidence Interval for continuity corrected Logit Wald method for n given alp alongwith Continuity correction c

See Also

Other Continuity correction methods of CI estimation: PlotciCAS, PlotciCAllg, PlotciCAll,PlotciCSC, PlotciCTW, PlotciCWD, ciCAS, ciCAll, ciCLT, ciCSC, ciCTW, ciCWD

Page 216: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

216 PlotciCSC

Examples

n=5; alp=0.05;c=1/(2*n)PlotciCLT(n,alp,c)

PlotciCSC Plots the CI estimation of continuity corrected Score method given n,alp and c

Description

Plots the CI estimation of continuity corrected Score method given n, alp and c

Usage

PlotciCSC(n, alp, c)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

Plots the Confidence Interval for continuity corrected Score method for n given alp along withContinuity correction c

See Also

Other Continuity correction methods of CI estimation: PlotciCAS, PlotciCAllg, PlotciCAll,PlotciCLT, PlotciCTW, PlotciCWD, ciCAS, ciCAll, ciCLT, ciCSC, ciCTW, ciCWD

Examples

n=5; alp=0.05;c=1/(2*n)PlotciCSC(n,alp,c)

Page 217: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotciCTW 217

PlotciCTW Plots the CI estimation of continuity corrected Wald-T method givenn, alp and c

Description

Plots the CI estimation of continuity corrected Wald-T method given n, alp and c

Usage

PlotciCTW(n, alp, c)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

Plots the Confidence Interval for continuity corrected Wald-T method for n given alp along withContinuity correction c

See Also

Other Continuity correction methods of CI estimation: PlotciCAS, PlotciCAllg, PlotciCAll,PlotciCLT, PlotciCSC, PlotciCWD, ciCAS, ciCAll, ciCLT, ciCSC, ciCTW, ciCWD

Examples

n=5; alp=0.05;c=1/(2*n)PlotciCTW(n,alp,c)

PlotciCWD Plots the CI estimation of continuity corrected Wald method given n,alp and c

Description

Plots the CI estimation of continuity corrected Wald method given n, alp and c

Usage

PlotciCWD(n, alp, c)

Page 218: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

218 PlotciEX

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

Plots the Confidence Interval for continuity corrected Wald method for n given alp along withContinuity correction c

See Also

Other Continuity correction methods of CI estimation: PlotciCAS, PlotciCAllg, PlotciCAll,PlotciCLT, PlotciCSC, PlotciCTW, ciCAS, ciCAll, ciCLT, ciCSC, ciCTW, ciCWD

Examples

n=5; alp=0.05;c=1/(2*n)PlotciCWD(n,alp,c)

PlotciEX Plots the CI estimation of exact methods

Description

Plots the CI estimation of exact methods

Usage

PlotciEX(n, alp, e)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

e - Exact method indicator in [0, 1] 1: Clopper Pearson, 0.5: Mid P, The input canalso be a range of values between 0 and 1.

Details

The plot of Confidence Interval of n given alp.

See Also

Other Basic methods of CI estimation: PlotciAS, PlotciAllg, PlotciAll, PlotciBA, PlotciLR,PlotciLT, PlotciSC, PlotciTW, PlotciWD, ciAS, ciAll, ciBA, ciEX, ciLR, ciLT, ciSC, ciTW,ciWD

Page 219: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotciEXx 219

Examples

## Not run:n=5; alp=0.05; e=0.5 #Mid-pPlotciEX(n,alp,e)n=5; alp=0.05;e=1 #Clopper-PearsonPlotciEX(n,alp,e)n=5; alp=0.05;e=c(0.05,0.1,0.5,0.95,1) #Range including Mid-p and Clopper-PearsonPlotciEX(n,alp,e)

## End(Not run)

PlotciEXx Plots the CI estimation of the exact method

Description

Plots the CI estimation of the exact method

Usage

PlotciEXx(x, n, alp, e)

Arguments

x - Number of sucess

n - Number of trials

alp - Alpha value (significance level required)

e - Exact method indicator in [0, 1] 1: Clopper Pearson, 0.5: Mid P

Details

Plot of the Confidence interval for exact method

See Also

Other Base methods of CI estimation given x & n: PlotciAllxg, PlotciAllx, ciASx, ciAllx,ciBAx, ciEXx, ciLRx, ciLTx, ciSCx, ciTWx, ciWDx

Examples

x=5; n=5; alp=0.05;e=0.5PlotciEXx(x,n,alp,e) #Mid-px=5; n=5; alp=0.05;e=1 #Clopper PearsonPlotciEXx(x,n,alp,e)x=5; n=5; alp=0.05;e=c(0.1,0.5,0.95,1) #Range including Mid-p and Clopper-PearsonPlotciEXx(x,n,alp,e)

Page 220: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

220 PlotciLT

PlotciLR Plots the CI estimation of Likelihood Ratio method

Description

Plots the CI estimation of Likelihood Ratio method

Usage

PlotciLR(n, alp)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Details

The plot of Confidence Interval of n given alp using Likelihood Ratio method

See Also

Other Basic methods of CI estimation: PlotciAS, PlotciAllg, PlotciAll, PlotciBA, PlotciEX,PlotciLT, PlotciSC, PlotciTW, PlotciWD, ciAS, ciAll, ciBA, ciEX, ciLR, ciLT, ciSC, ciTW,ciWD

Examples

n=5; alp=0.05PlotciLR(n,alp)

PlotciLT Plots the CI estimation of Logit Wald method

Description

Plots the CI estimation of Logit Wald method

Usage

PlotciLT(n, alp)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Page 221: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotciSC 221

Details

The plot of Confidence Interval of n given alp using Logit Wald method

See Also

Other Basic methods of CI estimation: PlotciAS, PlotciAllg, PlotciAll, PlotciBA, PlotciEX,PlotciLR, PlotciSC, PlotciTW, PlotciWD, ciAS, ciAll, ciBA, ciEX, ciLR, ciLT, ciSC, ciTW,ciWD

Examples

n=5; alp=0.05PlotciLT(n,alp)

PlotciSC Plots the CI estimation of Score method

Description

Plots the CI estimation of Score method

Usage

PlotciSC(n, alp)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Details

The plot of Confidence Interval of n given alp using Score method

See Also

Other Basic methods of CI estimation: PlotciAS, PlotciAllg, PlotciAll, PlotciBA, PlotciEX,PlotciLR, PlotciLT, PlotciTW, PlotciWD, ciAS, ciAll, ciBA, ciEX, ciLR, ciLT, ciSC, ciTW,ciWD

Examples

n=5; alp=0.05PlotciSC(n,alp)

Page 222: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

222 PlotciWD

PlotciTW Plots the CI estimation of Wald-T method

Description

Plots the CI estimation of Wald-T method

Usage

PlotciTW(n, alp)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Details

The plot of Confidence Interval of n given alp using Wald-T method

See Also

Other Basic methods of CI estimation: PlotciAS, PlotciAllg, PlotciAll, PlotciBA, PlotciEX,PlotciLR, PlotciLT, PlotciSC, PlotciWD, ciAS, ciAll, ciBA, ciEX, ciLR, ciLT, ciSC, ciTW,ciWD

Examples

n=5; alp=0.05PlotciTW(n,alp)

PlotciWD Plots the CI estimation of Wald method

Description

Plots the CI estimation of Wald method

Usage

PlotciWD(n, alp)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Page 223: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotcovpAAll 223

Details

The plot of Confidence Interval of n given alp using Wald method

See Also

Other Basic methods of CI estimation: PlotciAS, PlotciAllg, PlotciAll, PlotciBA, PlotciEX,PlotciLR, PlotciLT, PlotciSC, PlotciTW, ciAS, ciAll, ciBA, ciEX, ciLR, ciLT, ciSC, ciTW,ciWD

Examples

n=5; alp=0.05PlotciWD(n,alp)

PlotcovpAAll Plots the Coverage Probability using 6 adjusted methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine)

Description

Plots the Coverage Probability using 6 adjusted methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine)

Usage

PlotcovpAAll(n, alp, h, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

The plots of the Coverage Probability of 6 adjusted methods (Wald, Wald-T, Likelihood, Score,Logit-Wald, ArcSine) for n given alp, h, a, b, t1 and t2 using all the methods

See Also

Other Coverage probability of adjusted methods: PlotcovpAAS, PlotcovpALR, PlotcovpALT, PlotcovpASC,PlotcovpATW, PlotcovpAWD, covpAAS, covpAAll, covpALR, covpALT, covpASC, covpATW, covpAWD

Page 224: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

224 PlotcovpAAS

Examples

## Not run:n= 10; alp=0.05; h=2;a=1;b=1; t1=0.93;t2=0.97PlotcovpAAll(n,alp,h,a,b,t1,t2)

## End(Not run)

PlotcovpAAS Plots the Coverage Probability using adjusted ArcSine method

Description

Plots the Coverage Probability using adjusted ArcSine method

Usage

PlotcovpAAS(n, alp, h, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

The plots of the Coverage Probability of adjusted ArcSine method for n given alp, h, a, b, t1 andt2 using all the methods

See Also

Other Coverage probability of adjusted methods: PlotcovpAAll, PlotcovpALR, PlotcovpALT,PlotcovpASC, PlotcovpATW, PlotcovpAWD, covpAAS, covpAAll, covpALR, covpALT, covpASC,covpATW, covpAWD

Examples

## Not run:n= 10; alp=0.05; h=2;a=1;b=1; t1=0.93;t2=0.97PlotcovpAAS(n,alp,h,a,b,t1,t2)

## End(Not run)

Page 225: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotcovpAll 225

PlotcovpAll Graphs of basic Coverage Probability 6 base methods (Wald, Wald-T,Likelihood, Score, Logit-Wald, ArcSine)

Description

Graphs of basic Coverage Probability 6 base methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine)

Usage

PlotcovpAll(n, alp, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

The graphs of basic Coverage Probability methods

See Also

Other Basic coverage probability methods: PlotcovpAS, PlotcovpBA, PlotcovpEX, PlotcovpLR,PlotcovpLT, PlotcovpSC, PlotcovpTW, PlotcovpWD, covpAS, covpAll, covpBA, covpEX, covpLR,covpLT, covpSC, covpTW, covpWD

Examples

## Not run:n= 10; alp=0.05; a=1; b=1; t1=0.93; t2=0.97PlotcovpAll(n,alp,a,b,t1,t2)

## End(Not run)

Page 226: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

226 PlotcovpALR

PlotcovpALR Plots the Coverage Probability using adjusted Likelihood Ratiomethod

Description

Plots the Coverage Probability using adjusted Likelihood Ratio method

Usage

PlotcovpALR(n, alp, h, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

The plots of the Coverage Probability of adjusted Likelihood Ratio method for n given alp, h, a, b,t1 and t2 using all the methods

See Also

Other Coverage probability of adjusted methods: PlotcovpAAS, PlotcovpAAll, PlotcovpALT,PlotcovpASC, PlotcovpATW, PlotcovpAWD, covpAAS, covpAAll, covpALR, covpALT, covpASC,covpATW, covpAWD

Examples

## Not run:n= 10; alp=0.05; h=2;a=1;b=1; t1=0.93;t2=0.97PlotcovpALR(n,alp,h,a,b,t1,t2)

## End(Not run)

Page 227: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotcovpALT 227

PlotcovpALT Plots the Coverage Probability using adjusted Logistic Wald method

Description

Plots the Coverage Probability using adjusted Logistic Wald method

Usage

PlotcovpALT(n, alp, h, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

The plots of the Coverage Probability of adjusted Logistic Wald method for n given alp, h, a, b, t1and t2 using all the methods

See Also

Other Coverage probability of adjusted methods: PlotcovpAAS, PlotcovpAAll, PlotcovpALR,PlotcovpASC, PlotcovpATW, PlotcovpAWD, covpAAS, covpAAll, covpALR, covpALT, covpASC,covpATW, covpAWD

Examples

## Not run:n= 10; alp=0.05; h=2;a=1;b=1; t1=0.93;t2=0.97PlotcovpALT(n,alp,h,a,b,t1,t2)

## End(Not run)

Page 228: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

228 PlotcovpAS

PlotcovpAS Plots Coverage Probability for base ArcSine method

Description

Plots Coverage Probability for base ArcSine method

Usage

PlotcovpAS(n, alp, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

Plots Coverage Probability for base ArcSine method

See Also

Other Basic coverage probability methods: PlotcovpAll, PlotcovpBA, PlotcovpEX, PlotcovpLR,PlotcovpLT, PlotcovpSC, PlotcovpTW, PlotcovpWD, covpAS, covpAll, covpBA, covpEX, covpLR,covpLT, covpSC, covpTW, covpWD

Examples

## Not run:n= 10; alp=0.05; a=1; b=1; t1=0.93; t2=0.97PlotcovpAS(n,alp,a,b,t1,t2)

## End(Not run)

Page 229: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotcovpASC 229

PlotcovpASC Plots the Coverage Probability using adjusted Score method

Description

Plots the Coverage Probability using adjusted Score method

Usage

PlotcovpASC(n, alp, h, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

The plots of the Coverage Probability of adjusted Score method for n given alp, h, a, b, t1 and t2using all the methods

See Also

Other Coverage probability of adjusted methods: PlotcovpAAS, PlotcovpAAll, PlotcovpALR,PlotcovpALT, PlotcovpATW, PlotcovpAWD, covpAAS, covpAAll, covpALR, covpALT, covpASC,covpATW, covpAWD

Examples

## Not run:n= 10; alp=0.05; h=2;a=1;b=1; t1=0.93;t2=0.97PlotcovpASC(n,alp,h,a,b,t1,t2)

## End(Not run)

Page 230: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

230 PlotcovpATW

PlotcovpATW Plots the Coverage Probability using adjusted Wald-T method

Description

Plots the Coverage Probability using adjusted Wald-T method

Usage

PlotcovpATW(n, alp, h, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

The plots of the Coverage Probability of adjusted Wald-T method for n given alp, h, a, b, t1 andt2 using all the methods

See Also

Other Coverage probability of adjusted methods: PlotcovpAAS, PlotcovpAAll, PlotcovpALR,PlotcovpALT, PlotcovpASC, PlotcovpAWD, covpAAS, covpAAll, covpALR, covpALT, covpASC,covpATW, covpAWD

Examples

## Not run:n= 10; alp=0.05; h=2;a=1;b=1; t1=0.93;t2=0.97PlotcovpATW(n,alp,h,a,b,t1,t2)

## End(Not run)

Page 231: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotcovpAWD 231

PlotcovpAWD Plots the Coverage Probability using adjusted Wald method

Description

Plots the Coverage Probability using adjusted Wald method

Usage

PlotcovpAWD(n, alp, h, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

The plots of the Coverage Probability of adjusted Wald method for n given alp, h, a, b, t1 and t2using all the methods

See Also

Other Coverage probability of adjusted methods: PlotcovpAAS, PlotcovpAAll, PlotcovpALR,PlotcovpALT, PlotcovpASC, PlotcovpATW, covpAAS, covpAAll, covpALR, covpALT, covpASC,covpATW, covpAWD

Examples

## Not run:n= 10; alp=0.05; h=2;a=1;b=1; t1=0.93;t2=0.97PlotcovpAWD(n,alp,h,a,b,t1,t2)

## End(Not run)

Page 232: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

232 PlotcovpBA

PlotcovpBA Graphs of Coverage Probability of the Bayesian method

Description

Graphs of Coverage Probability of the Bayesian method

Usage

PlotcovpBA(n, alp, a, b, t1, t2, a1, a2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

a1 - Beta Prior Parameters for Bayesian estimation

a2 - Beta Prior Parameters for Bayesian estimation

Details

The graphs of Coverage Probability of Bayesian method

See Also

Other Basic coverage probability methods: PlotcovpAS, PlotcovpAll, PlotcovpEX, PlotcovpLR,PlotcovpLT, PlotcovpSC, PlotcovpTW, PlotcovpWD, covpAS, covpAll, covpBA, covpEX, covpLR,covpLT, covpSC, covpTW, covpWD

Examples

## Not run:n= 10; alp=0.05; a=1;b=1; t1=0.93;t2=0.97;a1=1;a2=1PlotcovpBA(n,alp,a,b,t1,t2,a1,a2)

## End(Not run)

Page 233: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotcovpCAll 233

PlotcovpCAll Graphs of Coverage Probability for 5 continuity corrected methods(Wald, Wald-T, Score, Logit-Wald, ArcSine)

Description

Graphs of Coverage Probability for 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald, ArcSine)

Usage

PlotcovpCAll(n, alp, c, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continiuty correction

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

The graphs of the Coverage Probability of 5 continuity corrected methods (Wald, Wald-T, Score,Logit-Wald, ArcSine) for n given alp, h, a, b, t1 and t2

See Also

Other Coverage probability for continuity corrected methods: PlotcovpCAS, PlotcovpCLT, PlotcovpCSC,PlotcovpCTW, PlotcovpCWD, covpCAS, covpCAll, covpCLT, covpCSC, covpCTW, covpCWD

Examples

## Not run:n= 10; alp=0.05; c=1/(2*n);a=1;b=1; t1=0.93;t2=0.97PlotcovpCAll(n,alp,c,a,b,t1,t2)

## End(Not run)

Page 234: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

234 PlotcovpCAS

PlotcovpCAS Graphs of Coverage Probability for continuity corrected ArcSinemethod

Description

Graphs of Coverage Probability for continuity corrected ArcSine method

Usage

PlotcovpCAS(n, alp, c, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continiuty correction

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

The plot of the Coverage Probability of continuity corrected ArcSine method for n given alp, h, a,b, t1 and t2 using all the methods

See Also

Other Coverage probability for continuity corrected methods: PlotcovpCAll, PlotcovpCLT, PlotcovpCSC,PlotcovpCTW, PlotcovpCWD, covpCAS, covpCAll, covpCLT, covpCSC, covpCTW, covpCWD

Examples

## Not run:n= 10; alp=0.05; c=1/(2*n);a=1;b=1; t1=0.93;t2=0.97PlotcovpCAS(n,alp,c,a,b,t1,t2)

## End(Not run)

Page 235: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotcovpCLT 235

PlotcovpCLT Graphs of Coverage Probability for continuity corrected Logistic Waldmethod

Description

Graphs of Coverage Probability for continuity corrected Logistic Wald method

Usage

PlotcovpCLT(n, alp, c, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continiuty correction

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

The plot of the Coverage Probability of continuity corrected Logistic Wald method for n given alp,h, a, b, t1 and t2 using all the methods

See Also

Other Coverage probability for continuity corrected methods: PlotcovpCAS, PlotcovpCAll, PlotcovpCSC,PlotcovpCTW, PlotcovpCWD, covpCAS, covpCAll, covpCLT, covpCSC, covpCTW, covpCWD

Examples

## Not run:n= 10; alp=0.05; c=1/(2*n);a=1;b=1; t1=0.93;t2=0.97PlotcovpCLT(n,alp,c,a,b,t1,t2)

## End(Not run)

Page 236: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

236 PlotcovpCSC

PlotcovpCSC Graphs of Coverage Probability for continuity corrected Score method

Description

Graphs of Coverage Probability for continuity corrected Score method

Usage

PlotcovpCSC(n, alp, c, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continiuty correction

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

The plot of the Coverage Probability of continuity corrected Score method for n given alp, h, a, b,t1 and t2 using all the methods

See Also

Other Coverage probability for continuity corrected methods: PlotcovpCAS, PlotcovpCAll, PlotcovpCLT,PlotcovpCTW, PlotcovpCWD, covpCAS, covpCAll, covpCLT, covpCSC, covpCTW, covpCWD

Examples

## Not run:n= 10; alp=0.05; c=1/(2*n);a=1;b=1; t1=0.93;t2=0.97PlotcovpCSC(n,alp,c,a,b,t1,t2)

## End(Not run)

Page 237: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotcovpCTW 237

PlotcovpCTW Graphs of Coverage Probability for continuity corrected Wald-Tmethod

Description

Graphs of Coverage Probability for continuity corrected Wald-T method

Usage

PlotcovpCTW(n, alp, c, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continiuty correction

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

The plot of the Coverage Probability of continuity corrected Wald-T method for n given alp, h, a,b, t1 and t2 using all the methods

See Also

Other Coverage probability for continuity corrected methods: PlotcovpCAS, PlotcovpCAll, PlotcovpCLT,PlotcovpCSC, PlotcovpCWD, covpCAS, covpCAll, covpCLT, covpCSC, covpCTW, covpCWD

Examples

## Not run:n= 10; alp=0.05; c=1/(2*n);a=1;b=1; t1=0.93;t2=0.97PlotcovpCTW(n,alp,c,a,b,t1,t2)

## End(Not run)

Page 238: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

238 PlotcovpCWD

PlotcovpCWD Graphs of Coverage Probability for continuity corrected Wald method

Description

Graphs of Coverage Probability for continuity corrected Wald method

Usage

PlotcovpCWD(n, alp, c, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continiuty correction

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

The plot of the Coverage Probability of continuity corrected Wald method for n given alp, h, a, b,t1 and t2 using all the methods

See Also

Other Coverage probability for continuity corrected methods: PlotcovpCAS, PlotcovpCAll, PlotcovpCLT,PlotcovpCSC, PlotcovpCTW, covpCAS, covpCAll, covpCLT, covpCSC, covpCTW, covpCWD

Examples

## Not run:n= 10; alp=0.05; c=1/(2*n);a=1;b=1; t1=0.93;t2=0.97PlotcovpCWD(n,alp,c,a,b,t1,t2)

## End(Not run)

Page 239: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotcovpEX 239

PlotcovpEX Graphs of Coverage Probability - exact method

Description

Graphs of Coverage Probability - exact method

Usage

PlotcovpEX(n, alp, e, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

e - Exact method indicator (1:Clop-Pear,0.5:MID-p)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

The graphs of basic Coverage Probability methods

See Also

Other Basic coverage probability methods: PlotcovpAS, PlotcovpAll, PlotcovpBA, PlotcovpLR,PlotcovpLT, PlotcovpSC, PlotcovpTW, PlotcovpWD, covpAS, covpAll, covpBA, covpEX, covpLR,covpLT, covpSC, covpTW, covpWD

Examples

## Not run:n= 10; alp=0.05; e=0.5; a=1;b=1; t1=0.93;t2=0.97 # Mid-pPlotcovpEX(n,alp,e,a,b,t1,t2)n= 10; alp=0.05; e=1; a=1;b=1; t1=0.93;t2=0.97 #Clop-PearPlotcovpEX(n,alp,e,a,b,t1,t2)n=5; alp=0.05;e=c(0.1,0.5,0.95,1) #Range including Mid-p and Clopper-Pearsona=1;b=1; t1=0.93;t2=0.97PlotcovpEX(n,alp,e,a,b,t1,t2)

## End(Not run)

Page 240: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

240 PlotcovpGEN

PlotcovpGEN Plot of simulation based Coverage Probability with discrete values forp

Description

Plot of simulation based Coverage Probability with discrete values for p

Usage

PlotcovpGEN(n, LL, UL, alp, hp, t1, t2)

Arguments

n - Number of trials

LL - Lower limit

UL - Upper limit

alp - Alpha value (significance level required)

hp - Hypothetical "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

Graphical evaluation of intervals obtained from any method using coverage probability, root meansquare statistic, and the proportion of proportion lies within the desired level of coverage for then+ 1 intervals and pre-defined space for the parameter p

See Also

Other General methods for coverage probability: covpGEN

Examples

## Not run:LL=c(0,0.01,0.0734,0.18237,0.3344,0.5492) #Lower and Upper LimitsUL=c(0.4507,0.6655,0.8176,0.9265,0.9899,1)hp=seq(0,1,by=0.0001)n= 5; alp=0.05; t1=0.93; t2=0.97PlotcovpGEN(n,LL,UL,alp,hp,t1,t2)

## End(Not run)

Page 241: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotcovpLR 241

PlotcovpLR Plots Coverage Probability for base Likelihood Ratio method

Description

Plots Coverage Probability for base Likelihood Ratio method

Usage

PlotcovpLR(n, alp, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

Plots Coverage Probability for base Likelihood Ratio method

See Also

Other Basic coverage probability methods: PlotcovpAS, PlotcovpAll, PlotcovpBA, PlotcovpEX,PlotcovpLT, PlotcovpSC, PlotcovpTW, PlotcovpWD, covpAS, covpAll, covpBA, covpEX, covpLR,covpLT, covpSC, covpTW, covpWD

Examples

## Not run:n= 10; alp=0.05; a=1; b=1; t1=0.93; t2=0.97PlotcovpLR(n,alp,a,b,t1,t2)

## End(Not run)

Page 242: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

242 PlotcovpLT

PlotcovpLT Plots Coverage Probability for base Logit Wald method

Description

Plots Coverage Probability for base Logit Wald method

Usage

PlotcovpLT(n, alp, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

Plots Coverage Probability for base Logit Wald method

See Also

Other Basic coverage probability methods: PlotcovpAS, PlotcovpAll, PlotcovpBA, PlotcovpEX,PlotcovpLR, PlotcovpSC, PlotcovpTW, PlotcovpWD, covpAS, covpAll, covpBA, covpEX, covpLR,covpLT, covpSC, covpTW, covpWD

Examples

## Not run:n= 10; alp=0.05; a=1; b=1; t1=0.93; t2=0.97PlotcovpLT(n,alp,a,b,t1,t2)

## End(Not run)

Page 243: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotcovpSC 243

PlotcovpSC Plots Coverage Probability for base Score method

Description

Plots Coverage Probability for base Score method

Usage

PlotcovpSC(n, alp, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

Plots Coverage Probability for base Score method

See Also

Other Basic coverage probability methods: PlotcovpAS, PlotcovpAll, PlotcovpBA, PlotcovpEX,PlotcovpLR, PlotcovpLT, PlotcovpTW, PlotcovpWD, covpAS, covpAll, covpBA, covpEX, covpLR,covpLT, covpSC, covpTW, covpWD

Examples

## Not run:n= 10; alp=0.05; a=1; b=1; t1=0.93; t2=0.97PlotcovpSC(n,alp,a,b,t1,t2)

## End(Not run)

Page 244: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

244 PlotcovpSIM

PlotcovpSIM Plots graph of simulation based Coverage Probability with simulatedp in [0,1]

Description

Plots graph of simulation based Coverage Probability with simulated p in [0,1]

Usage

PlotcovpSIM(n, LL, UL, alp, s, a, b, t1, t2)

Arguments

n - Number of trials

LL - Lower limit

UL - Upper limit

alp - Alpha value (significance level required)

s - Number of hypothetical "p"

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

Graphical evaluation of intervals obtained from any method using coverage probability, root meansquare statistic, and the proportion of proportion lies within the desired level of coverage for then+ 1 intervals and pre-defined space for the parameter p using Monte Carle simulation

See Also

Other Simulated methods for coverage probability: covpSIM

Examples

## Not run:LL=c(0,0.01,0.0734,0.18237,0.3344,0.5492) #Lower and Upper LimitsUL=c(0.4507,0.6655,0.8176,0.9265,0.9899,1)n= 5; alp=0.05; s=5000; a=1; b=1; t1=0.93; t2=0.97PlotcovpSIM(n,LL,UL,alp,s,a,b,t1,t2)

## End(Not run)

Page 245: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotcovpTW 245

PlotcovpTW Plots Coverage Probability for base Wald-T method

Description

Plots Coverage Probability for base Wald-T method

Usage

PlotcovpTW(n, alp, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

Plots Coverage Probability for base Wald-T method

See Also

Other Basic coverage probability methods: PlotcovpAS, PlotcovpAll, PlotcovpBA, PlotcovpEX,PlotcovpLR, PlotcovpLT, PlotcovpSC, PlotcovpWD, covpAS, covpAll, covpBA, covpEX, covpLR,covpLT, covpSC, covpTW, covpWD

Examples

## Not run:n= 10; alp=0.05; a=1; b=1; t1=0.93; t2=0.97PlotcovpTW(n,alp,a,b,t1,t2)

## End(Not run)

Page 246: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

246 PlotcovpWD

PlotcovpWD Plots Coverage Probability for base Wald method

Description

Plots Coverage Probability for base Wald method

Usage

PlotcovpWD(n, alp, a, b, t1, t2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

t1 - Lower tolerance limit to check the spread of coverage Probability

t2 - Upper tolerance limit to check the spread of coverage Probability

Details

Plots Coverage Probability for base Wald method

See Also

Other Basic coverage probability methods: PlotcovpAS, PlotcovpAll, PlotcovpBA, PlotcovpEX,PlotcovpLR, PlotcovpLT, PlotcovpSC, PlotcovpTW, covpAS, covpAll, covpBA, covpEX, covpLR,covpLT, covpSC, covpTW, covpWD

Examples

## Not run:n= 10; alp=0.05; a=1; b=1; t1=0.93; t2=0.97PlotcovpWD(n,alp,a,b,t1,t2)

## End(Not run)

Page 247: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PloterrAAll 247

PloterrAAll Plot of error, long term power and pass/fail criteria using 6 adjustedmethods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine)

Description

Plot of error, long term power and pass/fail criteria using 6 adjusted methods (Wald, Wald-T, Like-lihood, Score, Logit-Wald, ArcSine)

Usage

PloterrAAll(n, alp, h, phi, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

phi - Null hypothesis value

f - Failure criterion

Details

Calculates error, long term power and pass/fail criteria using 6 adjusted methods (Wald, Wald-T,Likelihood, Score, Logit-Wald, ArcSine)

See Also

Other Error for adjusted methods: PloterrAAS, PloterrALR, PloterrALT, PloterrASC, PloterrATW,PloterrAWD, errAAS, errAAll, errALR, errALT, errASC, errATW, errAWD

Examples

n=20; alp=0.05; h=2; phi=0.99; f=-2PloterrAAll(n,alp,h,phi,f)

Page 248: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

248 PloterrAll

PloterrAAS Plots error, long term power and pass/fail criteria using adjusted Arc-Sine method

Description

Plots error, long term power and pass/fail criteria using adjusted ArcSine method

Usage

PloterrAAS(n, alp, h, phi, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

phi - Null hypothesis value

f - Failure criterion

Details

Plot of adjusted ArcSine-type interval using error due to the difference of achieved and nominallevel of significance for the n+ 1 intervals

See Also

Other Error for adjusted methods: PloterrAAll, PloterrALR, PloterrALT, PloterrASC, PloterrATW,PloterrAWD, errAAS, errAAll, errALR, errALT, errASC, errATW, errAWD

Examples

n=20; alp=0.05; h=2;phi=0.99; f=-2PloterrAAS(n,alp,h,phi,f)

PloterrAll Plots error, long term power and pass/fail criteria using 6 base meth-ods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine)

Description

Plots error, long term power and pass/fail criteria using 6 base methods (Wald, Wald-T, Likelihood,Score, Logit-Wald, ArcSine)

Page 249: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PloterrALR 249

Usage

PloterrAll(n, alp, phi, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

f - Failure criterion

Details

Plots of error, long term power and pass/fail criteria using 6 base methods (Wald, Wald-T, Likeli-hood, Score, Logit-Wald, ArcSine)

See Also

Other Error for base methods: PloterrAS, PloterrBA, PloterrEX, PloterrLR, PloterrLT, PloterrSC,PloterrTW, PloterrWD, errAS, errAll, errBA, errEX, errLR, errLT, errSC, errTW, errWD

Examples

n=20; alp=0.05; phi=0.05; f=-2PloterrAll(n,alp,phi,f)

PloterrALR Plots error, long term power and pass/fail criteria using adjusted Like-lihood Ratio method

Description

Plots error, long term power and pass/fail criteria using adjusted Likelihood Ratio method

Usage

PloterrALR(n, alp, h, phi, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

phi - Null hypothesis value

f - Failure criterion

Page 250: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

250 PloterrALT

Details

Plot of adjusted Likelihood Ratio-type interval using error due to the difference of achieved andnominal level of significance for the n+ 1 intervals

See Also

Other Error for adjusted methods: PloterrAAS, PloterrAAll, PloterrALT, PloterrASC, PloterrATW,PloterrAWD, errAAS, errAAll, errALR, errALT, errASC, errATW, errAWD

Examples

n=20; alp=0.05; h=2;phi=0.99; f=-2PloterrALR(n,alp,h,phi,f)

PloterrALT Plots error, long term power and pass/fail criteria using adjusted LogitWald method

Description

Plots error, long term power and pass/fail criteria using adjusted Logit Wald method

Usage

PloterrALT(n, alp, h, phi, f)

Arguments

n - Number of trialsalp - Alpha value (significance level required)h - Adding factorphi - Null hypothesis valuef - Failure criterion

Details

Plot of adjusted Logit Wald-type interval using error due to the difference of achieved and nominallevel of significance for the n+ 1 intervals

See Also

Other Error for adjusted methods: PloterrAAS, PloterrAAll, PloterrALR, PloterrASC, PloterrATW,PloterrAWD, errAAS, errAAll, errALR, errALT, errASC, errATW, errAWD

Examples

n=20; alp=0.05; h=2;phi=0.99; f=-2PloterrALT(n,alp,h,phi,f)

Page 251: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PloterrAS 251

PloterrAS Plots error, long term power and pass/fail criteria using ArcSinemethod

Description

Plots error, long term power and pass/fail criteria using ArcSine method

Usage

PloterrAS(n, alp, phi, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

f - Failure criterion

Details

Plots of error, long term power and pass/fail criteria using ArcSine method

See Also

Other Error for base methods: PloterrAll, PloterrBA, PloterrEX, PloterrLR, PloterrLT, PloterrSC,PloterrTW, PloterrWD, errAS, errAll, errBA, errEX, errLR, errLT, errSC, errTW, errWD

Examples

n=20; alp=0.05; phi=0.05; f=-2PloterrAS(n,alp,phi,f)

PloterrASC Plots error, long term power and pass/fail criteria using adjustedScore method

Description

Plots error, long term power and pass/fail criteria using adjusted Score method

Usage

PloterrASC(n, alp, h, phi, f)

Page 252: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

252 PloterrATW

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

phi - Null hypothesis value

f - Failure criterion

Details

Plot of adjusted Score-type interval using error due to the difference of achieved and nominal levelof significance for the n+ 1 intervals

See Also

Other Error for adjusted methods: PloterrAAS, PloterrAAll, PloterrALR, PloterrALT, PloterrATW,PloterrAWD, errAAS, errAAll, errALR, errALT, errASC, errATW, errAWD

Examples

n=20; alp=0.05; h=2;phi=0.99; f=-2PloterrASC(n,alp,h,phi,f)

PloterrATW Plots error, long term power and pass/fail criteria using adjustedWald-T method

Description

Plots error, long term power and pass/fail criteria using adjusted Wald-T method

Usage

PloterrATW(n, alp, h, phi, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

phi - Null hypothesis value

f - Failure criterion

Details

Plot of adjusted Wald-T-type interval using error due to the difference of achieved and nominal levelof significance for the n+ 1 intervals

Page 253: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PloterrAWD 253

See Also

Other Error for adjusted methods: PloterrAAS, PloterrAAll, PloterrALR, PloterrALT, PloterrASC,PloterrAWD, errAAS, errAAll, errALR, errALT, errASC, errATW, errAWD

Examples

n=20; alp=0.05; h=2;phi=0.99; f=-2PloterrATW(n,alp,h,phi,f)

PloterrAWD Plots error, long term power and pass/fail criteria using adjusted Waldmethod

Description

Plots error, long term power and pass/fail criteria using adjusted Wald method

Usage

PloterrAWD(n, alp, h, phi, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

phi - Null hypothesis value

f - Failure criterion

Details

Plot of adjusted Wald-type interval using error due to the difference of achieved and nominal levelof significance for the n+ 1 intervals

See Also

Other Error for adjusted methods: PloterrAAS, PloterrAAll, PloterrALR, PloterrALT, PloterrASC,PloterrATW, errAAS, errAAll, errALR, errALT, errASC, errATW, errAWD

Examples

n=20; alp=0.05; h=2;phi=0.99; f=-2PloterrAWD(n,alp,h,phi,f)

Page 254: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

254 PloterrBA

PloterrBA Plots error, long term power and pass/fail criteria using Bayesianmethod

Description

Plots error, long term power and pass/fail criteria using Bayesian method

Usage

PloterrBA(n, alp, phi, f, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

f - Failure criterion

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Plot of Bayesian Highest Probability Density (HPD) and two tailed intervals using error due tothe difference of achieved and nominal level of significance for the n + 1 intervals for the Beta -Binomial conjugate prior model for the probability of success p

See Also

Other Error for base methods: PloterrAS, PloterrAll, PloterrEX, PloterrLR, PloterrLT, PloterrSC,PloterrTW, PloterrWD, errAS, errAll, errBA, errEX, errLR, errLT, errSC, errTW, errWD

Examples

n=20; alp=0.05; phi=0.05; f=-2;a=0.5;b=0.5PloterrBA(n,alp,phi,f,a,b)

Page 255: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PloterrCAll 255

PloterrCAll Plots the calculated error, long term power and pass/fail criteria us-ing 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald,ArcSine)

Description

Plots the calculated error, long term power and pass/fail criteria using 5 continuity corrected meth-ods (Wald, Wald-T, Score, Logit-Wald, ArcSine)

Usage

PloterrCAll(n, alp, phi, c, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

c - Continuity correction

f - Failure criterion

Details

Plots the error, long term power and pass/fail criteria calculaed using 5 continuity corrected methods(Wald, Wald-T, Score, Logit-Wald, ArcSine)

See Also

Other Error for continuity corrected methods: PloterrCAS, PloterrCLT, PloterrCSC, PloterrCTW,PloterrCWD, errCAS, errCAll, errCLT, errCSC, errCTW, errCWD

Examples

n=5; alp=0.05; phi=0.05; c=1/(2*n); f=-2PloterrCAll(n,alp,phi,c,f)

Page 256: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

256 PloterrCLT

PloterrCAS Plots the error, long term power and pass/fail criteria for continuitycorrected ArcSine method

Description

Plots the error, long term power and pass/fail criteria for continuity corrected ArcSine method

Usage

PloterrCAS(n, alp, phi, c, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

c - Continuity correction

f - Failure criterion

Details

Plot of continuity corrected Wald-type interval for the arcsine transformation of the parameter pusing error due to the difference of achieved and nominal level of significance for the n+1 intervals

See Also

Other Error for continuity corrected methods: PloterrCAll, PloterrCLT, PloterrCSC, PloterrCTW,PloterrCWD, errCAS, errCAll, errCLT, errCSC, errCTW, errCWD

Examples

n=5; alp=0.05; phi=0.05;c=1/(2*n); f=-2PloterrCAS(n,alp,phi,c,f)

PloterrCLT Plots the error, long term power and pass/fail criteria for continuitycorrected Logit Wald method

Description

Plots the error, long term power and pass/fail criteria for continuity corrected Logit Wald method

Usage

PloterrCLT(n, alp, phi, c, f)

Page 257: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PloterrCSC 257

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

c - Continuity correction

f - Failure criterion

Details

Plot of continuity corrected Wald-type interval based on the logit transformation of p using errordue to the difference of achieved and nominal level of significance for the n+ 1 intervals

See Also

Other Error for continuity corrected methods: PloterrCAS, PloterrCAll, PloterrCSC, PloterrCTW,PloterrCWD, errCAS, errCAll, errCLT, errCSC, errCTW, errCWD

Examples

n=5; alp=0.05; phi=0.05;c=1/(2*n); f=-2PloterrCLT(n,alp,phi,c,f)

PloterrCSC Plots the error, long term power and pass/fail criteria for continuitycorrected Score method

Description

Plots the error, long term power and pass/fail criteria for continuity corrected Score method

Usage

PloterrCSC(n, alp, phi, c, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

c - Continuity correction

f - Failure criterion

Details

Plot of continuity corrected score test approach using error due to the difference of achieved andnominal level of significance for the n+ 1 intervals

Page 258: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

258 PloterrCTW

See Also

Other Error for continuity corrected methods: PloterrCAS, PloterrCAll, PloterrCLT, PloterrCTW,PloterrCWD, errCAS, errCAll, errCLT, errCSC, errCTW, errCWD

Examples

n=5; alp=0.05; phi=0.05;c=1/(2*n); f=-2PloterrCSC(n,alp,phi,c,f)

PloterrCTW Plots the error, long term power and pass/fail criteria for continuitycorrected Wald-t method

Description

Plots the error, long term power and pass/fail criteria for continuity corrected Wald-t method

Usage

PloterrCTW(n, alp, phi, c, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

c - Continuity correction

f - Failure criterion

Details

Plot of approximate and continuity corrected method based on a t_approximation of the standard-ized point estimator using error due to the difference of achieved and nominal level of significancefor the n+ 1 intervals

See Also

Other Error for continuity corrected methods: PloterrCAS, PloterrCAll, PloterrCLT, PloterrCSC,PloterrCWD, errCAS, errCAll, errCLT, errCSC, errCTW, errCWD

Examples

n=5; alp=0.05; phi=0.05;c=1/(2*n); f=-2PloterrCTW(n,alp,phi,c,f)

Page 259: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PloterrCWD 259

PloterrCWD Plots the error, long term power and pass/fail criteria for continuitycorrected Wald method

Description

Plots the error, long term power and pass/fail criteria for continuity corrected Wald method

Usage

PloterrCWD(n, alp, phi, c, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

c - Continuity correction

f - Failure criterion

Details

Plot of Wald-type interval with continuity correction using error due to the difference of achievedand nominal level of significance for the n+ 1 intervals

See Also

Other Error for continuity corrected methods: PloterrCAS, PloterrCAll, PloterrCLT, PloterrCSC,PloterrCTW, errCAS, errCAll, errCLT, errCSC, errCTW, errCWD

Examples

n=5; alp=0.05; phi=0.05;c=1/(2*n); f=-2PloterrCWD(n,alp,phi,c,f)

PloterrEX Plots error, long term power and pass/fail criteria using Exact method

Description

Plots error, long term power and pass/fail criteria using Exact method

Usage

PloterrEX(n, alp, phi, f, e)

Page 260: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

260 PloterrLR

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

f - Failure criterion

e - Exact method indicator in [0, 1] 1: Clopper Pearson, 0.5: Mid P The input canalso be a range of values between 0 and 1.

Details

Plots of Confidence interval for p based on inverting equal-tailed binomial tests with null hypothesisH0 : p = p0 using error due to the difference of achieved and nominal level of significance for then+ 1 intervals

See Also

Other Error for base methods: PloterrAS, PloterrAll, PloterrBA, PloterrLR, PloterrLT, PloterrSC,PloterrTW, PloterrWD, errAS, errAll, errBA, errEX, errLR, errLT, errSC, errTW, errWD

Examples

n=20; alp=0.05;phi=0.05; f=-2;e=0.5 # Mid-pPloterrEX(n,alp,phi,f,e)n=20; alp=0.05;phi=0.05; f=-2;e=1 #Clopper-PearsonPloterrEX(n,alp,phi,f,e)n=20; alp=0.05;phi=0.05; f=-2;e=c(0.1,0.5,0.95,1) #Range including Mid-p and Clopper-PearsonPloterrEX(n,alp,phi,f,e)

PloterrLR Plots error, long term power and pass/fail criteria using LikelihoodRatio method

Description

Plots error, long term power and pass/fail criteria using Likelihood Ratio method

Usage

PloterrLR(n, alp, phi, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

f - Failure criterion

Page 261: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PloterrLT 261

Details

Plots of error, long term power and pass/fail criteria using Likelihood Ratio method

See Also

Other Error for base methods: PloterrAS, PloterrAll, PloterrBA, PloterrEX, PloterrLT, PloterrSC,PloterrTW, PloterrWD, errAS, errAll, errBA, errEX, errLR, errLT, errSC, errTW, errWD

Examples

n=20; alp=0.05; phi=0.05; f=-2PloterrLR(n,alp,phi,f)

PloterrLT Plots error, long term power and pass/fail criteria using Logit Waldmethod

Description

Plots error, long term power and pass/fail criteria using Logit Wald method

Usage

PloterrLT(n, alp, phi, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

f - Failure criterion

Details

Plots of error, long term power and pass/fail criteria using Logit Wald method

See Also

Other Error for base methods: PloterrAS, PloterrAll, PloterrBA, PloterrEX, PloterrLR, PloterrSC,PloterrTW, PloterrWD, errAS, errAll, errBA, errEX, errLR, errLT, errSC, errTW, errWD

Examples

n=20; alp=0.05; phi=0.05; f=-2PloterrLT(n,alp,phi,f)

Page 262: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

262 PloterrTW

PloterrSC Plots error, long term power and pass/fail criteria using Score method

Description

Plots error, long term power and pass/fail criteria using Score method

Usage

PloterrSC(n, alp, phi, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

f - Failure criterion

Details

Plots of error, long term power and pass/fail criteria using Score method

See Also

Other Error for base methods: PloterrAS, PloterrAll, PloterrBA, PloterrEX, PloterrLR, PloterrLT,PloterrTW, PloterrWD, errAS, errAll, errBA, errEX, errLR, errLT, errSC, errTW, errWD

Examples

n=20; alp=0.05; phi=0.05; f=-2PloterrSC(n,alp,phi,f)

PloterrTW Plots error, long term power and pass/fail criteria using Wald-Tmethod

Description

Plots error, long term power and pass/fail criteria using Wald-T method

Usage

PloterrTW(n, alp, phi, f)

Page 263: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PloterrWD 263

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

f - Failure criterion

Details

Plots of error, long term power and pass/fail criteria using Wald-T method

See Also

Other Error for base methods: PloterrAS, PloterrAll, PloterrBA, PloterrEX, PloterrLR, PloterrLT,PloterrSC, PloterrWD, errAS, errAll, errBA, errEX, errLR, errLT, errSC, errTW, errWD

Examples

n=20; alp=0.05; phi=0.05; f=-2PloterrTW(n,alp,phi,f)

PloterrWD Plots error, long term power and pass/fail criteria using Wald method

Description

Plots error, long term power and pass/fail criteria using Wald method

Usage

PloterrWD(n, alp, phi, f)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

phi - Null hypothesis value

f - Failure criterion

Details

Plots of error, long term power and pass/fail criteria using Wald method

See Also

Other Error for base methods: PloterrAS, PloterrAll, PloterrBA, PloterrEX, PloterrLR, PloterrLT,PloterrSC, PloterrTW, errAS, errAll, errBA, errEX, errLR, errLT, errSC, errTW, errWD

Page 264: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

264 PlotexplAAll

Examples

n=20; alp=0.05; phi=0.05; f=-2PloterrWD(n,alp,phi,f)

PlotexplAAll Plots the Expected length using 6 adjusted methods (Wald, Wald-T,Likelihood, Score, Logit-Wald, ArcSine)

Description

Plots the Expected length using 6 adjusted methods (Wald, Wald-T, Likelihood, Score, Logit-Wald,ArcSine)

Usage

PlotexplAAll(n, alp, h, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots of the Expected length of 6 adjusted methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine) for n given alp, h, a, b, t1 and t2 using all the methods

See Also

Other Expected length of adjusted methods: PlotexplAAS, PlotexplALR, PlotexplALT, PlotexplASC,PlotexplATW, PlotexplAWD, PlotlengthAAS, PlotlengthAAll, PlotlengthALR, PlotlengthALT,PlotlengthASC, PlotlengthATW, PlotlengthAWD, lengthAAS, lengthAAll, lengthALR, lengthALT,lengthASC, lengthATW, lengthAWD

Examples

## Not run:n= 10; alp=0.05; h=2;a=1;b=1;PlotexplAAll(n,alp,h,a,b)

## End(Not run)

Page 265: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotexplAAS 265

PlotexplAAS Plots the Expected length using adjusted ArcSine method

Description

Plots the Expected length using adjusted ArcSine method

Usage

PlotexplAAS(n, alp, h, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots of the Expected length of adjusted ArcSine method

See Also

Other Expected length of adjusted methods: PlotexplAAll, PlotexplALR, PlotexplALT, PlotexplASC,PlotexplATW, PlotexplAWD, PlotlengthAAS, PlotlengthAAll, PlotlengthALR, PlotlengthALT,PlotlengthASC, PlotlengthATW, PlotlengthAWD, lengthAAS, lengthAAll, lengthALR, lengthALT,lengthASC, lengthATW, lengthAWD

Examples

## Not run:n= 10; alp=0.05; h=2;a=1;b=1;PlotexplAAS(n,alp,h,a,b)

## End(Not run)

Page 266: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

266 PlotexplAll

PlotexplAll Plots the Expected length using 6 base methods (Wald, Wald-T, Likeli-hood, Score, Logit-Wald, ArcSine)

Description

Plots the Expected length using 6 base methods (Wald, Wald-T, Likelihood, Score, Logit-Wald,ArcSine)

Usage

PlotexplAll(n, alp, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots using 6 base methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine) for theexpected length of n given alp, h, a, b, t1 and t2 using all the methods

See Also

Other Expected length of base methods: PlotexplAS, PlotexplBA, PlotexplEX, PlotexplLR,PlotexplLT, PlotexplSC, PlotexplTW, PlotexplWD, PlotlengthAS, PlotlengthAll, PlotlengthBA,PlotlengthEX, PlotlengthLR, PlotlengthLT, PlotlengthSC, PlotlengthTW, PlotlengthWD,lengthAS, lengthAll, lengthBA, lengthEX, lengthLR, lengthLT, lengthSC, lengthTW, lengthWD

Examples

## Not run:n= 10; alp=0.05; a=1;b=1;PlotexplAll(n,alp,a,b)

## End(Not run)

Page 267: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotexplALR 267

PlotexplALR Plots the Expected length using adjusted Likelihood Ratio method

Description

Plots the Expected length using adjusted Likelihood Ratio method

Usage

PlotexplALR(n, alp, h, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots of the Expected length of adjusted Likelihood Ratio method

See Also

Other Expected length of adjusted methods: PlotexplAAS, PlotexplAAll, PlotexplALT, PlotexplASC,PlotexplATW, PlotexplAWD, PlotlengthAAS, PlotlengthAAll, PlotlengthALR, PlotlengthALT,PlotlengthASC, PlotlengthATW, PlotlengthAWD, lengthAAS, lengthAAll, lengthALR, lengthALT,lengthASC, lengthATW, lengthAWD

Examples

## Not run:n= 10; alp=0.05; h=2;a=1;b=1;PlotexplALR(n,alp,h,a,b)

## End(Not run)

Page 268: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

268 PlotexplALT

PlotexplALT Plots the Expected length using adjusted Logit Wald method

Description

Plots the Expected length using adjusted Logit Wald method

Usage

PlotexplALT(n, alp, h, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots of the Expected length of adjusted Wald method

See Also

Other Expected length of adjusted methods: PlotexplAAS, PlotexplAAll, PlotexplALR, PlotexplASC,PlotexplATW, PlotexplAWD, PlotlengthAAS, PlotlengthAAll, PlotlengthALR, PlotlengthALT,PlotlengthASC, PlotlengthATW, PlotlengthAWD, lengthAAS, lengthAAll, lengthALR, lengthALT,lengthASC, lengthATW, lengthAWD

Examples

## Not run:n= 10; alp=0.05; h=2;a=1;b=1;PlotexplALT(n,alp,h,a,b)

## End(Not run)

Page 269: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotexplAS 269

PlotexplAS Plots ArcSine method of expected length

Description

Plots ArcSine method of expected length

Usage

PlotexplAS(n, alp, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Plot of Wald-type interval for the arcsine transformation of the parameter p using sum of length ofthe n+ 1 intervals

See Also

Other Expected length of base methods: PlotexplAll, PlotexplBA, PlotexplEX, PlotexplLR,PlotexplLT, PlotexplSC, PlotexplTW, PlotexplWD, PlotlengthAS, PlotlengthAll, PlotlengthBA,PlotlengthEX, PlotlengthLR, PlotlengthLT, PlotlengthSC, PlotlengthTW, PlotlengthWD,lengthAS, lengthAll, lengthBA, lengthEX, lengthLR, lengthLT, lengthSC, lengthTW, lengthWD

Examples

## Not run:n=5; alp=0.05;a=1;b=1PlotexplAS(n,alp,a,b)

## End(Not run)

Page 270: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

270 PlotexplASC

PlotexplASC Plots the Expected length using adjusted Score method

Description

Plots the Expected length using adjusted Score method

Usage

PlotexplASC(n, alp, h, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots of the Expected length of adjusted Score method

See Also

Other Expected length of adjusted methods: PlotexplAAS, PlotexplAAll, PlotexplALR, PlotexplALT,PlotexplATW, PlotexplAWD, PlotlengthAAS, PlotlengthAAll, PlotlengthALR, PlotlengthALT,PlotlengthASC, PlotlengthATW, PlotlengthAWD, lengthAAS, lengthAAll, lengthALR, lengthALT,lengthASC, lengthATW, lengthAWD

Examples

## Not run:n= 10; alp=0.05; h=2;a=1;b=1;PlotexplASC(n,alp,h,a,b)

## End(Not run)

Page 271: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotexplATW 271

PlotexplATW Plots the Expected length using adjusted Wald-T method

Description

Plots the Expected length using adjusted Wald-T method

Usage

PlotexplATW(n, alp, h, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots of the Expected length of adjusted Wald method

See Also

Other Expected length of adjusted methods: PlotexplAAS, PlotexplAAll, PlotexplALR, PlotexplALT,PlotexplASC, PlotexplAWD, PlotlengthAAS, PlotlengthAAll, PlotlengthALR, PlotlengthALT,PlotlengthASC, PlotlengthATW, PlotlengthAWD, lengthAAS, lengthAAll, lengthALR, lengthALT,lengthASC, lengthATW, lengthAWD

Examples

## Not run:n= 10; alp=0.05; h=2;a=1;b=1;PlotexplATW(n,alp,h,a,b)

## End(Not run)

Page 272: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

272 PlotexplAWD

PlotexplAWD Plots the Expected length using adjusted Wald method

Description

Plots the Expected length using adjusted Wald method

Usage

PlotexplAWD(n, alp, h, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots of the Expected length of adjusted Wald method

See Also

Other Expected length of adjusted methods: PlotexplAAS, PlotexplAAll, PlotexplALR, PlotexplALT,PlotexplASC, PlotexplATW, PlotlengthAAS, PlotlengthAAll, PlotlengthALR, PlotlengthALT,PlotlengthASC, PlotlengthATW, PlotlengthAWD, lengthAAS, lengthAAll, lengthALR, lengthALT,lengthASC, lengthATW, lengthAWD

Examples

## Not run:n= 10; alp=0.05; h=2;a=1;b=1;PlotexplAWD(n,alp,h,a,b)

## End(Not run)

Page 273: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotexplBA 273

PlotexplBA Plot the Bayesian method of expected length calculation

Description

Plot the Bayesian method of expected length calculation

Usage

PlotexplBA(n, alp, a, b, a1, a2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

a1 - Beta Prior Parameters for Bayesian estimation

a2 - Beta Prior Parameters for Bayesian estimation

Details

Plots of Bayesian Highest Probability Density (HPD) and two tailed intervals using expected lengthof the n+1 intervals for the Beta - Binomial conjugate prior model for the probability of success p

See Also

Other Expected length of base methods: PlotexplAS, PlotexplAll, PlotexplEX, PlotexplLR,PlotexplLT, PlotexplSC, PlotexplTW, PlotexplWD, PlotlengthAS, PlotlengthAll, PlotlengthBA,PlotlengthEX, PlotlengthLR, PlotlengthLT, PlotlengthSC, PlotlengthTW, PlotlengthWD,lengthAS, lengthAll, lengthBA, lengthEX, lengthLR, lengthLT, lengthSC, lengthTW, lengthWD

Examples

## Not run:n=5; alp=0.05;a=1;b=1;a1=1;a2=1PlotexplBA(n,alp,a,b,a1,a2)

## End(Not run)

Page 274: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

274 PlotexplCAll

PlotexplCAll Plots the Expected length using 5 continuity corrected methods (Wald,Wald-T, Score, Logit-Wald, ArcSine)

Description

Plots the Expected length using 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald,ArcSine)

Usage

PlotexplCAll(n, alp, c, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correctection

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots of the expected length of 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald, ArcSine) for n given alp, h, a, b, t1 and t2 using all the methods

See Also

Other Expected length of continuity corrected methods: PlotexplCAS, PlotexplCLT, PlotexplCSC,PlotexplCTW, PlotexplCWD, PlotlengthCAS, PlotlengthCAll, PlotlengthCLT, PlotlengthCSC,PlotlengthCTW, PlotlengthCWD, lengthCAS, lengthCAll, lengthCLT, lengthCSC, lengthCTW,lengthCWD

Examples

## Not run:n= 10; alp=0.05; c=1/(2*n);a=1;b=1;PlotexplCAll(n,alp,c,a,b)

## End(Not run)

Page 275: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotexplCAS 275

PlotexplCAS Plots the Expected length using continuity corrected ArcSine method

Description

Plots the Expected length using continuity corrected ArcSine method

Usage

PlotexplCAS(n, alp, c, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correctection

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots of the expected length of continuity corrected ArcSine method

See Also

Other Expected length of continuity corrected methods: PlotexplCAll, PlotexplCLT, PlotexplCSC,PlotexplCTW, PlotexplCWD, PlotlengthCAS, PlotlengthCAll, PlotlengthCLT, PlotlengthCSC,PlotlengthCTW, PlotlengthCWD, lengthCAS, lengthCAll, lengthCLT, lengthCSC, lengthCTW,lengthCWD

Examples

## Not run:n= 10; alp=0.05; c=1/(2*n);a=1;b=1;PlotexplCAS(n,alp,c,a,b)

## End(Not run)

Page 276: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

276 PlotexplCLT

PlotexplCLT Plots the Expected length using continuity corrected Logit Waldmethod

Description

Plots the Expected length using continuity corrected Logit Wald method

Usage

PlotexplCLT(n, alp, c, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correctection

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots of the expected length of continuity corrected Logit Wald method

See Also

Other Expected length of continuity corrected methods: PlotexplCAS, PlotexplCAll, PlotexplCSC,PlotexplCTW, PlotexplCWD, PlotlengthCAS, PlotlengthCAll, PlotlengthCLT, PlotlengthCSC,PlotlengthCTW, PlotlengthCWD, lengthCAS, lengthCAll, lengthCLT, lengthCSC, lengthCTW,lengthCWD

Examples

## Not run:n= 10; alp=0.05; c=1/(2*n);a=1;b=1;PlotexplCLT(n,alp,c,a,b)

## End(Not run)

Page 277: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotexplCSC 277

PlotexplCSC Plots the Expected length using continuity corrected Score method

Description

Plots the Expected length using continuity corrected Score method

Usage

PlotexplCSC(n, alp, c, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correctection

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots of the expected length of continuity corrected Score method

See Also

Other Expected length of continuity corrected methods: PlotexplCAS, PlotexplCAll, PlotexplCLT,PlotexplCTW, PlotexplCWD, PlotlengthCAS, PlotlengthCAll, PlotlengthCLT, PlotlengthCSC,PlotlengthCTW, PlotlengthCWD, lengthCAS, lengthCAll, lengthCLT, lengthCSC, lengthCTW,lengthCWD

Examples

## Not run:n= 10; alp=0.05; c=1/(2*n);a=1;b=1;PlotexplCSC(n,alp,c,a,b)

## End(Not run)

Page 278: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

278 PlotexplCTW

PlotexplCTW Plots the Expected length using continuity corrected Wald-T method

Description

Plots the Expected length using continuity corrected Wald-T method

Usage

PlotexplCTW(n, alp, c, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correctection

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots of the expected length of continuity corrected Wald-T method

See Also

Other Expected length of continuity corrected methods: PlotexplCAS, PlotexplCAll, PlotexplCLT,PlotexplCSC, PlotexplCWD, PlotlengthCAS, PlotlengthCAll, PlotlengthCLT, PlotlengthCSC,PlotlengthCTW, PlotlengthCWD, lengthCAS, lengthCAll, lengthCLT, lengthCSC, lengthCTW,lengthCWD

Examples

## Not run:n= 10; alp=0.05; c=1/(2*n);a=1;b=1;PlotexplCTW(n,alp,c,a,b)

## End(Not run)

Page 279: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotexplCWD 279

PlotexplCWD Plots the Expected length using continuity corrected Wald method

Description

Plots the Expected length using continuity corrected Wald method

Usage

PlotexplCWD(n, alp, c, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correctection

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots of the expected length of continuity corrected Wald method

See Also

Other Expected length of continuity corrected methods: PlotexplCAS, PlotexplCAll, PlotexplCLT,PlotexplCSC, PlotexplCTW, PlotlengthCAS, PlotlengthCAll, PlotlengthCLT, PlotlengthCSC,PlotlengthCTW, PlotlengthCWD, lengthCAS, lengthCAll, lengthCLT, lengthCSC, lengthCTW,lengthCWD

Examples

## Not run:n= 10; alp=0.05; c=1/(2*n);a=1;b=1;PlotexplCWD(n,alp,c,a,b)

## End(Not run)

Page 280: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

280 PlotexplEX

PlotexplEX Plot for Exact method of expected length calculation

Description

Plot for Exact method of expected length calculation

Usage

PlotexplEX(n, alp, e, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

e - Exact method indicator in [0, 1] 1: Clopper Pearson, 0.5: Mid P The input canalso be a range of values between 0 and 1.

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Plot of Confidence interval for p based on inverting equal-tailed binomial tests with null hypothesisH0 : p = p0 using expected length of the n+ 1 intervals.

See Also

Other Expected length of base methods: PlotexplAS, PlotexplAll, PlotexplBA, PlotexplLR,PlotexplLT, PlotexplSC, PlotexplTW, PlotexplWD, PlotlengthAS, PlotlengthAll, PlotlengthBA,PlotlengthEX, PlotlengthLR, PlotlengthLT, PlotlengthSC, PlotlengthTW, PlotlengthWD,lengthAS, lengthAll, lengthBA, lengthEX, lengthLR, lengthLT, lengthSC, lengthTW, lengthWD

Examples

## Not run:n=5; alp=0.05;e=0.5;a=1;b=1PlotexplEX(n,alp,e,a,b)n=5; alp=0.05;e=1;a=1;b=1 #Clopper-PearsonPlotexplEX(n,alp,e,a,b)n=5; alp=0.05;e=c(0.1,0.5,0.95,1);a=1;b=1 #Range including Mid-p and Clopper-PearsonPlotexplEX(n,alp,e,a,b)

## End(Not run)

Page 281: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotexplGEN 281

PlotexplGEN Plot the expected length given hypothetical "p"

Description

Plot the expected length given hypothetical "p"

Usage

PlotexplGEN(n, LL, UL, hp)

Arguments

n - Number of trials

LL - Lower limit

UL - Upper limit

hp - Hypothetical "p"

Details

The plot of the expected length for n given lower limit LL and upper limit UL

See Also

Other Expected length: PlotexplSIM, PlotlengthGEN, PlotlengthSIM, lengthGEN, lengthSIM

Examples

n= 5;LL=c(0,0.01,0.0734,0.18237,0.3344,0.5492) #Lower and Upper LimitsUL=c(0.4507,0.6655,0.8176,0.9265,0.9899,1)hp=seq(0,1,by=0.01)PlotexplGEN(n,LL,UL,hp)

PlotexplLR Plots likelihood Ratio method of expected length

Description

Plots likelihood Ratio method of expected length

Usage

PlotexplLR(n, alp, a, b)

Page 282: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

282 PlotexplLT

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Plot of Likelihood ratio limits using sum of length of the n+ 1 intervals

See Also

Other Expected length of base methods: PlotexplAS, PlotexplAll, PlotexplBA, PlotexplEX,PlotexplLT, PlotexplSC, PlotexplTW, PlotexplWD, PlotlengthAS, PlotlengthAll, PlotlengthBA,PlotlengthEX, PlotlengthLR, PlotlengthLT, PlotlengthSC, PlotlengthTW, PlotlengthWD,lengthAS, lengthAll, lengthBA, lengthEX, lengthLR, lengthLT, lengthSC, lengthTW, lengthWD

Examples

## Not run:n=5; alp=0.05;a=1;b=1PlotexplLR(n,alp,a,b)

## End(Not run)

PlotexplLT Plots Logit Wald method of expected length

Description

Plots Logit Wald method of expected length

Usage

PlotexplLT(n, alp, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Plot of Wald-type interval based on the logit transformation of p using sum of length of the n + 1intervals

Page 283: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotexplSC 283

See Also

Other Expected length of base methods: PlotexplAS, PlotexplAll, PlotexplBA, PlotexplEX,PlotexplLR, PlotexplSC, PlotexplTW, PlotexplWD, PlotlengthAS, PlotlengthAll, PlotlengthBA,PlotlengthEX, PlotlengthLR, PlotlengthLT, PlotlengthSC, PlotlengthTW, PlotlengthWD,lengthAS, lengthAll, lengthBA, lengthEX, lengthLR, lengthLT, lengthSC, lengthTW, lengthWD

Examples

## Not run:n=5; alp=0.05;a=1;b=1PlotexplLT(n,alp,a,b)

## End(Not run)

PlotexplSC Plots the expected length for Score method

Description

Plots the expected length for Score method

Usage

PlotexplSC(n, alp, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Plot of score test approach using sum of length of the n+ 1 intervals

See Also

Other Expected length of base methods: PlotexplAS, PlotexplAll, PlotexplBA, PlotexplEX,PlotexplLR, PlotexplLT, PlotexplTW, PlotexplWD, PlotlengthAS, PlotlengthAll, PlotlengthBA,PlotlengthEX, PlotlengthLR, PlotlengthLT, PlotlengthSC, PlotlengthTW, PlotlengthWD,lengthAS, lengthAll, lengthBA, lengthEX, lengthLR, lengthLT, lengthSC, lengthTW, lengthWD

Page 284: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

284 PlotexplSIM

Examples

## Not run:n=5; alp=0.05;a=1;b=1PlotexplSC(n,alp,a,b)

## End(Not run)

PlotexplSIM Plots the expected length using calculated using simulation

Description

Plots the expected length using calculated using simulation

Usage

PlotexplSIM(n, LL, UL, s, a, b)

Arguments

n - Number of trials

LL - Lower limit

UL - Upper limit

s - Number of Hypothetical "p"

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plot of the expected length for n given lower limit LL and upper limit UL

See Also

Other Expected length: PlotexplGEN, PlotlengthGEN, PlotlengthSIM, lengthGEN, lengthSIM

Examples

LL=c(0,0.01,0.0734,0.18237,0.3344,0.5492) #Lower and Upper LimitsUL=c(0.4507,0.6655,0.8176,0.9265,0.9899,1)n= 5; s=5000; a=1; b=1;PlotexplSIM(n,LL,UL,s,a,b)

Page 285: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotexplTW 285

PlotexplTW Plots Wald-T method of expected length

Description

Plots Wald-T method of expected length

Usage

PlotexplTW(n, alp, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Plot of approximate method based on a t_approximation of the standardized point estimator usingsum of length of the n+ 1 intervals

See Also

Other Expected length of base methods: PlotexplAS, PlotexplAll, PlotexplBA, PlotexplEX,PlotexplLR, PlotexplLT, PlotexplSC, PlotexplWD, PlotlengthAS, PlotlengthAll, PlotlengthBA,PlotlengthEX, PlotlengthLR, PlotlengthLT, PlotlengthSC, PlotlengthTW, PlotlengthWD,lengthAS, lengthAll, lengthBA, lengthEX, lengthLR, lengthLT, lengthSC, lengthTW, lengthWD

Examples

## Not run:n=5; alp=0.05;a=1;b=1PlotexplTW(n,alp,a,b)

## End(Not run)

Page 286: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

286 PlotexplWD

PlotexplWD Plots the expected length for Wald method

Description

Plots the expected length for Wald method

Usage

PlotexplWD(n, alp, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Evaluation of Wald-type intervals using sum of length of the n+ 1 intervals

See Also

Other Expected length of base methods: PlotexplAS, PlotexplAll, PlotexplBA, PlotexplEX,PlotexplLR, PlotexplLT, PlotexplSC, PlotexplTW, PlotlengthAS, PlotlengthAll, PlotlengthBA,PlotlengthEX, PlotlengthLR, PlotlengthLT, PlotlengthSC, PlotlengthTW, PlotlengthWD,lengthAS, lengthAll, lengthBA, lengthEX, lengthLR, lengthLT, lengthSC, lengthTW, lengthWD

Examples

## Not run:n=5; alp=0.05;a=1;b=1PlotexplWD(n,alp,a,b)

## End(Not run)

Page 287: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotlengthAAll 287

PlotlengthAAll Plots the length summary for 6 adjusted methods (Wald, Wald-T, Like-lihood, Score, Logit-Wald, ArcSine)

Description

Plots the length summary for 6 adjusted methods (Wald, Wald-T, Likelihood, Score, Logit-Wald,ArcSine)

Usage

PlotlengthAAll(n, alp, h, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots for 6 adjusted methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine). Sum ofthe length is shown as bar graph.

See Also

Other Expected length of adjusted methods: PlotexplAAS, PlotexplAAll, PlotexplALR, PlotexplALT,PlotexplASC, PlotexplATW, PlotexplAWD, PlotlengthAAS, PlotlengthALR, PlotlengthALT,PlotlengthASC, PlotlengthATW, PlotlengthAWD, lengthAAS, lengthAAll, lengthALR, lengthALT,lengthASC, lengthATW, lengthAWD

Examples

## Not run:n= 10; alp=0.05; h=2; a=1;b=1;PlotlengthAAll(n,alp,h,a,b)

## End(Not run)

Page 288: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

288 PlotlengthAAS

PlotlengthAAS Plots the summary length using adjusted ArcSine method

Description

Plots the summary length using adjusted ArcSine method

Usage

PlotlengthAAS(n, alp, h, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots of the summary length of adjusted ArcSine method

See Also

Other Expected length of adjusted methods: PlotexplAAS, PlotexplAAll, PlotexplALR, PlotexplALT,PlotexplASC, PlotexplATW, PlotexplAWD, PlotlengthAAll, PlotlengthALR, PlotlengthALT,PlotlengthASC, PlotlengthATW, PlotlengthAWD, lengthAAS, lengthAAll, lengthALR, lengthALT,lengthASC, lengthATW, lengthAWD

Examples

n= 10; alp=0.05; h=2;a=1;b=1;PlotlengthAAS(n,alp,h,a,b)

Page 289: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotlengthAll 289

PlotlengthAll Plots the length summary for 6 base methods (Wald, Wald-T, Likeli-hood, Score, Logit-Wald, ArcSine)

Description

Plots the length summary for 6 base methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, Arc-Sine)

Usage

PlotlengthAll(n, alp, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots for 6 base methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine). Sum of thelength is shown as bar graph.

See Also

Other Expected length of base methods: PlotexplAS, PlotexplAll, PlotexplBA, PlotexplEX,PlotexplLR, PlotexplLT, PlotexplSC, PlotexplTW, PlotexplWD, PlotlengthAS, PlotlengthBA,PlotlengthEX, PlotlengthLR, PlotlengthLT, PlotlengthSC, PlotlengthTW, PlotlengthWD,lengthAS, lengthAll, lengthBA, lengthEX, lengthLR, lengthLT, lengthSC, lengthTW, lengthWD

Examples

## Not run:n= 10; alp=0.05; a=1;b=1;PlotlengthAll(n,alp,a,b)

## End(Not run)

Page 290: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

290 PlotlengthALR

PlotlengthALR Plots the summary length using adjusted Likelihood Ratio method

Description

Plots the summary length using adjusted Likelihood Ratio method

Usage

PlotlengthALR(n, alp, h, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots of the summary length of adjusted Likelihood Ratio method

See Also

Other Expected length of adjusted methods: PlotexplAAS, PlotexplAAll, PlotexplALR, PlotexplALT,PlotexplASC, PlotexplATW, PlotexplAWD, PlotlengthAAS, PlotlengthAAll, PlotlengthALT,PlotlengthASC, PlotlengthATW, PlotlengthAWD, lengthAAS, lengthAAll, lengthALR, lengthALT,lengthASC, lengthATW, lengthAWD

Examples

n= 10; alp=0.05; h=2;a=1;b=1;PlotlengthALR(n,alp,h,a,b)

Page 291: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotlengthALT 291

PlotlengthALT Plots the summary length using adjusted Logit Wald method

Description

Plots the summary length using adjusted Logit Wald method

Usage

PlotlengthALT(n, alp, h, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots of the summary length of adjusted Wald method

See Also

Other Expected length of adjusted methods: PlotexplAAS, PlotexplAAll, PlotexplALR, PlotexplALT,PlotexplASC, PlotexplATW, PlotexplAWD, PlotlengthAAS, PlotlengthAAll, PlotlengthALR,PlotlengthASC, PlotlengthATW, PlotlengthAWD, lengthAAS, lengthAAll, lengthALR, lengthALT,lengthASC, lengthATW, lengthAWD

Examples

n= 10; alp=0.05; h=2;a=1;b=1;PlotlengthALT(n,alp,h,a,b)

Page 292: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

292 PlotlengthASC

PlotlengthAS Plots ArcSine method of sum of length calculation

Description

Plots ArcSine method of sum of length calculation

Usage

PlotlengthAS(n, alp, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Plot of Wald-type interval for the arcsine transformation of the parameter p using sum of length ofthe n+ 1 intervals

See Also

Other Expected length of base methods: PlotexplAS, PlotexplAll, PlotexplBA, PlotexplEX,PlotexplLR, PlotexplLT, PlotexplSC, PlotexplTW, PlotexplWD, PlotlengthAll, PlotlengthBA,PlotlengthEX, PlotlengthLR, PlotlengthLT, PlotlengthSC, PlotlengthTW, PlotlengthWD,lengthAS, lengthAll, lengthBA, lengthEX, lengthLR, lengthLT, lengthSC, lengthTW, lengthWD

Examples

n=5; alp=0.05;a=1;b=1PlotlengthAS(n,alp,a,b)

PlotlengthASC Plots the summary length using adjusted Score method

Description

Plots the summary length using adjusted Score method

Usage

PlotlengthASC(n, alp, h, a, b)

Page 293: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotlengthATW 293

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots of the summary length of adjusted Score method

See Also

Other Expected length of adjusted methods: PlotexplAAS, PlotexplAAll, PlotexplALR, PlotexplALT,PlotexplASC, PlotexplATW, PlotexplAWD, PlotlengthAAS, PlotlengthAAll, PlotlengthALR,PlotlengthALT, PlotlengthATW, PlotlengthAWD, lengthAAS, lengthAAll, lengthALR, lengthALT,lengthASC, lengthATW, lengthAWD

Examples

n= 10; alp=0.05; h=2;a=1;b=1;PlotlengthASC(n,alp,h,a,b)

PlotlengthATW Plots the summary length using adjusted Wald-T method

Description

Plots the summary length using adjusted Wald-T method

Usage

PlotlengthATW(n, alp, h, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots of the summary length of adjusted Wald method

Page 294: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

294 PlotlengthAWD

See Also

Other Expected length of adjusted methods: PlotexplAAS, PlotexplAAll, PlotexplALR, PlotexplALT,PlotexplASC, PlotexplATW, PlotexplAWD, PlotlengthAAS, PlotlengthAAll, PlotlengthALR,PlotlengthALT, PlotlengthASC, PlotlengthAWD, lengthAAS, lengthAAll, lengthALR, lengthALT,lengthASC, lengthATW, lengthAWD

Examples

n= 10; alp=0.05; h=2;a=1;b=1;PlotlengthATW(n,alp,h,a,b)

PlotlengthAWD Plots the summary length using adjusted Wald method

Description

Plots the summary length using adjusted Wald method

Usage

PlotlengthAWD(n, alp, h, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots of the summary length of adjusted Wald method

See Also

Other Expected length of adjusted methods: PlotexplAAS, PlotexplAAll, PlotexplALR, PlotexplALT,PlotexplASC, PlotexplATW, PlotexplAWD, PlotlengthAAS, PlotlengthAAll, PlotlengthALR,PlotlengthALT, PlotlengthASC, PlotlengthATW, lengthAAS, lengthAAll, lengthALR, lengthALT,lengthASC, lengthATW, lengthAWD

Examples

n= 10; alp=0.05; h=2;a=1;b=1;PlotlengthAWD(n,alp,h,a,b)

Page 295: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotlengthBA 295

PlotlengthBA Plot the Bayesian method of length summary

Description

Plot the Bayesian method of length summary

Usage

PlotlengthBA(n, alp, a, b, a1, a2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

a1 - Beta Prior Parameters for Bayesian estimation

a2 - Beta Prior Parameters for Bayesian estimation

Details

Plots of Bayesian Highest Probability Density (HPD) and two tailed intervals using expected lengthof the n+1 intervals for the Beta - Binomial conjugate prior model for the probability of success p

Value

A dataframe with

See Also

Other Expected length of base methods: PlotexplAS, PlotexplAll, PlotexplBA, PlotexplEX,PlotexplLR, PlotexplLT, PlotexplSC, PlotexplTW, PlotexplWD, PlotlengthAS, PlotlengthAll,PlotlengthEX, PlotlengthLR, PlotlengthLT, PlotlengthSC, PlotlengthTW, PlotlengthWD,lengthAS, lengthAll, lengthBA, lengthEX, lengthLR, lengthLT, lengthSC, lengthTW, lengthWD

Examples

n=5; alp=0.05;a=1;b=1;a1=1;a2=1PlotlengthBA(n,alp,a,b,a1,a2)

Page 296: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

296 PlotlengthCAll

PlotlengthCAll Plots the sum of length for 5 continuity corrected methods (Wald,Wald-T, Score, Logit-Wald, ArcSine)

Description

Plots the sum of length for 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald,ArcSine)

Usage

PlotlengthCAll(n, alp, c, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots for 5 continuity corrected methods (Wald, Wald-T, Score, Logit-Wald, ArcSine). Sum ofthe length is shown as bar graph.

See Also

Other Expected length of continuity corrected methods: PlotexplCAS, PlotexplCAll, PlotexplCLT,PlotexplCSC, PlotexplCTW, PlotexplCWD, PlotlengthCAS, PlotlengthCLT, PlotlengthCSC,PlotlengthCTW, PlotlengthCWD, lengthCAS, lengthCAll, lengthCLT, lengthCSC, lengthCTW,lengthCWD

Examples

## Not run:n= 10; alp=0.05; c=1/(2*n);a=1;b=1;PlotlengthCAll(n,alp,c,a,b)

## End(Not run)

Page 297: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotlengthCAS 297

PlotlengthCAS Plots the sum of length using continuity corrected ArcSine method

Description

Plots the sum of length using continuity corrected ArcSine method

Usage

PlotlengthCAS(n, alp, c, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correctection

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots of the expected length of continuity corrected ArcSine method

See Also

Other Expected length of continuity corrected methods: PlotexplCAS, PlotexplCAll, PlotexplCLT,PlotexplCSC, PlotexplCTW, PlotexplCWD, PlotlengthCAll, PlotlengthCLT, PlotlengthCSC,PlotlengthCTW, PlotlengthCWD, lengthCAS, lengthCAll, lengthCLT, lengthCSC, lengthCTW,lengthCWD

Examples

n= 10; alp=0.05; c=1/(2*n);a=1;b=1;PlotlengthCAS(n,alp,c,a,b)

Page 298: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

298 PlotlengthCLT

PlotlengthCLT Plots the sum of length using continuity corrected Logit Wald method

Description

Plots the sum of length using continuity corrected Logit Wald method

Usage

PlotlengthCLT(n, alp, c, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correctection

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots of the expected length of continuity corrected Logit Wald method

See Also

Other Expected length of continuity corrected methods: PlotexplCAS, PlotexplCAll, PlotexplCLT,PlotexplCSC, PlotexplCTW, PlotexplCWD, PlotlengthCAS, PlotlengthCAll, PlotlengthCSC,PlotlengthCTW, PlotlengthCWD, lengthCAS, lengthCAll, lengthCLT, lengthCSC, lengthCTW,lengthCWD

Examples

n= 10; alp=0.05; c=1/(2*n);a=1;b=1;PlotlengthCLT(n,alp,c,a,b)

Page 299: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotlengthCSC 299

PlotlengthCSC Plots the sum of length using continuity corrected Score method

Description

Plots the sum of length using continuity corrected Score method

Usage

PlotlengthCSC(n, alp, c, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correctection

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots of the expected length of continuity corrected Score method

See Also

Other Expected length of continuity corrected methods: PlotexplCAS, PlotexplCAll, PlotexplCLT,PlotexplCSC, PlotexplCTW, PlotexplCWD, PlotlengthCAS, PlotlengthCAll, PlotlengthCLT,PlotlengthCTW, PlotlengthCWD, lengthCAS, lengthCAll, lengthCLT, lengthCSC, lengthCTW,lengthCWD

Examples

n= 10; alp=0.05; c=1/(2*n);a=1;b=1;PlotlengthCSC(n,alp,c,a,b)

Page 300: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

300 PlotlengthCTW

PlotlengthCTW Plots the sum of length using continuity corrected Wald-T method

Description

Plots the sum of length using continuity corrected Wald-T method

Usage

PlotlengthCTW(n, alp, c, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correctection

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots of the expected length of continuity corrected Wald-T method

See Also

Other Expected length of continuity corrected methods: PlotexplCAS, PlotexplCAll, PlotexplCLT,PlotexplCSC, PlotexplCTW, PlotexplCWD, PlotlengthCAS, PlotlengthCAll, PlotlengthCLT,PlotlengthCSC, PlotlengthCWD, lengthCAS, lengthCAll, lengthCLT, lengthCSC, lengthCTW,lengthCWD

Examples

n= 10; alp=0.05; c=1/(2*n);a=1;b=1;PlotlengthCTW(n,alp,c,a,b)

Page 301: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotlengthCWD 301

PlotlengthCWD Plots the sum of length using continuity corrected Wald method

Description

Plots the sum of length using continuity corrected Wald method

Usage

PlotlengthCWD(n, alp, c, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correctection

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plots of the expected length of continuity corrected Wald method

See Also

Other Expected length of continuity corrected methods: PlotexplCAS, PlotexplCAll, PlotexplCLT,PlotexplCSC, PlotexplCTW, PlotexplCWD, PlotlengthCAS, PlotlengthCAll, PlotlengthCLT,PlotlengthCSC, PlotlengthCTW, lengthCAS, lengthCAll, lengthCLT, lengthCSC, lengthCTW,lengthCWD

Examples

n= 10; alp=0.05; c=1/(2*n);a=1;b=1;PlotlengthCWD(n,alp,c,a,b)

Page 302: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

302 PlotlengthEX

PlotlengthEX Plots the length summary for exact method

Description

Plots the length summary for exact method

Usage

PlotlengthEX(n, alp, e, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

e - Exact method indicator in [0, 1] 1: Clopper Pearson, 0.5: Mid P The input canalso be a range of values between 0 and 1.

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Plot of Confidence interval for p based on inverting equal-tailed binomial tests with null hypothesisH0 : p = p0 using expected length of the n+ 1 intervals.

See Also

Other Expected length of base methods: PlotexplAS, PlotexplAll, PlotexplBA, PlotexplEX,PlotexplLR, PlotexplLT, PlotexplSC, PlotexplTW, PlotexplWD, PlotlengthAS, PlotlengthAll,PlotlengthBA, PlotlengthLR, PlotlengthLT, PlotlengthSC, PlotlengthTW, PlotlengthWD,lengthAS, lengthAll, lengthBA, lengthEX, lengthLR, lengthLT, lengthSC, lengthTW, lengthWD

Examples

## Not run:n=5; alp=0.05;e=0.5;a=1;b=1 # Mid-pPlotlengthEX(n,alp,e,a,b)n=5; alp=0.05;e=1;a=1;b=1 #Clopper-PearsonPlotlengthEX(n,alp,e,a,b)n=5; alp=0.05;e=c(0.1,0.5,0.95,1);a=1;b=1 #Range including Mid-p and Clopper-PearsonPlotlengthEX(n,alp,e,a,b)

## End(Not run)

Page 303: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotlengthGEN 303

PlotlengthGEN Plots the sum of lengths for a specific LL and UL

Description

Plots the sum of lengths for a specific LL and UL

Usage

PlotlengthGEN(n, LL, UL, hp)

Arguments

n - Number of trials

LL - Lower limit

UL - Upper limit

hp - Hypothetical "p"

Details

Plot of intervals obtained from any method using sum of the lengths for the n+ 1 intervals

See Also

Other Expected length: PlotexplGEN, PlotexplSIM, PlotlengthSIM, lengthGEN, lengthSIM

Examples

n= 5;LL=c(0,0.01,0.0734,0.18237,0.3344,0.5492) #Lower and Upper LimitsUL=c(0.4507,0.6655,0.8176,0.9265,0.9899,1)hp=seq(0,1,by=0.01)PlotlengthGEN(n,LL,UL,hp)

PlotlengthLR Plots likelihood Ratio method of sum of length calculation

Description

Plots likelihood Ratio method of sum of length calculation

Usage

PlotlengthLR(n, alp, a, b)

Page 304: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

304 PlotlengthLT

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Plot of Likelihood ratio limits using sum of length of the n+ 1 intervals

See Also

Other Expected length of base methods: PlotexplAS, PlotexplAll, PlotexplBA, PlotexplEX,PlotexplLR, PlotexplLT, PlotexplSC, PlotexplTW, PlotexplWD, PlotlengthAS, PlotlengthAll,PlotlengthBA, PlotlengthEX, PlotlengthLT, PlotlengthSC, PlotlengthTW, PlotlengthWD,lengthAS, lengthAll, lengthBA, lengthEX, lengthLR, lengthLT, lengthSC, lengthTW, lengthWD

Examples

n=5; alp=0.05;a=1;b=1PlotlengthLR(n,alp,a,b)

PlotlengthLT Plots Logit Wald method of sum of length calculation

Description

Plots Logit Wald method of sum of length calculation

Usage

PlotlengthLT(n, alp, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Plot of Wald-type interval based on the logit transformation of p using sum of length of the n + 1intervals

Page 305: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotlengthSC 305

See Also

Other Expected length of base methods: PlotexplAS, PlotexplAll, PlotexplBA, PlotexplEX,PlotexplLR, PlotexplLT, PlotexplSC, PlotexplTW, PlotexplWD, PlotlengthAS, PlotlengthAll,PlotlengthBA, PlotlengthEX, PlotlengthLR, PlotlengthSC, PlotlengthTW, PlotlengthWD,lengthAS, lengthAll, lengthBA, lengthEX, lengthLR, lengthLT, lengthSC, lengthTW, lengthWD

Examples

n=5; alp=0.05;a=1;b=1PlotlengthLT(n,alp,a,b)

PlotlengthSC Plots the length summary for Score method

Description

Plots the length summary for Score method

Usage

PlotlengthSC(n, alp, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Plot of score test approach using sum of length of the n+ 1 intervals

See Also

Other Expected length of base methods: PlotexplAS, PlotexplAll, PlotexplBA, PlotexplEX,PlotexplLR, PlotexplLT, PlotexplSC, PlotexplTW, PlotexplWD, PlotlengthAS, PlotlengthAll,PlotlengthBA, PlotlengthEX, PlotlengthLR, PlotlengthLT, PlotlengthTW, PlotlengthWD,lengthAS, lengthAll, lengthBA, lengthEX, lengthLR, lengthLT, lengthSC, lengthTW, lengthWD

Examples

n=5; alp=0.05;a=1;b=1PlotlengthSC(n,alp,a,b)

Page 306: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

306 PlotlengthSIM

PlotlengthSIM Plots the sum of length using calculated using simulation

Description

Plots the sum of length using calculated using simulation

Usage

PlotlengthSIM(n, LL, UL, s, a, b)

Arguments

n - Number of trials

LL - Lower limit

UL - Upper limit

s - Number of Hypothetical "p"

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

The plot of the expected length for n given lower limit LL and upper limit UL

See Also

Other Expected length: PlotexplGEN, PlotexplSIM, PlotlengthGEN, lengthGEN, lengthSIM

Examples

LL=c(0,0.01,0.0734,0.18237,0.3344,0.5492) #Lower and Upper LimitsUL=c(0.4507,0.6655,0.8176,0.9265,0.9899,1)n= 5; s=5000; a=1; b=1;PlotlengthSIM(n,LL,UL,s,a,b)

Page 307: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotlengthTW 307

PlotlengthTW Plots Wald-T method of sum of length calculation

Description

Plots Wald-T method of sum of length calculation

Usage

PlotlengthTW(n, alp, a, b)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Plot of approximate method based on a t_approximation of the standardized point estimator usingsum of length of the n+ 1 intervals

See Also

Other Expected length of base methods: PlotexplAS, PlotexplAll, PlotexplBA, PlotexplEX,PlotexplLR, PlotexplLT, PlotexplSC, PlotexplTW, PlotexplWD, PlotlengthAS, PlotlengthAll,PlotlengthBA, PlotlengthEX, PlotlengthLR, PlotlengthLT, PlotlengthSC, PlotlengthWD,lengthAS, lengthAll, lengthBA, lengthEX, lengthLR, lengthLT, lengthSC, lengthTW, lengthWD

Examples

n=5; alp=0.05;a=1;b=1PlotlengthTW(n,alp,a,b)

PlotlengthWD Plots the length summary for Wald method

Description

Plots the length summary for Wald method

Usage

PlotlengthWD(n, alp, a, b)

Page 308: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

308 PlotpCOpBIAAll

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a - Beta parameters for hypo "p"

b - Beta parameters for hypo "p"

Details

Evaluation of Wald-type intervals using sum of length of the n+ 1 intervals

See Also

Other Expected length of base methods: PlotexplAS, PlotexplAll, PlotexplBA, PlotexplEX,PlotexplLR, PlotexplLT, PlotexplSC, PlotexplTW, PlotexplWD, PlotlengthAS, PlotlengthAll,PlotlengthBA, PlotlengthEX, PlotlengthLR, PlotlengthLT, PlotlengthSC, PlotlengthTW,lengthAS, lengthAll, lengthBA, lengthEX, lengthLR, lengthLT, lengthSC, lengthTW, lengthWD

Examples

n=5; alp=0.05;a=1;b=1PlotlengthWD(n,alp,a,b)

PlotpCOpBIAAll Plots p-confidence and p-bias for a given n and alpha level for 6adjusted methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, Arc-Sine)

Description

Plots p-confidence and p-bias for a given n and alpha level for 6 adjusted methods (Wald, Wald-T,Likelihood, Score, Logit-Wald, ArcSine)

Usage

PlotpCOpBIAAll(n, alp, h)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

Details

Plots of p-confidence and p-bias for 6 adjusted methods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine)

Page 309: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotpCOpBIAAS 309

See Also

Other p-confidence and p-bias of adjusted methods: PlotpCOpBIAAS, PlotpCOpBIALR, PlotpCOpBIALT,PlotpCOpBIASC, PlotpCOpBIATW, PlotpCOpBIAWD, pCOpBIAAS, pCOpBIAAll, pCOpBIALR, pCOpBIALT,pCOpBIASC, pCOpBIATW, pCOpBIAWD

Examples

## Not run:n=5; alp=0.05;h=2PlotpCOpBIAAll(n,alp,h)

## End(Not run)

PlotpCOpBIAAS Plots p-confidence and p-bias for adjusted ArcSine method

Description

Plots p-confidence and p-bias for adjusted ArcSine method

Usage

PlotpCOpBIAAS(n, alp, h)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

Details

p-confidence and p-bias plots for adjusted ArcSine method

See Also

Other p-confidence and p-bias of adjusted methods: PlotpCOpBIAAll, PlotpCOpBIALR, PlotpCOpBIALT,PlotpCOpBIASC, PlotpCOpBIATW, PlotpCOpBIAWD, pCOpBIAAS, pCOpBIAAll, pCOpBIALR, pCOpBIALT,pCOpBIASC, pCOpBIATW, pCOpBIAWD

Examples

n=5; alp=0.05;h=2PlotpCOpBIAAS(n,alp,h)

Page 310: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

310 PlotpCOpBIAll

PlotpCOpBIAll Plots p-confidence and p-bias for a given n and alpha level for 6 basemethods (Wald, Wald-T, Likelihood, Score, Logit-Wald, ArcSine)

Description

Plots p-confidence and p-bias for a given n and alpha level for 6 base methods (Wald, Wald-T,Likelihood, Score, Logit-Wald, ArcSine)

Usage

PlotpCOpBIAll(n, alp)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Details

p-confidence and p-bias plots for 6 base methods (Wald, Wald-T, Likelihood, Score, Logit-Wald,ArcSine)

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of base methods: PlotpCOpBIAS, PlotpCOpBIBA, PlotpCOpBIEX,PlotpCOpBILR, PlotpCOpBILT, PlotpCOpBISC, PlotpCOpBITW, PlotpCOpBIWD, pCOpBIAS, pCOpBIAll,pCOpBIBA, pCOpBIEX, pCOpBILR, pCOpBILT, pCOpBISC, pCOpBITW, pCOpBIWD

Examples

## Not run:n=5; alp=0.05PlotpCOpBIAll(n,alp)

## End(Not run)

Page 311: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotpCOpBIALR 311

PlotpCOpBIALR Plots p-confidence and p-bias for adjusted Likelihood Ratio method

Description

Plots p-confidence and p-bias for adjusted Likelihood Ratio method

Usage

PlotpCOpBIALR(n, alp, h)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

Details

p-confidence and p-bias plots for adjusted Likelihood Ratio method

See Also

Other p-confidence and p-bias of adjusted methods: PlotpCOpBIAAS, PlotpCOpBIAAll, PlotpCOpBIALT,PlotpCOpBIASC, PlotpCOpBIATW, PlotpCOpBIAWD, pCOpBIAAS, pCOpBIAAll, pCOpBIALR, pCOpBIALT,pCOpBIASC, pCOpBIATW, pCOpBIAWD

Examples

n=5; alp=0.05;h=2PlotpCOpBIALR(n,alp,h)

PlotpCOpBIALT Plots p-confidence and p-bias for adjusted Logit Wald method

Description

Plots p-confidence and p-bias for adjusted Logit Wald method

Usage

PlotpCOpBIALT(n, alp, h)

Page 312: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

312 PlotpCOpBIAS

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

Details

p-confidence and p-bias plots for adjusted Logit Wald method

See Also

Other p-confidence and p-bias of adjusted methods: PlotpCOpBIAAS, PlotpCOpBIAAll, PlotpCOpBIALR,PlotpCOpBIASC, PlotpCOpBIATW, PlotpCOpBIAWD, pCOpBIAAS, pCOpBIAAll, pCOpBIALR, pCOpBIALT,pCOpBIASC, pCOpBIATW, pCOpBIAWD

Examples

n=5; alp=0.05;h=2PlotpCOpBIALT(n,alp,h)

PlotpCOpBIAS Plots p-confidence and p-bias for base ArcSine method

Description

Plots p-confidence and p-bias for base ArcSine method

Usage

PlotpCOpBIAS(n, alp)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Details

p-confidence and p-bias plots for base ArcSine method

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

Page 313: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotpCOpBIASC 313

See Also

Other p-confidence and p-bias of base methods: PlotpCOpBIAll, PlotpCOpBIBA, PlotpCOpBIEX,PlotpCOpBILR, PlotpCOpBILT, PlotpCOpBISC, PlotpCOpBITW, PlotpCOpBIWD, pCOpBIAS, pCOpBIAll,pCOpBIBA, pCOpBIEX, pCOpBILR, pCOpBILT, pCOpBISC, pCOpBITW, pCOpBIWD

Examples

n=5; alp=0.05PlotpCOpBIAS(n,alp)

PlotpCOpBIASC Plots p-confidence and p-bias for adjusted Score method

Description

Plots p-confidence and p-bias for adjusted Score method

Usage

PlotpCOpBIASC(n, alp, h)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

Details

p-confidence and p-bias plots for adjusted Score method

See Also

Other p-confidence and p-bias of adjusted methods: PlotpCOpBIAAS, PlotpCOpBIAAll, PlotpCOpBIALR,PlotpCOpBIALT, PlotpCOpBIATW, PlotpCOpBIAWD, pCOpBIAAS, pCOpBIAAll, pCOpBIALR, pCOpBIALT,pCOpBIASC, pCOpBIATW, pCOpBIAWD

Examples

n=5; alp=0.05;h=2PlotpCOpBIASC(n,alp,h)

Page 314: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

314 PlotpCOpBIAWD

PlotpCOpBIATW Plots p-confidence and p-bias for adjusted Wald-T method

Description

Plots p-confidence and p-bias for adjusted Wald-T method

Usage

PlotpCOpBIATW(n, alp, h)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

Details

p-confidence and p-bias plots for adjusted Wald-T method

See Also

Other p-confidence and p-bias of adjusted methods: PlotpCOpBIAAS, PlotpCOpBIAAll, PlotpCOpBIALR,PlotpCOpBIALT, PlotpCOpBIASC, PlotpCOpBIAWD, pCOpBIAAS, pCOpBIAAll, pCOpBIALR, pCOpBIALT,pCOpBIASC, pCOpBIATW, pCOpBIAWD

Examples

n=5; alp=0.05;h=2PlotpCOpBIATW(n,alp,h)

PlotpCOpBIAWD Plots p-confidence and p-bias for adjusted Wald method

Description

Plots p-confidence and p-bias for adjusted Wald method

Usage

PlotpCOpBIAWD(n, alp, h)

Page 315: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotpCOpBIBA 315

Arguments

n - Number of trials

alp - Alpha value (significance level required)

h - Adding factor

Details

p-confidence and p-bias plots for adjusted Wald method

See Also

Other p-confidence and p-bias of adjusted methods: PlotpCOpBIAAS, PlotpCOpBIAAll, PlotpCOpBIALR,PlotpCOpBIALT, PlotpCOpBIASC, PlotpCOpBIATW, pCOpBIAAS, pCOpBIAAll, pCOpBIALR, pCOpBIALT,pCOpBIASC, pCOpBIATW, pCOpBIAWD

Examples

n=5; alp=0.05;h=2PlotpCOpBIAWD(n,alp,h)

PlotpCOpBIBA Plots p-confidence and p-bias for Bayesian method given n and alphalevel and priors a & b

Description

Plots p-confidence and p-bias for Bayesian method given n and alpha level and priors a & b

Usage

PlotpCOpBIBA(n, alp, a1, a2)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

a1 - Shape parameter 1 for prior Beta distribution in Bayesian model

a2 - Shape parameter 2 for prior Beta distribution in Bayesian model

Details

Evaluation of Bayesian Highest Probability Density (HPD) and two tailed intervals using p-confidenceand p-bias for the n+ 1 intervals for the Beta - Binomial conjugate prior model for the probabilityof success p

Page 316: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

316 PlotpCOpBICAll

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of base methods: PlotpCOpBIAS, PlotpCOpBIAll, PlotpCOpBIEX,PlotpCOpBILR, PlotpCOpBILT, PlotpCOpBISC, PlotpCOpBITW, PlotpCOpBIWD, pCOpBIAS, pCOpBIAll,pCOpBIBA, pCOpBIEX, pCOpBILR, pCOpBILT, pCOpBISC, pCOpBITW, pCOpBIWD

Examples

n=5; alp=0.05;a1=1;a2=1PlotpCOpBIBA(n,alp,a1,a2)

PlotpCOpBICAll Plots p-confidence and p-bias for a given n and alpha level for 5 con-tinuity corrected methods (Wald, Wald-T, Score, Logit-Wald, ArcSine)

Description

Plots p-confidence and p-bias for a given n and alpha level for 5 continuity corrected methods (Wald,Wald-T, Score, Logit-Wald, ArcSine)

Usage

PlotpCOpBICAll(n, alp, c)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

Plots of p-Confidence and p-Bias estimation of 5 continuity corrected methods (Wald, Wald-T,Score, Logit-Wald, ArcSine)

See Also

Other p-confidence and p-bias of continuity corrected methods: PlotpCOpBICAS, PlotpCOpBICLT,PlotpCOpBICSC, PlotpCOpBICTW, PlotpCOpBICWD, pCOpBICAS, pCOpBICAll, pCOpBICLT, pCOpBICSC,pCOpBICTW, pCOpBICWD

Page 317: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotpCOpBICAS 317

Examples

## Not run:n=5; alp=0.05;c=1/(2*n)PlotpCOpBICAll(n,alp,c)

## End(Not run)

PlotpCOpBICAS Plots p-confidence and p-bias for continuity corrected ArcSine method

Description

Plots p-confidence and p-bias for continuity corrected ArcSine method

Usage

PlotpCOpBICAS(n, alp, c)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

p-confidence and p-bias plots for continuity corrected ArcSine method

See Also

Other p-confidence and p-bias of continuity corrected methods: PlotpCOpBICAll, PlotpCOpBICLT,PlotpCOpBICSC, PlotpCOpBICTW, PlotpCOpBICWD, pCOpBICAS, pCOpBICAll, pCOpBICLT, pCOpBICSC,pCOpBICTW, pCOpBICWD

Examples

n=5; alp=0.05;c=1/(2*n)PlotpCOpBICAS(n,alp,c)

Page 318: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

318 PlotpCOpBICSC

PlotpCOpBICLT Plots p-confidence and p-bias for continuity corrected Logit Waldmethod

Description

Plots p-confidence and p-bias for continuity corrected Logit Wald method

Usage

PlotpCOpBICLT(n, alp, c)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

p-confidence and p-bias plots for continuity corrected Logit Wald method

See Also

Other p-confidence and p-bias of continuity corrected methods: PlotpCOpBICAS, PlotpCOpBICAll,PlotpCOpBICSC, PlotpCOpBICTW, PlotpCOpBICWD, pCOpBICAS, pCOpBICAll, pCOpBICLT, pCOpBICSC,pCOpBICTW, pCOpBICWD

Examples

n=5; alp=0.05;c=1/(2*n)PlotpCOpBICLT(n,alp,c)

PlotpCOpBICSC Plots p-confidence and p-bias for continuity corrected Score method

Description

Plots p-confidence and p-bias for continuity corrected Score method

Usage

PlotpCOpBICSC(n, alp, c)

Page 319: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotpCOpBICTW 319

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

p-confidence and p-bias plots for continuity corrected Score method

See Also

Other p-confidence and p-bias of continuity corrected methods: PlotpCOpBICAS, PlotpCOpBICAll,PlotpCOpBICLT, PlotpCOpBICTW, PlotpCOpBICWD, pCOpBICAS, pCOpBICAll, pCOpBICLT, pCOpBICSC,pCOpBICTW, pCOpBICWD

Examples

n=5; alp=0.05;c=1/(2*n)PlotpCOpBICSC(n,alp,c)

PlotpCOpBICTW Plots p-confidence and p-bias for continuity corrected Wald-T method

Description

Plots p-confidence and p-bias for continuity corrected Wald-T method

Usage

PlotpCOpBICTW(n, alp, c)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

p-confidence and p-bias plots for continuity corrected Wald-T method

See Also

Other p-confidence and p-bias of continuity corrected methods: PlotpCOpBICAS, PlotpCOpBICAll,PlotpCOpBICLT, PlotpCOpBICSC, PlotpCOpBICWD, pCOpBICAS, pCOpBICAll, pCOpBICLT, pCOpBICSC,pCOpBICTW, pCOpBICWD

Page 320: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

320 PlotpCOpBICWD

Examples

n=5; alp=0.05;c=1/(2*n)PlotpCOpBICTW(n,alp,c)

PlotpCOpBICWD Plots p-confidence and p-bias for continuity corrected Wald method

Description

Plots p-confidence and p-bias for continuity corrected Wald method

Usage

PlotpCOpBICWD(n, alp, c)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

c - Continuity correction

Details

p-confidence and p-bias plots for continuity corrected Wald method

See Also

Other p-confidence and p-bias of continuity corrected methods: PlotpCOpBICAS, PlotpCOpBICAll,PlotpCOpBICLT, PlotpCOpBICSC, PlotpCOpBICTW, pCOpBICAS, pCOpBICAll, pCOpBICLT, pCOpBICSC,pCOpBICTW, pCOpBICWD

Examples

n=5; alp=0.05;c=1/(2*n)PlotpCOpBICWD(n,alp,c)

Page 321: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotpCOpBIEX 321

PlotpCOpBIEX Plots of p-confidence and p-bias of Exact method given n and alphalevel

Description

Plots of p-confidence and p-bias of Exact method given n and alpha level

Usage

PlotpCOpBIEX(n, alp, e)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

e - Exact method indicator in [0, 1] 1: Clopper Pearson, 0.5: Mid P The input canalso be a range of values between 0 and 1.

Details

Evaluation of Confidence interval for p based on inverting equal-tailed binomial tests with nullhypothesis H0 : p = p0 using p-confidence and p-bias for the n+ 1 intervals

Value

A dataframe with

x1 Number of successes (positive samples)

pconf p-Confidence

pbias p-Bias

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of base methods: PlotpCOpBIAS, PlotpCOpBIAll, PlotpCOpBIBA,PlotpCOpBILR, PlotpCOpBILT, PlotpCOpBISC, PlotpCOpBITW, PlotpCOpBIWD, pCOpBIAS, pCOpBIAll,pCOpBIBA, pCOpBIEX, pCOpBILR, pCOpBILT, pCOpBISC, pCOpBITW, pCOpBIWD

Page 322: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

322 PlotpCOpBIGEN

Examples

n=5; alp=0.05;e=0.5; # Mid-pPlotpCOpBIEX(n,alp,e)n=5; alp=0.05;e=1; #Clopper-PearsonPlotpCOpBIEX(n,alp,e)n=5; alp=0.05;e=c(0.1,0.5,0.95,1); #Range including Mid-p and Clopper-PearsonPlotpCOpBIEX(n,alp,e)

PlotpCOpBIGEN Plots p-Confidence and p-Bias estimation for general method

Description

Plots p-Confidence and p-Bias estimation for general method

Usage

PlotpCOpBIGEN(n, LL, UL)

Arguments

n - Number of trials

LL - Lower limit

UL - Upper limit

Details

Plot of the general method - intervals obtained from any method using p-confidence and p-bias forthe n+ 1 intervals

See Also

Other General methods for p-Confidence and p-Bias: pCOpBIGEN

Examples

LL=c(0,0.01,0.0734,0.18237,0.3344,0.5492) #Lower and Upper LimitsUL=c(0.4507,0.6655,0.8176,0.9265,0.9899,1)n=5;PlotpCOpBIGEN(n,LL,UL)

Page 323: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotpCOpBILR 323

PlotpCOpBILR Plots p-confidence and p-bias for base Likelihood Ratio method

Description

Plots p-confidence and p-bias for base Likelihood Ratio method

Usage

PlotpCOpBILR(n, alp)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Details

p-confidence and p-bias plots for base Likelihood Ratio method

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of base methods: PlotpCOpBIAS, PlotpCOpBIAll, PlotpCOpBIBA,PlotpCOpBIEX, PlotpCOpBILT, PlotpCOpBISC, PlotpCOpBITW, PlotpCOpBIWD, pCOpBIAS, pCOpBIAll,pCOpBIBA, pCOpBIEX, pCOpBILR, pCOpBILT, pCOpBISC, pCOpBITW, pCOpBIWD

Examples

n=5; alp=0.05PlotpCOpBILR(n,alp)

Page 324: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

324 PlotpCOpBILT

PlotpCOpBILT Plots p-confidence and p-bias for base Logit Wald method

Description

Plots p-confidence and p-bias for base Logit Wald method

Usage

PlotpCOpBILT(n, alp)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Details

p-confidence and p-bias plots for base Logit Wald method

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of base methods: PlotpCOpBIAS, PlotpCOpBIAll, PlotpCOpBIBA,PlotpCOpBIEX, PlotpCOpBILR, PlotpCOpBISC, PlotpCOpBITW, PlotpCOpBIWD, pCOpBIAS, pCOpBIAll,pCOpBIBA, pCOpBIEX, pCOpBILR, pCOpBILT, pCOpBISC, pCOpBITW, pCOpBIWD

Examples

n=5; alp=0.05PlotpCOpBILT(n,alp)

Page 325: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotpCOpBISC 325

PlotpCOpBISC Plots p-confidence and p-bias for base Score method

Description

Plots p-confidence and p-bias for base Score method

Usage

PlotpCOpBISC(n, alp)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Details

p-confidence and p-bias plots for base Score method

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of base methods: PlotpCOpBIAS, PlotpCOpBIAll, PlotpCOpBIBA,PlotpCOpBIEX, PlotpCOpBILR, PlotpCOpBILT, PlotpCOpBITW, PlotpCOpBIWD, pCOpBIAS, pCOpBIAll,pCOpBIBA, pCOpBIEX, pCOpBILR, pCOpBILT, pCOpBISC, pCOpBITW, pCOpBIWD

Examples

n=5; alp=0.05PlotpCOpBISC(n,alp)

Page 326: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

326 PlotpCOpBITW

PlotpCOpBITW Plots p-confidence and p-bias for base Wald-T method

Description

Plots p-confidence and p-bias for base Wald-T method

Usage

PlotpCOpBITW(n, alp)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Details

p-confidence and p-bias plots for base Wald-T method

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of base methods: PlotpCOpBIAS, PlotpCOpBIAll, PlotpCOpBIBA,PlotpCOpBIEX, PlotpCOpBILR, PlotpCOpBILT, PlotpCOpBISC, PlotpCOpBIWD, pCOpBIAS, pCOpBIAll,pCOpBIBA, pCOpBIEX, pCOpBILR, pCOpBILT, pCOpBISC, pCOpBITW, pCOpBIWD

Examples

n=5; alp=0.05PlotpCOpBITW(n,alp)

Page 327: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

PlotpCOpBIWD 327

PlotpCOpBIWD Plots p-confidence and p-bias for base Wald method

Description

Plots p-confidence and p-bias for base Wald method

Usage

PlotpCOpBIWD(n, alp)

Arguments

n - Number of trials

alp - Alpha value (significance level required)

Details

p-confidence and p-bias plots for base Wald method

References

[1] 2005 Vos PW and Hudson S. Evaluation Criteria for Discrete Confidence Intervals: BeyondCoverage and Length. The American Statistician: 59; 137 - 142.

See Also

Other p-confidence and p-bias of base methods: PlotpCOpBIAS, PlotpCOpBIAll, PlotpCOpBIBA,PlotpCOpBIEX, PlotpCOpBILR, PlotpCOpBILT, PlotpCOpBISC, PlotpCOpBITW, pCOpBIAS, pCOpBIAll,pCOpBIBA, pCOpBIEX, pCOpBILR, pCOpBILT, pCOpBISC, pCOpBITW, pCOpBIWD

Examples

n=5; alp=0.05PlotpCOpBIWD(n,alp)

Page 328: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

328 probPOS

probPOS Bayesian posterior Probabilities

Description

Bayesian posterior Probabilities

Usage

probPOS(n, a, b, th)

Arguments

n - Number of trials

a - Prior Parameters

b - Prior Parameters

th - Theta value seeking Pr(Theta/X < th)

Details

Computes probability of the event p < p0 (p0 is specified in [0, 1]) based on posterior distributionof Beta-Binomial model with given parameters for prior Beta distribution for all x = 0, 1, 2......nwhere n is the number of trials

Value

A dataframe with

x Number of successes

PosProb Posterior probability

References

[1] 2002 Gelman A, Carlin JB, Stern HS and Dunson DB Bayesian Data Analysis, Chapman &Hall/CRC [2] 2006 Ghosh M, Delampady M and Samanta T. An introduction to Bayesian analysis:Theory and Methods. Springer, New York

See Also

Other Miscellaneous functions for Bayesian method: empericalBAx, empericalBA, probPOSx,probPREx, probPRE

Examples

n=5; a=0.5; b=0.5; th=0.5;probPOS(n,a,b,th)

Page 329: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

probPOSx 329

probPOSx Bayesian posterior Probabilities

Description

Bayesian posterior Probabilities

Usage

probPOSx(x, n, a, b, th)

Arguments

x - Number of successes

n - Number of trials

a - Prior Parameters

b - Prior Parameters

th - Theta value seeking Pr(Theta/X < th)

Details

Computes probability of the event p < p0 (p0 is specified in [0, 1]) based on posterior distributionof Beta-Binomial model with given parameters for prior Beta distribution for all x = 0, 1, 2......nwhere n is the number of trials

Value

A dataframe with

x Number of successes

PosProb Posterior probability

References

[1] 2002 Gelman A, Carlin JB, Stern HS and Dunson DB Bayesian Data Analysis, Chapman &Hall/CRC [2] 2006 Ghosh M, Delampady M and Samanta T. An introduction to Bayesian analysis:Theory and Methods. Springer, New York

See Also

Other Miscellaneous functions for Bayesian method: empericalBAx, empericalBA, probPOS, probPREx,probPRE

Examples

x=5; n=5; a=0.5; b=0.5; th=0.5;probPOSx(x,n,a,b,th)

Page 330: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

330 probPRE

probPRE The Predicted probability - Bayesian approach

Description

The Predicted probability - Bayesian approach

Usage

probPRE(n, m, a1, a2)

Arguments

n - Number of trials from data

m - Future :Number of trials

a1 - Beta Prior Parameters for Bayesian estimation

a2 - Beta Prior Parameters for Bayesian estimation

Details

Computes posterior predictive probabilities for the required size of number of trials m from the givennumber of trials n for the given parameters for Beta prior distribution

Value

A matrix of probability values between [0,1]

predicted_probability

- The predicted probability

0:n The number of columns based on the value of n

References

[1] 2002 Gelman A, Carlin JB, Stern HS and Dunson DB Bayesian Data Analysis, Chapman &Hall/CRC

See Also

Other Miscellaneous functions for Bayesian method: empericalBAx, empericalBA, probPOSx,probPOS, probPREx

Examples

n=10; m=5; a1=0.5; a2=0.5probPRE(n,m,a1,a2)

Page 331: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

probPREx 331

probPREx The Predicted probability - Bayesian approach

Description

The Predicted probability - Bayesian approach

Usage

probPREx(x, n, xnew, m, a1, a2)

Arguments

x - Number of successes

n - Number of trials from data

xnew - Required size of number of success

m - Future :Number of trials

a1 - Beta Prior Parameters for Bayesian estimation

a2 - Beta Prior Parameters for Bayesian estimation

Details

Computes posterior predictive probability for the required size of number of successes for xnew ofm trials from the given number of successes x of n trials for the given parameters for Beta priordistribution

Value

A dataframe with x,n,xnew,m,preprb

x Number of successes

n Number of trials

xnew Required size of number of success

m Future - success, trails

preprb The predicted probability

References

[1] 2002 Gelman A, Carlin JB, Stern HS and Dunson DB Bayesian Data Analysis, Chapman &Hall/CRC

See Also

Other Miscellaneous functions for Bayesian method: empericalBAx, empericalBA, probPOSx,probPOS, probPRE

Page 332: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

332 probPREx

Examples

x=0; n=1; xnew=10; m=10; a1=1; a2=1probPREx(x,n,xnew,m,a1,a2)

Page 333: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

Index

A package for binomial proportion, 8A package for binomial

proportion-package (A packagefor binomial proportion), 8

binom.blaker.limits, 11, 12, 14–16, 18–20,22–24, 26–28, 30–33, 35, 36, 38–41,43–46, 48–51, 53, 55–57, 59, 60, 62,63, 65, 66, 68, 69

binom.confint, 11, 12, 14–16, 18–20, 22–24,26–28, 30–33, 35, 36, 38–41, 43–46,48–51, 53, 55–57, 59, 60, 62, 63, 65,66, 68, 69

binom.test, 11, 12, 14–16, 18–20, 22–24,26–28, 30–33, 35, 36, 38–41, 43–46,48–51, 53, 55–57, 59, 60, 62, 63, 65,66, 68, 69

ciAAll, 10, 14, 19, 22, 26, 30, 32, 200, 201,203, 207, 209, 210

ciAAllx, 11, 15, 20, 23, 27, 31, 33, 202ciAAS, 11, 13, 19, 22, 26, 30, 32, 200, 201,

203, 207, 209, 210ciAASx, 12, 14, 20, 23, 27, 31, 33, 202ciAll, 15, 24, 35, 53, 56, 59, 62, 65, 68, 204,

208, 211, 218, 220–223ciAllx, 17, 28, 36, 55, 58, 60, 63, 66, 69, 205,

206, 219ciALR, 11, 14, 18, 22, 26, 30, 32, 200, 201,

203, 207, 209, 210ciALRx, 12, 15, 19, 23, 27, 31, 33, 202ciALT, 11, 14, 19, 21, 26, 30, 32, 200, 201,

203, 207, 209, 210ciALTx, 12, 15, 20, 22, 27, 31, 33, 202ciAS, 16, 23, 35, 53, 56, 59, 62, 65, 68, 204,

208, 211, 218, 220–223ciASC, 11, 14, 19, 22, 25, 30, 32, 200, 201,

203, 207, 209, 210ciASCx, 12, 15, 20, 23, 26, 31, 33, 202

ciASx, 18, 27, 36, 55, 58, 60, 63, 66, 69, 205,206, 219

ciATW, 11, 14, 19, 22, 26, 29, 32, 200, 201,203, 207, 209, 210

ciATWx, 12, 15, 20, 23, 27, 30, 33, 202ciAWD, 11, 14, 19, 22, 26, 30, 31, 200, 201,

203, 207, 209, 210ciAWDx, 12, 15, 20, 23, 27, 31, 32, 202ciBA, 16, 24, 34, 53, 56, 59, 62, 65, 68, 204,

208, 211, 218, 220–223ciBAx, 18, 28, 35, 55, 58, 60, 63, 66, 69, 205,

206, 219ciCAll, 37, 40, 43, 45, 48, 50, 212, 215–218ciCAllx, 38, 44, 46, 49, 51, 213, 214ciCAS, 38, 39, 43, 45, 48, 50, 212, 215–218ciCASx, 40ciCLT, 38, 40, 42, 45, 48, 50, 212, 215–218ciCLTx, 39, 43, 46, 49, 51, 213, 214ciCSC, 38, 40, 43, 44, 48, 50, 212, 215–218ciCSCx, 39, 44, 45, 49, 51, 213, 214ciCTW, 38, 40, 43, 45, 47, 50, 212, 215–218ciCTWx, 39, 44, 46, 48, 51, 213, 214ciCWD, 38, 40, 43, 45, 48, 49, 212, 215–218ciCWDx, 39, 44, 46, 49, 50, 213, 214ciEX, 16, 24, 35, 52, 56, 59, 62, 65, 68, 204,

208, 211, 218, 220–223ciEXx, 18, 28, 36, 53, 58, 60, 63, 66, 69, 205,

206, 219ciLR, 16, 24, 35, 53, 55, 59, 62, 65, 68, 204,

208, 211, 218, 220–223ciLRx, 18, 28, 36, 55, 56, 60, 63, 66, 69, 205,

206, 219ciLT, 16, 24, 35, 53, 56, 58, 62, 65, 68, 204,

208, 211, 218, 220–223ciLTx, 18, 28, 36, 55, 58, 59, 63, 66, 69, 205,

206, 219ciSC, 16, 24, 35, 53, 56, 59, 61, 65, 68, 204,

208, 211, 218, 220–223ciSCx, 18, 28, 36, 55, 58, 60, 62, 66, 69, 205,

333

Page 334: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

334 INDEX

206, 219ciTW, 16, 24, 35, 53, 56, 59, 62, 64, 68, 204,

208, 211, 218, 220–223ciTWx, 18, 28, 36, 55, 58, 60, 63, 65, 69, 205,

206, 219ciWD, 16, 24, 35, 53, 56, 59, 62, 65, 67, 204,

208, 211, 218, 220–223ciWDx, 18, 28, 36, 55, 58, 60, 63, 66, 68, 205,

206, 219covpAAll, 70, 72, 75, 76, 79, 80, 82, 223, 224,

226, 227, 229–231covpAAS, 71, 71, 75, 76, 79, 80, 82, 223, 224,

226, 227, 229–231covpAll, 72, 78, 83, 93, 95, 97, 98, 101, 102,

225, 228, 232, 239, 241–243, 245,246

covpALR, 71, 72, 74, 76, 79, 80, 82, 223, 224,226, 227, 229–231

covpALT, 71, 72, 75, 75, 79, 80, 82, 223, 224,226, 227, 229–231

covpAS, 74, 77, 83, 93, 95, 97, 98, 101, 102,225, 228, 232, 239, 241–243, 245,246

covpASC, 71, 72, 75, 76, 78, 80, 82, 223, 224,226, 227, 229–231

covpATW, 71, 72, 75, 76, 79, 79, 82, 223, 224,226, 227, 229–231

covpAWD, 71, 72, 75, 76, 79, 80, 81, 223, 224,226, 227, 229–231

covpBA, 74, 78, 82, 93, 95, 97, 98, 101, 102,225, 228, 232, 239, 241–243, 245,246

covpCAll, 84, 86, 87, 89–91, 233–238covpCAS, 85, 85, 87, 89–91, 233–238covpCLT, 85, 86, 86, 89–91, 233–238covpCSC, 85–87, 88, 90, 91, 233–238covpCTW, 85–87, 89, 89, 91, 233–238covpCWD, 85–87, 89, 90, 90, 233–238covpEX, 74, 78, 83, 91, 95, 97, 98, 101, 102,

225, 228, 232, 239, 241–243, 245,246

covpGEN, 93, 240covpLR, 74, 78, 83, 93, 94, 97, 98, 101, 102,

225, 228, 232, 239, 241–243, 245,246

covpLT, 74, 78, 83, 93, 95, 96, 98, 101, 102,225, 228, 232, 239, 241–243, 245,246

covpSC, 74, 78, 83, 93, 95, 97, 97, 101, 102,225, 228, 232, 239, 241–243, 245,246

covpSIM, 99, 244covpTW, 74, 78, 83, 93, 95, 97, 98, 100, 102,

225, 228, 232, 239, 241–243, 245,246

covpWD, 74, 78, 83, 93, 95, 97, 98, 101, 101,225, 228, 232, 239, 241–243, 245,246

empericalBA, 103, 105, 328–331empericalBAx, 103, 104, 328–331errAAll, 105, 107, 109, 110, 112–114, 247,

248, 250, 252, 253errAAS, 106, 106, 109, 110, 112–114, 247,

248, 250, 252, 253errAll, 107, 111, 115, 122, 124–128, 249,

251, 254, 260–263errALR, 106, 107, 108, 110, 112–114, 247,

248, 250, 252, 253errALT, 106, 107, 109, 109, 112–114, 247,

248, 250, 252, 253errAS, 108, 110, 115, 122, 124–128, 249, 251,

254, 260–263errASC, 106, 107, 109, 110, 111, 113, 114,

247, 248, 250, 252, 253errATW, 106, 107, 109, 110, 112, 112, 114,

247, 248, 250, 252, 253errAWD, 106, 107, 109, 110, 112, 113, 113,

247, 248, 250, 252, 253errBA, 108, 111, 114, 122, 124–128, 249, 251,

254, 260–263errCAll, 115, 117–121, 255–259errCAS, 116, 116, 118–121, 255–259errCLT, 116, 117, 117, 119–121, 255–259errCSC, 116–118, 118, 120, 121, 255–259errCTW, 116–119, 119, 121, 255–259errCWD, 116–120, 120, 255–259errEX, 108, 111, 115, 121, 124–128, 249, 251,

254, 260–263errGEN, 122errLR, 108, 111, 115, 122, 123, 125–128, 249,

251, 254, 260–263errLT, 108, 111, 115, 122, 124, 124, 126–128,

249, 251, 254, 260–263errSC, 108, 111, 115, 122, 124, 125, 125, 127,

128, 249, 251, 254, 260–263

Page 335: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

INDEX 335

errTW, 108, 111, 115, 122, 124–126, 126, 128,249, 251, 254, 260–263

errWD, 108, 111, 115, 122, 124–127, 127, 249,251, 254, 260–263

hypotestBAF1, 128, 131–133, 135–137,139–141, 143, 144

hypotestBAF1x, 129, 130, 132, 133, 135–137,139–141, 143, 144

hypotestBAF2, 129, 131, 131, 133, 135–137,139–141, 143, 144

hypotestBAF2x, 129, 131, 132, 132, 135–137,139–141, 143, 144

hypotestBAF3, 129, 131–133, 134, 136, 137,139–141, 143, 144

hypotestBAF3x, 129, 131–133, 135, 135, 137,139–141, 143, 144

hypotestBAF4, 129, 131–133, 135, 136, 136,139–141, 143, 144

hypotestBAF4x, 129, 131–133, 135–137, 138,140, 141, 143, 144

hypotestBAF5, 129, 131–133, 135–137, 139,139, 141, 143, 144

hypotestBAF5x, 129, 131–133, 135–137, 139,140, 140, 143, 144

hypotestBAF6, 129, 131–133, 135–137,139–141, 142, 144

hypotestBAF6x, 129, 131–133, 135–137,139–141, 143, 143

lengthAAll, 145, 147, 150, 151, 154–156,264, 265, 267, 268, 270–272, 287,288, 290, 291, 293, 294

lengthAAS, 146, 146, 150, 151, 154–156, 264,265, 267, 268, 270–272, 287, 288,290, 291, 293, 294

lengthAll, 147, 152, 158, 167, 169, 171, 172,175, 176, 266, 269, 273, 280, 282,283, 285, 286, 289, 292, 295, 302,304, 305, 307, 308

lengthALR, 146, 147, 149, 151, 154–156, 264,265, 267, 268, 270–272, 287, 288,290, 291, 293, 294

lengthALT, 146, 147, 150, 150, 154–156, 264,265, 267, 268, 270–272, 287, 288,290, 291, 293, 294

lengthAS, 148, 151, 158, 167, 169, 171, 172,175, 176, 266, 269, 273, 280, 282,

283, 285, 286, 289, 292, 295, 302,304, 305, 307, 308

lengthASC, 146, 147, 150, 151, 153, 155, 156,264, 265, 267, 268, 270–272, 287,288, 290, 291, 293, 294

lengthATW, 146, 147, 150, 151, 154, 154, 156,264, 265, 267, 268, 270–272, 287,288, 290, 291, 293, 294

lengthAWD, 146, 147, 150, 151, 154, 155, 155,264, 265, 267, 268, 270–272, 287,288, 290, 291, 293, 294

lengthBA, 148, 152, 156, 167, 169, 171, 172,175, 176, 266, 269, 273, 280, 282,283, 285, 286, 289, 292, 295, 302,304, 305, 307, 308

lengthCAll, 158, 160, 161, 163–165,274–279, 296–301

lengthCAS, 159, 159, 161, 163–165, 274–279,296–301

lengthCLT, 159, 160, 160, 163–165, 274–279,296–301

lengthCSC, 159–161, 162, 164, 165, 274–279,296–301

lengthCTW, 159–161, 163, 163, 165, 274–279,296–301

lengthCWD, 159–161, 163, 164, 164, 274–279,296–301

lengthEX, 148, 152, 158, 165, 169, 171, 172,175, 176, 266, 269, 273, 280, 282,283, 285, 286, 289, 292, 295, 302,304, 305, 307, 308

lengthGEN, 167, 173, 281, 284, 303, 306lengthLR, 148, 152, 158, 167, 168, 171, 172,

175, 176, 266, 269, 273, 280, 282,283, 285, 286, 289, 292, 295, 302,304, 305, 307, 308

lengthLT, 148, 152, 158, 167, 169, 170, 172,175, 176, 266, 269, 273, 280, 282,283, 285, 286, 289, 292, 295, 302,304, 305, 307, 308

lengthSC, 148, 152, 158, 167, 169, 171, 171,175, 176, 266, 269, 273, 280, 282,283, 285, 286, 289, 292, 295, 302,304, 305, 307, 308

lengthSIM, 168, 173, 281, 284, 303, 306lengthTW, 148, 152, 158, 167, 169, 171, 172,

174, 176, 266, 269, 273, 280, 282,283, 285, 286, 289, 292, 295, 302,

Page 336: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

336 INDEX

304, 305, 307, 308lengthWD, 148, 152, 158, 167, 169, 171, 172,

175, 175, 266, 269, 273, 280, 282,283, 285, 286, 289, 292, 295, 302,304, 305, 307, 308

pCOpBIAAll, 177, 178, 180, 181, 183–185,309, 311–315

pCOpBIAAS, 177, 178, 180, 181, 183–185, 309,311–315

pCOpBIAll, 179, 182, 186, 193, 195–199, 310,313, 316, 321, 323–327

pCOpBIALR, 177, 178, 180, 181, 183–185, 309,311–315

pCOpBIALT, 177, 178, 180, 181, 183–185, 309,311–315

pCOpBIAS, 179, 182, 186, 193, 195–199, 310,313, 316, 321, 323–327

pCOpBIASC, 177, 178, 180, 181, 183, 184, 185,309, 311–315

pCOpBIATW, 177, 178, 180, 181, 183, 184, 185,309, 311–315

pCOpBIAWD, 177, 178, 180, 181, 183, 184, 185,309, 311–315

pCOpBIBA, 179, 182, 186, 193, 195–199, 310,313, 316, 321, 323–327

pCOpBICAll, 187, 188–192, 316–320pCOpBICAS, 187, 188, 189–192, 316–320pCOpBICLT, 187, 188, 189, 190–192, 316–320pCOpBICSC, 187–189, 190, 191, 192, 316–320pCOpBICTW, 187–190, 191, 192, 316–320pCOpBICWD, 187–191, 192, 316–320pCOpBIEX, 179, 182, 186, 193, 195–199, 310,

313, 316, 321, 323–327pCOpBIGEN, 194, 322pCOpBILR, 179, 182, 186, 193, 195, 196–199,

310, 313, 316, 321, 323–327pCOpBILT, 179, 182, 186, 193, 195, 196,

197–199, 310, 313, 316, 321,323–327

pCOpBISC, 179, 182, 186, 193, 195, 196, 197,198, 199, 310, 313, 316, 321,323–327

pCOpBITW, 179, 182, 186, 193, 195–197, 198,199, 310, 313, 316, 321, 323–327

pCOpBIWD, 179, 182, 186, 193, 195–198, 199,310, 313, 316, 321, 323–327

PlotciAAll, 11, 14, 19, 22, 26, 30, 32, 200,201, 203, 207, 209, 210

PlotciAAllg, 11, 14, 19, 22, 26, 30, 32, 200,200, 203, 207, 209, 210

PlotciAAllx, 12, 15, 20, 23, 27, 31, 33, 201PlotciAAllxg, 202PlotciAAS, 11, 14, 19, 22, 26, 30, 32, 200,

201, 203, 207, 209, 210PlotciAll, 16, 24, 35, 53, 56, 59, 62, 65, 68,

203, 204, 208, 211, 218, 220–223PlotciAllg, 16, 24, 35, 53, 56, 59, 62, 65, 68,

204, 204, 208, 211, 218, 220–223PlotciAllx, 18, 28, 36, 55, 58, 60, 63, 66, 69,

205, 206, 219PlotciAllxg, 18, 28, 36, 55, 58, 60, 63, 66,

69, 205, 206, 219PlotciALR, 11, 14, 19, 22, 26, 30, 32, 200,

201, 203, 206, 207, 209, 210PlotciALT, 11, 14, 19, 22, 26, 30, 32, 200,

201, 203, 207, 207, 209, 210PlotciAS, 16, 24, 35, 53, 56, 59, 62, 65, 68,

204, 208, 211, 218, 220–223PlotciASC, 11, 14, 19, 22, 26, 30, 32, 200,

201, 203, 207, 208, 209, 210PlotciATW, 11, 14, 19, 22, 26, 30, 32, 200,

201, 203, 207, 209, 209, 210PlotciAWD, 11, 14, 19, 22, 26, 30, 32, 200,

201, 203, 207, 209, 210PlotciBA, 16, 24, 35, 53, 56, 59, 62, 65, 68,

204, 208, 210, 218, 220–223PlotciCAll, 38, 40, 43, 45, 48, 50, 211, 212,

215–218PlotciCAllg, 38, 40, 43, 45, 48, 50, 212, 212,

215–218PlotciCAllx, 39, 44, 46, 49, 51, 213, 214PlotciCAllxg, 39, 44, 46, 49, 51, 213, 214PlotciCAS, 38, 40, 43, 45, 48, 50, 212, 214,

215–218PlotciCLT, 38, 40, 43, 45, 48, 50, 212, 215,

215, 216–218PlotciCSC, 38, 40, 43, 45, 48, 50, 212, 215,

216, 217, 218PlotciCTW, 38, 40, 43, 45, 48, 50, 212, 215,

216, 217, 218PlotciCWD, 38, 40, 43, 45, 48, 50, 212,

215–217, 217PlotciEX, 16, 24, 35, 53, 56, 59, 62, 65, 68,

204, 208, 211, 218, 220–223PlotciEXx, 18, 28, 36, 55, 58, 60, 63, 66, 69,

205, 206, 219

Page 337: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

INDEX 337

PlotciLR, 16, 24, 35, 53, 56, 59, 62, 65, 68,204, 208, 211, 218, 220, 221–223

PlotciLT, 16, 24, 35, 53, 56, 59, 62, 65, 68,204, 208, 211, 218, 220, 220,221–223

PlotciSC, 16, 24, 35, 53, 56, 59, 62, 65, 68,204, 208, 211, 218, 220, 221, 221,222, 223

PlotciTW, 16, 24, 35, 53, 56, 59, 62, 65, 68,204, 208, 211, 218, 220, 221, 222,223

PlotciWD, 16, 24, 35, 53, 56, 59, 62, 65, 68,204, 208, 211, 218, 220–222, 222

PlotcovpAAll, 71, 72, 75, 76, 79, 80, 82, 223,224, 226, 227, 229–231

PlotcovpAAS, 71, 72, 75, 76, 79, 80, 82, 223,224, 226, 227, 229–231

PlotcovpAll, 74, 78, 83, 93, 95, 97, 98, 101,102, 225, 228, 232, 239, 241–243,245, 246

PlotcovpALR, 71, 72, 75, 76, 79, 80, 82, 223,224, 226, 227, 229–231

PlotcovpALT, 71, 72, 75, 76, 79, 80, 82, 223,224, 226, 227, 229–231

PlotcovpAS, 74, 78, 83, 93, 95, 97, 98, 101,102, 225, 228, 232, 239, 241–243,245, 246

PlotcovpASC, 71, 72, 75, 76, 79, 80, 82, 223,224, 226, 227, 229, 230, 231

PlotcovpATW, 71, 72, 75, 76, 79, 80, 82, 223,224, 226, 227, 229, 230, 231

PlotcovpAWD, 71, 72, 75, 76, 79, 80, 82, 223,224, 226, 227, 229, 230, 231

PlotcovpBA, 74, 78, 83, 93, 95, 97, 98, 101,102, 225, 228, 232, 239, 241–243,245, 246

PlotcovpCAll, 85–87, 89–91, 233, 234–238PlotcovpCAS, 85–87, 89–91, 233, 234,

235–238PlotcovpCLT, 85–87, 89–91, 233, 234, 235,

236–238PlotcovpCSC, 85–87, 89–91, 233–235, 236,

237, 238PlotcovpCTW, 85–87, 89–91, 233–236, 237,

238PlotcovpCWD, 85–87, 89–91, 233–237, 238PlotcovpEX, 74, 78, 83, 93, 95, 97, 98, 101,

102, 225, 228, 232, 239, 241–243,

245, 246PlotcovpGEN, 94, 240PlotcovpLR, 74, 78, 83, 93, 95, 97, 98, 101,

102, 225, 228, 232, 239, 241, 242,243, 245, 246

PlotcovpLT, 74, 78, 83, 93, 95, 97, 98, 101,102, 225, 228, 232, 239, 241, 242,243, 245, 246

PlotcovpSC, 74, 78, 83, 93, 95, 97, 98, 101,102, 225, 228, 232, 239, 241, 242,243, 245, 246

PlotcovpSIM, 100, 244PlotcovpTW, 74, 78, 83, 93, 95, 97, 98, 101,

102, 225, 228, 232, 239, 241–243,245, 246

PlotcovpWD, 74, 78, 83, 93, 95, 97, 98, 101,102, 225, 228, 232, 239, 241–243,245, 246

PloterrAAll, 106, 107, 109, 110, 112–114,247, 248, 250, 252, 253

PloterrAAS, 106, 107, 109, 110, 112–114,247, 248, 250, 252, 253

PloterrAll, 108, 111, 115, 122, 124–128,248, 251, 254, 260–263

PloterrALR, 106, 107, 109, 110, 112–114,247, 248, 249, 250, 252, 253

PloterrALT, 106, 107, 109, 110, 112–114,247, 248, 250, 250, 252, 253

PloterrAS, 108, 111, 115, 122, 124–128, 249,251, 254, 260–263

PloterrASC, 106, 107, 109, 110, 112–114,247, 248, 250, 251, 253

PloterrATW, 106, 107, 109, 110, 112–114,247, 248, 250, 252, 252, 253

PloterrAWD, 106, 107, 109, 110, 112–114,247, 248, 250, 252, 253, 253

PloterrBA, 108, 111, 115, 122, 124–128, 249,251, 254, 260–263

PloterrCAll, 116–121, 255, 256–259PloterrCAS, 116–121, 255, 256, 257–259PloterrCLT, 116–121, 255, 256, 256, 258, 259PloterrCSC, 116–121, 255–257, 257, 258, 259PloterrCTW, 116–121, 255–258, 258, 259PloterrCWD, 116–121, 255–258, 259PloterrEX, 108, 111, 115, 122, 124–128, 249,

251, 254, 259, 261–263PloterrLR, 108, 111, 115, 122, 124–128, 249,

251, 254, 260, 260, 261–263

Page 338: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

338 INDEX

PloterrLT, 108, 111, 115, 122, 124–128, 249,251, 254, 260, 261, 261, 262, 263

PloterrSC, 108, 111, 115, 122, 124–128, 249,251, 254, 260, 261, 262, 263

PloterrTW, 108, 111, 115, 122, 124–128, 249,251, 254, 260–262, 262, 263

PloterrWD, 108, 111, 115, 122, 124–128, 249,251, 254, 260–263, 263

PlotexplAAll, 146, 147, 150, 151, 154–156,264, 265, 267, 268, 270–272, 287,288, 290, 291, 293, 294

PlotexplAAS, 146, 147, 150, 151, 154–156,264, 265, 267, 268, 270–272, 287,288, 290, 291, 293, 294

PlotexplAll, 148, 152, 158, 167, 169, 171,172, 175, 176, 266, 269, 273, 280,282, 283, 285, 286, 289, 292, 295,302, 304, 305, 307, 308

PlotexplALR, 146, 147, 150, 151, 154–156,264, 265, 267, 268, 270–272, 287,288, 290, 291, 293, 294

PlotexplALT, 146, 147, 150, 151, 154–156,264, 265, 267, 268, 270–272, 287,288, 290, 291, 293, 294

PlotexplAS, 148, 152, 158, 167, 169, 171,172, 175, 176, 266, 269, 273, 280,282, 283, 285, 286, 289, 292, 295,302, 304, 305, 307, 308

PlotexplASC, 146, 147, 150, 151, 154–156,264, 265, 267, 268, 270, 271, 272,287, 288, 290, 291, 293, 294

PlotexplATW, 146, 147, 150, 151, 154–156,264, 265, 267, 268, 270, 271, 272,287, 288, 290, 291, 293, 294

PlotexplAWD, 146, 147, 150, 151, 154–156,264, 265, 267, 268, 270, 271, 272,287, 288, 290, 291, 293, 294

PlotexplBA, 148, 152, 158, 167, 169, 171,172, 175, 176, 266, 269, 273, 280,282, 283, 285, 286, 289, 292, 295,302, 304, 305, 307, 308

PlotexplCAll, 159–161, 163–165, 274,275–279, 296–301

PlotexplCAS, 159–161, 163–165, 274, 275,276–279, 296–301

PlotexplCLT, 159–161, 163–165, 274, 275,276, 277–279, 296–301

PlotexplCSC, 159–161, 163–165, 274–276,

277, 278, 279, 296–301PlotexplCTW, 159–161, 163–165, 274–277,

278, 279, 296–301PlotexplCWD, 159–161, 163–165, 274–278,

279, 296–301PlotexplEX, 148, 152, 158, 167, 169, 171,

172, 175, 176, 266, 269, 273, 280,282, 283, 285, 286, 289, 292, 295,302, 304, 305, 307, 308

PlotexplGEN, 168, 173, 281, 284, 303, 306PlotexplLR, 148, 152, 158, 167, 169, 171,

172, 175, 176, 266, 269, 273, 280,281, 283, 285, 286, 289, 292, 295,302, 304, 305, 307, 308

PlotexplLT, 148, 152, 158, 167, 169, 171,172, 175, 176, 266, 269, 273, 280,282, 282, 283, 285, 286, 289, 292,295, 302, 304, 305, 307, 308

PlotexplSC, 148, 152, 158, 167, 169, 171,172, 175, 176, 266, 269, 273, 280,282, 283, 283, 285, 286, 289, 292,295, 302, 304, 305, 307, 308

PlotexplSIM, 168, 173, 281, 284, 303, 306PlotexplTW, 148, 152, 158, 167, 169, 171,

172, 175, 176, 266, 269, 273, 280,282, 283, 285, 286, 289, 292, 295,302, 304, 305, 307, 308

PlotexplWD, 148, 152, 158, 167, 169, 171,172, 175, 176, 266, 269, 273, 280,282, 283, 285, 286, 289, 292, 295,302, 304, 305, 307, 308

PlotlengthAAll, 146, 147, 150, 151,154–156, 264, 265, 267, 268,270–272, 287, 288, 290, 291, 293,294

PlotlengthAAS, 146, 147, 150, 151, 154–156,264, 265, 267, 268, 270–272, 287,288, 290, 291, 293, 294

PlotlengthAll, 148, 152, 158, 167, 169, 171,172, 175, 176, 266, 269, 273, 280,282, 283, 285, 286, 289, 292, 295,302, 304, 305, 307, 308

PlotlengthALR, 146, 147, 150, 151, 154–156,264, 265, 267, 268, 270–272, 287,288, 290, 291, 293, 294

PlotlengthALT, 146, 147, 150, 151, 154–156,264, 265, 267, 268, 270–272, 287,288, 290, 291, 293, 294

Page 339: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

INDEX 339

PlotlengthAS, 148, 152, 158, 167, 169, 171,172, 175, 176, 266, 269, 273, 280,282, 283, 285, 286, 289, 292, 295,302, 304, 305, 307, 308

PlotlengthASC, 146, 147, 150, 151, 154–156,264, 265, 267, 268, 270–272, 287,288, 290, 291, 292, 294

PlotlengthATW, 146, 147, 150, 151, 154–156,264, 265, 267, 268, 270–272, 287,288, 290, 291, 293, 293, 294

PlotlengthAWD, 146, 147, 150, 151, 154–156,264, 265, 267, 268, 270–272, 287,288, 290, 291, 293, 294, 294

PlotlengthBA, 148, 152, 158, 167, 169, 171,172, 175, 176, 266, 269, 273, 280,282, 283, 285, 286, 289, 292, 295,302, 304, 305, 307, 308

PlotlengthCAll, 159–161, 163–165,274–279, 296, 297–301

PlotlengthCAS, 159–161, 163–165, 274–279,296, 297, 298–301

PlotlengthCLT, 159–161, 163–165, 274–279,296, 297, 298, 299–301

PlotlengthCSC, 159–161, 163–165, 274–279,296–298, 299, 300, 301

PlotlengthCTW, 159–161, 163–165, 274–279,296–299, 300, 301

PlotlengthCWD, 159–161, 163–165, 274–279,296–300, 301

PlotlengthEX, 148, 152, 158, 167, 169, 171,172, 175, 176, 266, 269, 273, 280,282, 283, 285, 286, 289, 292, 295,302, 304, 305, 307, 308

PlotlengthGEN, 168, 173, 281, 284, 303, 306PlotlengthLR, 148, 152, 158, 167, 169, 171,

172, 175, 176, 266, 269, 273, 280,282, 283, 285, 286, 289, 292, 295,302, 303, 305, 307, 308

PlotlengthLT, 148, 152, 158, 167, 169, 171,172, 175, 176, 266, 269, 273, 280,282, 283, 285, 286, 289, 292, 295,302, 304, 304, 305, 307, 308

PlotlengthSC, 148, 152, 158, 167, 169, 171,172, 175, 176, 266, 269, 273, 280,282, 283, 285, 286, 289, 292, 295,302, 304, 305, 305, 307, 308

PlotlengthSIM, 168, 173, 281, 284, 303, 306PlotlengthTW, 148, 152, 158, 167, 169, 171,

172, 175, 176, 266, 269, 273, 280,282, 283, 285, 286, 289, 292, 295,302, 304, 305, 307, 308

PlotlengthWD, 148, 152, 158, 167, 169, 171,172, 175, 176, 266, 269, 273, 280,282, 283, 285, 286, 289, 292, 295,302, 304, 305, 307, 307

PlotpCOpBIAAll, 177, 178, 180, 181,183–185, 308, 309, 311–315

PlotpCOpBIAAS, 177, 178, 180, 181, 183–185,309, 309, 311–315

PlotpCOpBIAll, 179, 182, 186, 193, 195–199,310, 313, 316, 321, 323–327

PlotpCOpBIALR, 177, 178, 180, 181, 183–185,309, 311, 312–315

PlotpCOpBIALT, 177, 178, 180, 181, 183–185,309, 311, 311, 313–315

PlotpCOpBIAS, 179, 182, 186, 193, 195–199,310, 312, 316, 321, 323–327

PlotpCOpBIASC, 177, 178, 180, 181, 183–185,309, 311, 312, 313, 314, 315

PlotpCOpBIATW, 177, 178, 180, 181, 183–185,309, 311–313, 314, 315

PlotpCOpBIAWD, 177, 178, 180, 181, 183–185,309, 311–314, 314

PlotpCOpBIBA, 179, 182, 186, 193, 195–199,310, 313, 315, 321, 323–327

PlotpCOpBICAll, 187–192, 316, 317–320PlotpCOpBICAS, 187–192, 316, 317, 318–320PlotpCOpBICLT, 187–192, 316, 317, 318, 319,

320PlotpCOpBICSC, 187–192, 316–318, 318, 319,

320PlotpCOpBICTW, 187–192, 316–319, 319, 320PlotpCOpBICWD, 187–192, 316–319, 320PlotpCOpBIEX, 179, 182, 186, 193, 195–199,

310, 313, 316, 321, 323–327PlotpCOpBIGEN, 195, 322PlotpCOpBILR, 179, 182, 186, 193, 195–199,

310, 313, 316, 321, 323, 324–327PlotpCOpBILT, 179, 182, 186, 193, 195–199,

310, 313, 316, 321, 323, 324,325–327

PlotpCOpBISC, 179, 182, 186, 193, 195–199,310, 313, 316, 321, 323, 324, 325,326, 327

PlotpCOpBITW, 179, 182, 186, 193, 195–199,310, 313, 316, 321, 323–325, 326,

Page 340: mran.microsoft.com · Package ‘proportion’ May 3, 2017 Title Inference on Single Binomial Proportion and Bayesian Computations Version 2.0.0 Author M.Subbiah, V.Rajeswaran Maintainer

340 INDEX

327PlotpCOpBIWD, 179, 182, 186, 193, 195–199,

310, 313, 316, 321, 323–326, 327probPOS, 103, 105, 328, 329–331probPOSx, 103, 105, 328, 329, 330, 331probPRE, 103, 105, 328, 329, 330, 331probPREx, 103, 105, 328–330, 331prop.test, 11, 12, 14–16, 18–20, 22–24,

26–28, 30–33, 35, 36, 38–41, 43–46,48–51, 53, 55–57, 59, 60, 62, 63, 65,66, 68, 69

propCI, 11, 12, 14–16, 18–20, 22–24, 26–28,30–33, 35, 36, 38–41, 43–46, 48–51,53, 55–57, 59, 60, 62, 63, 65, 66, 68,69

wald2ci, 11, 12, 14–16, 18–20, 22–24, 26–28,30–33, 35, 36, 38–41, 43–46, 48–51,53, 55–57, 59, 60, 62, 63, 65, 66, 68,69