Package ExactCIdiff. February 19, 2015

Similar documents
Package STI. August 19, Index 7. Compute the Standardized Temperature Index

Package multisom. May 23, 2017

Package gvc. R topics documented: August 29, Version Title Global Value Chains Tools

Package pinnacle.data

Package mrchmadness. April 9, 2017

knn & Naïve Bayes Hongning Wang

APPENDIX A COMPUTATIONALLY GENERATED RANDOM DIGITS 748 APPENDIX C CHI-SQUARE RIGHT-HAND TAIL PROBABILITIES 754

Package macleish. January 3, 2018

Package jackstraw. August 7, 2018

Package rdpla. August 13, 2017

Package nhlscrapr. R topics documented: March 8, Type Package

NCSS Statistical Software

ENHANCED PARKWAY STUDY: PHASE 2 CONTINUOUS FLOW INTERSECTIONS. Final Report

CHAPTER 1 INTRODUCTION TO RELIABILITY

Taking Your Class for a Walk, Randomly

Optimization and Search. Jim Tørresen Optimization and Search

Package simmr. August 29, 2016

Package physiology. July 16, 2018

Online Companion to Using Simulation to Help Manage the Pace of Play in Golf

Confidence Interval Notes Calculating Confidence Intervals

The Intrinsic Value of a Batted Ball Technical Details

Incremental ARA*: An Anytime Incremental Search Algorithm For Moving Target Search. University of Southern California Singapore Management University

4. Please Do Break the Crystal

1.1 Game Logic. League Mode: 16 Teams Home & away matches 30 match days 8 concurrent matches per match day 240 matches per season

Blocking time reduction for level crossings using the genetic algorithm

Shot-by-shot directional source deghosting and directional designature using near-gun measurements

Mathematics of Pari-Mutuel Wagering

BASKETBALL PREDICTION ANALYSIS OF MARCH MADNESS GAMES CHRIS TSENG YIBO WANG

swmath - Challenges, Next Steps, and Outlook

If a fair coin is tossed 10 times, what will we see? 24.61% 20.51% 20.51% 11.72% 11.72% 4.39% 4.39% 0.98% 0.98% 0.098% 0.098%

A SURVEY OF 1997 COLORADO ANGLERS AND THEIR WILLINGNESS TO PAY INCREASED LICENSE FEES

Probability & Statistics - Solutions

Analysis of Variance. Copyright 2014 Pearson Education, Inc.

COLLISION AVOIDANCE SYSTEM FOR BUSES, MANAGING PEDESTRIAN DETECTION AND ALERTS NEAR BUS STOPS

Inverting a Batting Average - an Application of Continued Fractions (Preliminary Version)

Template Document of Comparison Tables Generated by the BBOB 2012 Post-Processing: Layout for the BBOB 2012 Noisy Testbed

1.1 The size of the search space Modeling the problem Change over time Constraints... 21

Number & Place Value: Read, write, order and compare numbers to at least 1,000,000 and determine the value of each digit.

b) (2 pts.) Does the study show that drinking 4 or more cups of coffee a day caused the higher death rate?

Study Guide: 5.1 Rounding Decimals

FlexAct BT (Bag Tester) Validation November, 2015

Policy Management: How data and information impacts the ability to make policy decisions:

Which On-Base Percentage Shows. the Highest True Ability of a. Baseball Player?

Universal Style Transfer via Feature Transforms

Report on the Comparative Fishing Trial Between the Gadus Atlantica and Teleost

Self-Organizing Signals: A Better Framework for Transit Signal Priority

Appendix: Tables. Table XI. Table I. Table II. Table XII. Table III. Table IV

Equation 1: F spring = kx. Where F is the force of the spring, k is the spring constant and x is the displacement of the spring. Equation 2: F = mg

BBS Fall Conference, 16 September Use of modeling & simulation to support the design and analysis of a new dose and regimen finding study

Configuring Bidirectional Forwarding Detection for BGP

Package mregions. October 17, 2017

WHAT CAN WE LEARN FROM COMPETITION ANALYSIS AT THE 1999 PAN PACIFIC SWIMMING CHAMPIONSHIPS?

Hazard Training Guide

Queue analysis for the toll station of the Öresund fixed link. Pontus Matstoms *

Pneumatic Outflow Control

MWGen: A Mini World Generator

A quantitative software testing method for hardware and software integrated systems in safety critical applications

MEMORANDUM. To: PRL Performance Standards Subgroup From: Donna Pratt Subject: Performance Method Recommendation Date: January 18, 2001

Introduction to Analysis of Variance (ANOVA) The Structural Model, The Summary Table, and the One- Way ANOVA

NAUI RGBM Dive Planner Windows Version Rev 9/2016

Chapter 23 Traffic Simulation of Kobe-City

LEE COUNTY WOMEN S TENNIS LEAGUE

User s Guide for inext Online: Software for Interpolation and

SMART CITIES & MOBILITY AS A SERVICE

A New Design for the Access Point Angler Intercept Survey

Package BAwiR. January 25, 2018

2008 WMU 106 mule deer

Supplementary Figures

39 Hurricane Ida Wind Record

Chapter 6 Handicapping

AUTOMATIC DREDGING PROFILE AND CONTOUR CONTROL

Refereeing project 2006 Fitness tests for FIFA Tournaments 2005 REFEREES & ASSISTANT REFEREES: TEST 1

u = Open Access Reliability Analysis and Optimization of the Ship Ballast Water System Tang Ming 1, Zhu Fa-xin 2,* and Li Yu-le 2 " ) x # m," > 0

EtO Micro-Dose Sterilization

The risk assessment of ships manoeuvring on the waterways based on generalised simulation data

ANOVA - Implementation.

Domestic Energy Fact File (2006): Owner occupied, Local authority, Private rented and Registered social landlord homes

Air Force Calibration Interval Analysis of Test, Measurement and Diagnostic Equipment (TMDE) Based on Maintenance Data Collection (MDC)

by Robert Gifford and Jorge Aranda University of Victoria, British Columbia, Canada

Biostatistics & SAS programming

Evaluating NBA Shooting Ability using Shot Location

Math 1070 Sample Final Exam Spring 2016

NCHRP Improved Prediction Models for Crash Types and Crash Severities. Raghavan Srinivasan UNC Highway Safety Research Center

Chapter 20. Planning Accelerated Life Tests. William Q. Meeker and Luis A. Escobar Iowa State University and Louisiana State University

Proportional Rate Reduction for TCP

Allocation of referees, hours and pistes User manual of Engarde - August, 2013

EE 364B: Wind Farm Layout Optimization via Sequential Convex Programming

THE CONFEDERATED TRIBES OF THE WARM SPRINGS RESERVATION OF OREGON

On the Impact of Garbage Collection on flash-based SSD endurance

Development of Technology to Estimate the Flow Field around Ship Hull Considering Wave Making and Propeller Rotating Effects

Design of Experiments Example: A Two-Way Split-Plot Experiment

Opleiding Informatica

Individual Behavior and Beliefs in Parimutuel Betting Markets

CPUE standardization of black marlin (Makaira indica) caught by Taiwanese large scale longline fishery in the Indian Ocean

CS 351 Design of Large Programs Zombie House

Introduction to Parallelism in CASTEP

UK Pavement Management System. Technical Note 45. Data Topic guidance notes for UKPMS Developers. Version Number 2.00 Issue

Distributed Systems [Fall 2013]

KISSsoft 03/2016 Tutorial 9

We didn't invent Cue Sports. We perfected it! Neil Robertson Former World Snooker Champion and World Number One

Transcription:

Version 1.3 Date 2013-05-05 Package ExactCIdiff February 19, 2015 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/ NeedsCompilation no Repository CRAN Date/Publication 2013-07-04 18:54:21 R topics documented: Exact one-sided and two-sided 1-alpha confidence interval for two dependent proportions 2 Exact one-sided and two-sided 1-alpha confidence interval two independent proportions. 3 Exact one-sided and two-sided 1-alpha confidence interval, main functions........ 5 Index 6 1

2 Exact one-sided and two-sided 1-alpha confidence interval for two dependent proportions Exact one-sided and two-sided 1-alpha confidence interval for two dependent proportions Inductive confidence intervals for the difference between two proportions Description Usage Three exact confidence intervals (two-sided, smallest lower one-sided and smallest upper one-sided) of level 1-alpha are constructed for p1-p2, the difference of two dependent proportions. 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 (2012). PairedCI(n12,t,n21,conf.level,CItype,precision,grid.one,grid.two) Arguments n12 t n21 conf.level CItype precision grid.one grid.two the number of subjects in the paired study who have success from the treatment and failure from the control the number of subjects in the paired study who have the same results from the treatment and control, t=n11+n22 the number of subjects in the paired study who have success from the contol and failure from the treatment Confience level, 95% is the default value. c("lower","upper","two.sided"), lower one-sided confidence interval [L,1], upper one-sided confidence interval [-1,U], two-sided confidence interval [L,U], "Two.sided" is the default value 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 Details An inductive construction is carried out to obtain one-sided interval. 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 (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

Exact one-sided and two-sided 1-alpha confidence interval two independent proportions 3 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, and grid.two should be 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. 1-alpha two-sided interval is equal to the intersection of two 1-alpha/2 one-sided intervals. Details and more examples see: http://www.wright.edu/~weizhen.wang/software/exacttwoprop/examples.pdf Value PairedCI gives the estimate of (p1-p2), which is (n12/-n21)/(n12+t+n21), and the exact confidence interval. Author(s) Guogen Shan<Guogen.Shan@unlv.edu>, and Weizhen Wang<weizhen.wang@wright.edu> References 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 one-sided confidence intervals in Table 1 of Wang 2012 PairedCI(3,1,0,conf.level=0.95,CItype="Lower") PairedCI(2,0,2,conf.level=0.95,CItype="Lower") #Upper one-sided confidence intervals for the difference of two dependent proportions PairedCI(3,1,0,CItype="Upper",conf.level=0.95) PairedCI(1,1,2,CItype="Upper",conf.level=0.9,grid.one=40,grid.two=25) #Two-sided 90% confidence intervals PairedCI(3,1,0,CItype= Two.sided,conf.level=0.9) Exact one-sided and two-sided 1-alpha confidence interval two independent proportions Inductive confidence intervals for the difference between two proportions

4 Exact one-sided and two-sided 1-alpha confidence interval two independent proportions Description Three exact confidence intervals (two-sided, smallest lower one-sided and smallest upper one-sided) of level 1-alpha are constructed for p1-p2, the difference of two independent proportions. 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. This package can be used to calculate these intervals using an inductive method developed by Wang (2010). Usage BinomCI(n1,n2,x,y,conf.level,CItype,precision,grid.one,grid.two) Arguments n1 n2 x y conf.level CItype precision grid.one grid.two the number of trials in the first group in the parallel two-arm study the number of trials in the second group in the parallel two-arm study the number of successes from the first group in the parallel two-arm study the number of successes from the second group in the parallel two-arm study Confience level, 95% is the default value. c("lower","upper","two.sided"), lower one-sided confidence interval [L,1], upper one-sided confidence interval [-1,U], two-sided confidence interval [L,U], "Two.sided" is the default value 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 Details An inductive construction is carried out to obtain one-sided interval. 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). 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, and grid.two should be 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. 1-alpha two-sided interval is equal to the intersection of two 1-alpha/2 one-sided intervals. Details and more examples see: http://www.wright.edu/~weizhen.wang/software/exacttwoprop/examples.pdf

Exact one-sided and two-sided 1-alpha confidence interval, main functions 5 Value BinomCI gives the estimate of (p1-p2), which is x/n1-y/n2, and the exact 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. Buehler, R. (1957). Confidence intervals for the porduct of two binomial parameters. JASA, 52, 482 493. Examples #lower one-sided confidence interval with n1=4,n2=1,x=2,and y=0 in Wang 2010 BinomCI(4,1,2,0,CItype="Lower") #Upper one-sided confidence interval with n1=4,n2=1,x=2,and y=0. BinomCI(4,1,2,0,CItype="Upper") #Two-sided 90% confidence intervals BinomCI(5,5,4,2,conf.level=0.9,CItype= Two.sided ) Exact one-sided and two-sided 1-alpha confidence interval, main functions Inductive confidence intervals for the difference between two proportions Description The function BinomialCIone and PairedCIone are the called functions for the main function BinomCI and PairedCI, respectively.

Index BinomCI (Exact one-sided and two-sided 1-alpha confidence interval two independent proportions), 3 BinomialCIone (Exact one-sided and two-sided 1-alpha confidence interval, main functions), 5 Exact one-sided and two-sided 1-alpha confidence interval for two dependent proportions, 2 Exact one-sided and two-sided 1-alpha confidence interval two independent proportions, 3 Exact one-sided and two-sided 1-alpha confidence interval, main functions, 5 PairedCI (Exact one-sided and two-sided 1-alpha confidence interval for two dependent proportions), 2 PairedCIone (Exact one-sided and two-sided 1-alpha confidence interval, main functions), 5 6