Package RI2by2. October 21, 2016

Similar documents
Package noncompliance

Package BayesNI. February 19, 2015

Package MultisiteMediation

Package clogitboost. R topics documented: December 21, 2015

Package dhsic. R topics documented: July 27, 2017

Package Grace. R topics documented: April 9, Type Package

Package comparec. R topics documented: February 19, Type Package

Package MACAU2. R topics documented: April 8, Type Package. Title MACAU 2.0: Efficient Mixed Model Analysis of Count Data. Version 1.

Package severity. February 20, 2015

Package basad. November 20, 2017

Package gtheory. October 30, 2016

Package drgee. November 8, 2016

Package RTransferEntropy

Package NlinTS. September 10, 2018

Package aspi. R topics documented: September 20, 2016

Package cccrm. July 8, 2015

Package polypoly. R topics documented: May 27, 2017

Package jaccard. R topics documented: June 14, Type Package

Package factorqr. R topics documented: February 19, 2015

Package EMVS. April 24, 2018

Package LIStest. February 19, 2015

Package varband. November 7, 2016

Package scpdsi. November 18, 2018

Package ICGOR. January 13, 2017

Package ShrinkCovMat

Package metafuse. October 17, 2016

Package idmtpreg. February 27, 2018

Package MiRKATS. May 30, 2016

Package SpatialNP. June 5, 2018

Package RATest. November 30, Type Package Title Randomization Tests

Package netdep. July 10, 2018

Package rarhsmm. March 20, 2018

Package Rsurrogate. October 20, 2016

Package HarmonicRegression

Package survidinri. February 20, 2015

Package esaddle. R topics documented: January 9, 2017

Package IsingSampler

Package SEMModComp. R topics documented: February 19, Type Package Title Model Comparisons for SEM Version 1.0 Date Author Roy Levy

Package scio. February 20, 2015

Package EL. February 19, 2015

Package mcmcse. July 4, 2017

Package weightquant. R topics documented: December 30, Type Package

Package beam. May 3, 2018

Package gma. September 19, 2017

Package KMgene. November 22, 2017

Package jmcm. November 25, 2017

Package sindyr. September 10, 2018

Package RZigZag. April 30, 2018

Package nardl. R topics documented: May 7, Type Package

Package IUPS. February 19, 2015

Package mpmcorrelogram

Package Tcomp. June 6, 2018

Package ebal. R topics documented: February 19, Type Package

Package netcoh. May 2, 2016

Package HIMA. November 8, 2017

Package rgabriel. February 20, 2015

Package r2glmm. August 5, 2017

arxiv: v1 [math.st] 28 Feb 2017

Package ltsbase. R topics documented: February 20, 2015

Package depth.plot. December 20, 2015

Package fwsim. October 5, 2018

Package CCP. R topics documented: December 17, Type Package. Title Significance Tests for Canonical Correlation Analysis (CCA) Version 0.

Package goftest. R topics documented: April 3, Type Package

Package ssanv. June 23, 2015

Package tspi. August 7, 2017

Package EnergyOnlineCPM

Package darts. February 19, 2015

Package spcov. R topics documented: February 20, 2015

Package flora. R topics documented: August 29, Type Package. Title flora: taxonomical information on flowering species that occur in Brazil

Package dhga. September 6, 2016

Package abundant. January 1, 2017

Package RootsExtremaInflections

Package IndepTest. August 23, 2018

Package FDRreg. August 29, 2016

Package covtest. R topics documented:

Package generalhoslem

Package CovSel. September 25, 2013

Package NonpModelCheck

Package SpatPCA. R topics documented: February 20, Type Package

Package locfdr. July 15, Index 5

Package rkt. March 7, 2017

Package xdcclarge. R topics documented: July 12, Type Package

Package msu. September 30, 2017

Package BNSL. R topics documented: September 18, 2017

Package anoint. July 19, 2015

Package AID. R topics documented: November 10, Type Package Title Box-Cox Power Transformation Version 2.3 Date Depends R (>= 2.15.

Package esreg. August 22, 2017

Package penmsm. R topics documented: February 20, Type Package

Package MAVE. May 20, 2018

Package crossreg. February 19, 2015

Package bigtime. November 9, 2017

Package multivariance

Package BootWPTOS. R topics documented: June 30, Type Package

Package peacots. November 13, 2016

Package covsep. May 6, 2018

Package invgamma. May 7, 2017

Package lomb. February 20, 2015

Epidemiology Principle of Biostatistics Chapter 11 - Inference about probability in a single population. John Koval

Package CoxRidge. February 27, 2015

Package ICBayes. September 24, 2017

Transcription:

Package RI2by2 October 21, 2016 Type Package Title Randomization Inference for Treatment Effects on a Binary Outcome Version 1.3 Author Joseph Rigdon, Wen Wei Loh, Michael G. Hudgens Maintainer Wen Wei Loh <wwloh@email.unc.edu> Imports compiler, gtools, Rcpp LinkingTo Rcpp Computes attributable effects based confidence, permutation test confidence, or asymptotic confidence for the the average treatment effect on a binary outcome. License GPL (>= 3) Suggests testthat NeedsCompilation yes Repository CRAN Date/Publication 2016-10-21 10:42:34 R topics documented: AE.CI............................................ 2 Perm.CI........................................... 3 Perm.CI.RLH........................................ 4 Robins.CI.......................................... 5 Index 7 1

2 AE.CI AE.CI Attributable effects based confidence for a treatment effect on a binary outcome Computes the attributable effects based confidence for the average treatment effect on a binary outcome in an experiment where m of n individuals are randomized to treatment by design. AE.CI(, ) Details The attributable effects based confidence from inverting n + 2 hypothesis tests. lower upper lower bound of confidence upper bound of confidence Joseph Rigdon <jrigdon@stanford.edu> Rigdon, J.R. and Hudgens, M.G. (2015). Randomization inference for treatment effects on a binary outcome. Statistics in Medicine, 34(6), 924-935. ex = matrix(c(8,2,3,7),2,2,byrow=true) AE.CI(ex,0.05)

Perm.CI 3 Perm.CI Permutation test confidence for a treatment effect on a binary outcome Computes permutation-based confidence s for the average treatment effect on a binary outcome in an experiment where m of n individuals are randomized to treatment by design. Perm.CI(,, nperm) nperm number of randomizations to perform for each hypothesis test Details The permutation confidence results from inverting O(n 4 ) hypothesis tests where n is the total number of observations in the observed 2 by 2 table. For each hypothesis test, if ( n m) is less than or equal to nperm, ( ( n m) randomizations are performed, but if n m) is greater than nperm, a random sample with replacement of nperm randomizations are performed. lower upper lower bound of confidence upper bound of confidence Joseph Rigdon <jrigdon@stanford.edu> Rigdon, J.R. and Hudgens, M.G. (2015). Randomization inference for treatment effects on a binary outcome. Statistics in Medicine, 34(6), 924-935. ex = matrix(c(8,2,3,7),2,2,byrow=true) Perm.CI(ex,0.05,100)

4 Perm.CI.RLH Perm.CI.RLH Permutation test confidence for a treatment effect on a binary outcome Computes permutation-based confidence s for the average treatment effect on a binary outcome in an experiment where m of n individuals are randomized to treatment by design. This function is based on the modified approach (RLH) in Rigdon, Loh and Hudgens (forthcoming). The Chiba (2015) and Blaker (2000) s are also returned. There is an additional option of specifying the maximum number of hypothesis tests to be carried out. Perm.CI.RLH(,, verbose=false, total_tests=na) verbose If TRUE, returns an additional frame listing all the values of (n 11, n 10, n 01, n 00 ) tested, and the corresponding p-values; default = FALSE. total_tests maximum number of hypotheses to be tested in total, with a minimum of two for each possible value of (n 10 n 01 )/n; default = NA. By default, all hypotheses are evaluated until the minimum and maximum values of (n 10 n 01 )/n with p-values (or /2 for the Chiba s) are found. A list with the following items: Chiba RLH Blaker p_values Chiba confidence RLH confidence Blaker confidence if verbose=true, a frame with all the p-values from the hypothesis tests; default=false Wen Wei Loh <wwloh@email.unc.edu>

Robins.CI 5 Rigdon, J.R. and Hudgens, M.G. (2015). Randomization inference for treatment effects on a binary outcome. Statistics in Medicine, 34(6), 924-935. Chiba, Y. (2015). Exact tests for the weak causal null hypothesis on a binary outcome in randomized trials. Journal of Biometrics & Biostatistics, 6(244). Chiba, Y. (2016). A note on exact confidence for causal effects on a binary outcome in randomized trials. Statistics in Medicine, 35(10), 1739-1741. Blaker, H. (2000). Confidence curves and improved exact confidence s for discrete distributions. Canadian Journal of Statistics, 28(4), 783-798. Rigdon, J.R., Loh W.W. and Hudgens, M.G. (forthcoming). Response to comment on "Randomization inference for treatment effects on a binary outcome." ex = matrix(c(11,1,7,21),2,2,byrow=true) Perm.CI.RLH(ex,0.05) ex = matrix(c(7,5,1,27),2,2,byrow=true) Perm.CI.RLH(ex,0.05) Perm.CI.RLH(ex,0.05, verbose=true) ex = matrix(c(33,15,11,37),2,2,byrow=true) Perm.CI.RLH(ex,0.05, total_tests=1000) Perm.CI.RLH(ex,0.05) ex = matrix(c(40,60,15,85),2,2,byrow=true) Perm.CI.RLH(ex,0.05, total_tests=1000) ## Not run: Perm.CI.RLH(ex,0.05) Robins.CI Asymptotic confidence for a treatment effect on a binary outcome Computes the Robins (1988) confidence for the average treatment effect on a binary outcome in an experiment where m of n individuals are randomized to treatment by design. Robins.CI(, )

6 Robins.CI Details The Robins (1988) confidence is similar in form to the well known Wald confidence for a difference in proportions, but is guaranteed to have smaller width. lower upper lower bound of confidence upper bound of confidence Joseph Rigdon <jrigdon@stanford.edu> Robins, J.M. (1988). Confidence s for causal parameters. Statistics in Medicine, 7(7), 773-785. #Example 1 from Robins (1988) ex = matrix(c(40,60,15,85),2,2,byrow=true) Robins.CI(ex,0.05)

Index Topic attributable effects AE.CI, 2 Topic permutation test Perm.CI, 3 Topic randomization inference AE.CI, 2 Perm.CI, 3 Robins.CI, 5 AE.CI, 2 Perm.CI, 3 Perm.CI.RLH, 4 Robins.CI, 5 7