Package ExactCIdiff. February 15, 2013

Similar documents
Package appnn. R topics documented: July 12, 2015

Package citccmst. February 19, 2015

Package prognosticroc

Package AbsFilterGSEA

Package singlecase. April 19, 2009

Package nopaco. R topics documented: April 13, Type Package Title Non-Parametric Concordance Coefficient Version 1.0.

Package ega. March 21, 2017

Package QualInt. February 19, 2015

Package ICCbin. November 14, 2017

Package HAP.ROR. R topics documented: February 19, 2015

Package rvtdt. February 20, rvtdt... 1 rvtdt.example... 3 rvtdts... 3 TrendWeights Index 6. population control weighted rare-varaints TDT

Package StepReg. November 3, 2017

Package GANPAdata. February 19, 2015

Package wally. May 25, Type Package

Package speff2trial. February 20, 2015

Package CompareTests

Package TEQR. R topics documented: February 5, Version Date Title Target Equivalence Range Design Author M.

Package inctools. January 3, 2018

Package ORIClust. February 19, 2015

Package ClusteredMutations

Package SAMURAI. February 19, 2015

ivlewbel: Uses heteroscedasticity to estimate mismeasured and endogenous regressor models

Package longroc. November 20, 2017

Package tumgr. February 4, 2016

Decimal degree. 1:1,500,000 Area of collection

Package clust.bin.pair

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

Package memapp. R topics documented: June 2, Version 2.10 Date

Package ordibreadth. R topics documented: December 4, Type Package Title Ordinated Diet Breadth Version 1.0 Date Author James Fordyce

Package p3state.msm. R topics documented: February 20, 2015

Package cssam. February 19, 2015

Package inote. June 8, 2017

Package Interpol. R topics documented: February 19, Type Package. Title Interpolation of amino acid sequences. Version

Package pollen. October 7, 2018

Package ncar. July 20, 2018

Package RNAsmc. December 11, 2018

Package labstats. December 5, 2016

Package seqdesign. April 27, Version 1.1 Date

Package BCRA. April 25, 2018

Lecture 21. RNA-seq: Advanced analysis

Package Actigraphy. R topics documented: January 15, Type Package Title Actigraphy Data Analysis Version 1.3.

DIFFERENTIATE: ACCURACY AND PRECISION

Package preference. May 8, 2018

Chapter 2 Organizing and Summarizing Data. Chapter 3 Numerically Summarizing Data. Chapter 4 Describing the Relation between Two Variables

Package frailtyhl. February 19, 2015

Package noia. February 20, 2015

Package PELVIS. R topics documented: December 18, Type Package

Package influence.me

Package mdsdt. March 12, 2016

Method of Limits Worksheet

Psy201 Module 3 Study and Assignment Guide. Using Excel to Calculate Descriptive and Inferential Statistics

Package mediation. September 18, 2009

Package EpiEstim. R topics documented: February 19, Version Date 2013/03/08

Package asymptest. May 10, 2018

Package hei. August 17, 2017

Package CorMut. January 21, 2019

Binary Diagnostic Tests Paired Samples

Package xseq. R topics documented: September 11, 2015

Package bionetdata. R topics documented: February 19, Type Package Title Biological and chemical data networks Version 1.0.

Package diggitdata. April 11, 2019

Package netclass. July 2, 2014

Package MethPed. September 1, 2018

The FunCluster Package

Package medicalrisk. August 29, 2016

Package Fahrmeir. May 31, 2016

Package sbpiper. April 20, 2018

Package xmeta. August 16, 2017

Outlier Analysis. Lijun Zhang

Package CorMut. August 2, 2013

Evaluating Classifiers for Disease Gene Discovery

Package pathifier. August 17, 2018

THE ROLE OF THE COMPUTER IN DATA ANALYSIS

Package AIMS. June 29, 2018

Simplify the expression and write the answer without negative exponents.

A Quick-Start Guide for rseqdiff

Package IMAS. March 10, 2019

Package CopulaREMADA

Package NonCompart. August 16, 2017

RNA-seq. Design of experiments

Package mem. R topics documented: October 23, Type Package Title The Moving Epidemic Method Version 2.11 Date Depends R (>= 3.4.

Analysis of Rheumatoid Arthritis Data using Logistic Regression and Penalized Approach

Package CopulaREMADA

STATISTICS AND RESEARCH DESIGN

Package CTT. February 4, 2018

Package DeconRNASeq. November 19, 2017

Package MSstatsTMT. February 26, Title Protein Significance Analysis in shotgun mass spectrometry-based

Instructions for doing two-sample t-test in Excel

Supplementary Materials

Data Mining in Bioinformatics Day 4: Text Mining

Data management by using R: big data clinical research series

Activity: Smart Guessing

Package ICSpkTS. R topics documented: September 4, Type Package

Wason's Cards: What is Wrong?

Grade 6 Math Circles Winter February 6/7 Number Theory - Solutions Warm-up! What is special about the following groups of numbers?

COMP90049 Knowledge Technologies

GridMAT-MD: A Grid-based Membrane Analysis Tool for use with Molecular Dynamics

Home Builders Foundation of Metro Denver 2015 Annual Sponsorship Packages

Transcription:

Package ExactCIdiff February 15, 2013 Version 1.2 Date 2013-01-28 Title Inductive Confidence Intervals for the difference between two proportions Author Guogen Shan <guogen.shan@unlv.edu>, Weizhen Wang <weizhen.wang@wright.edu> Maintainer Guogen Shan <guogen.shan@unlv.edu> Depends R (>= 1.8.0) Description This is a package for exact Confidence Intervals for the difference between two independent or dependent proportions. License GPL (>= 2) URL http://www.r-project.org, http://www.wright.edu/~weizhen.wang/wanghome.htm, http://faculty.unlv.edu/gshan/ Repository CRAN Date/Publication 2013-01-29 07:16:42 NeedsCompilation no R topics documented: Exact one-sided 1-alpha confidence interval........................ 2 Index 5 1

2 Exact one-sided 1-alpha confidence interval Exact one-sided 1-alpha confidence interval Inductive confidence intervals for the difference between two proportions Description Usage Exact one-sided confidence intervals of level 1-alpha are constructed for p1-p2, the difference of two proportions under two cases. Case 1: X follows Binomial(n1,p1), Y follows Binomial(n2,p2) and X and Y are independent. Intervals [L(X,Y),1], [-1,U(X,Y)] and [L(X,Y),U(X,Y)] are of interest. Case 2: A random vector (n11,n12,n21,n22) follows multinomial(n, p11,p12,p21,p22) where N=n11+n12+n21+n22, and p1-p2=(p11+p12)-(p11+p21)=p12-p21. Let t=n11+n22. Intervals [L(n12,t,n21),1], [-1,U(n12,t,n21)] and [L(n12,t,n21),U(n12,t,n21)] are of interest. This package can be used to calculate these intervals using an inductive method developed by Wang (2010, 2012). BinomCI(n1,n2,x,y,confidence.level,alternative,precision,grid.one,grid.two) PairedCI(n12,t,n21,confidence.level,alternative,precision,grid.one,grid.two) Arguments n1 n2 x y n12 t the number of subjects in the first group in the parallel two-arm study the number of subjects in the second group in the parallel two-arm study the number of response from the first group in the parallel two-arm study the number of response from the second group in the parallel two-arm study the number of subjects in the paired study who have response from the treatment and no response from the control the number of subjects in the paired study who have the same results from the treatment and control, t=n11+n22 n21 the number of subjects in the paired study who have response from the contol and no response from the treatment confidence.level Confience level for one sided alternative precision grid.one grid.two c("lower","upper"), one sided lower confidence interval [L,1], one sided upper confidence interval [-1,U] Precision of the confidence interval, default is 0.00001 rounded to 5 decimals two-step grid search algorithm is used. grid.one is the number of points for searching the global maximum of the tail probability in the first step. 30 is the default value grid.two is the number of points for searching the global maximum of the tail probability in the second step. 20 is the default value

Exact one-sided 1-alpha confidence interval 3 Details Value An inductive interval construction is carried out. At each step we rank sample point by its potential confidence interval and then select the one with the shortest interval. The difference of the two proportions is the parameter of interest. There is a nuisance parameter in the tail probability (Eq (6) in Wang 2010, or Eq (8) in Wang 2012). The nuisance parameter is eliminated by the maximization originally proposed by Buehler (1957). A two-step grid search algorithm is applied to find the maximum. The first step is to roughly identify a neighbor area of the global maximization of the tail probability, more points used more accurate results achieved. We recommend to use grid.one at least 30 to have accurate confidence intervals. The second step is to search for maximum within that smaller neighbor area. We recommend to use grid.two at least 20. We find that this two-step grid search algorithm works much more accurate and efficient than the traditional one-step grid search algorithm. Details and more examples see: http://www.wright.edu/~weizhen.wang/software/exacttwoprop/examples.pdf BinomCI gives the estimate of (p1-p2), which is x/n1-y/n2, and the exact one sided confidence interval. PairedCI gives the estimate of (p1-p2), which is (n12/-n21)/(n12+t+n21), and the exact one sided confidence interval. Author(s) Guogen Shan<guogen.shan@unlv.edu>, and Weizhen Wang<weizhen.wang@wright.edu> References Wang, W. (2010). On construction of the smallest one-sided confidence interval for the difference of two proportions. The Annals of Statistics, 38, 1227 1243. Wang, W. (2012). An inductive order construction for the difference of two dependent proportions. Statistical and Probability Letters, 82, 1623 1628. Buehler, R. (1957). Confidence intervals for the porduct of two binomial parameters. JASA, 52, 482 493. Examples #lower confidence interval for the difference of two independent proportions with n1=4,m=n2=1,x=2,and y=0 in Wa BinomCI(4,1,2,0) #Upper confidence interval for the difference of two independent proportions with n1=4,n2=1,x=2,and y=0. BinomCI(4,1,2,0,alternative="Upper") #lower confidence intervals for the difference of two dependent proportions in the Table 1 of Wang 2012 PairedCI(3,1,1,confidence.level=0.95) PairedCI(2,0,2,confidence.level=0.9) #Upper confidence intervals for the difference of two dependent proportions PairedCI(3,1,1,alternative="Upper",confidence.level=0.95)

4 Exact one-sided 1-alpha confidence interval PairedCI(1,1,2,alternative="Upper",confidence.level=0.9,grid.one=40,grid.two=25) #Two-sided 95% confidence intervals u95=binomci(5,5,4,2,confidence.level=0.975,alternative= Upper )$ExactOneCI l95=binomci(5,5,4,2,confidence.level=0.975,alternative= Lower )$ExactOneCI ci95=c(l95[1],u95[2])

Index BinomCI (Exact one-sided 1-alpha BinomialCIone (Exact one-sided 1-alpha Exact one-sided 1-alpha confidence interval, 2 PairedCI (Exact one-sided 1-alpha PairedCIone (Exact one-sided 1-alpha 5