Package diffdepprop. February 19, 2015

Similar documents
20.2 Normal and Critical Slopes

Probability & Statistics Chapter 8

Chapter 5: Take Home Test

One way Analysis of Variance (ANOVA)

ME260W Mid-Term Exam Instructor: Xinyu Huang Date: Mar

Digital Signal Processing. Homework 2 Solution. Due Monday 4 October Following the method on page 38, the difference equation

Chapter 8 Hypothesis Testing

(Dependent or paired samples) Step (1): State the null and alternate hypotheses: Case1: One-tailed test (Right)

Calculus 2 TAYLOR SERIES CONVERGENCE AND TAYLOR REMAINDER

Supplement S1: RNA secondary structure. structure + sequence format

Nonparametric Goodness-of-Fit Tests for Discrete, Grouped or Censored Data 1

The beta density, Bayes, Laplace, and Pólya

Bernoulli Numbers. n(n+1) = n(n+1)(2n+1) = n(n 1) 2

STK4011 and STK9011 Autumn 2016

Binary Data in Epidemiology Epidemiologic Measures of Association with Time to Event Data

Product Moments of Sample Variances and Correlation for Variables with Bivariate Normal Distribution

Math Third Midterm Exam November 17, 2010

1 Models for Matched Pairs

Some Properties of the Exact and Score Methods for Binomial Proportion and Sample Size Calculation

On generalized Simes critical constants

The binom Package. February 13, 2007

ANOTHER PROOF FOR FERMAT S LAST THEOREM 1. INTRODUCTION

Abstract. Introduction

After the completion of this section the student. V.4.2. Power Series Solution. V.4.3. The Method of Frobenius. V.4.4. Taylor Series Solution

Société de Calcul Mathématique SA Mathematical Modelling Company, Corp.

Package PredictionR. October 6, Index 7. Best fitting of a distribution to a data

Name Date PRECALCULUS SUMMER PACKET

HOUSEHOLDER S APPROXIMANTS AND CONTINUED FRACTION EXPANSION OF QUADRATIC IRRATIONALS. Vinko Petričević University of Zagreb, Croatia

ε > 0 N N n N a n < ε. Now notice that a n = a n.

Let us give one more example of MLE. Example 3. The uniform distribution U[0, θ] on the interval [0, θ] has p.d.f.

Supplementary Material for: Classical Testing in Functional Linear Models

Summation Method for Some Special Series Exactly

One-Sample Test for Proportion

Observer Design with Reduced Measurement Information

Sx [ ] = x must yield a

AN OPTIMIZATION APPROACH TO UNCERTAINTY PROPAGATION IN BOUNDARY LOAD FLOW

Addendum. Addendum. Vector Review. Department of Computer Science and Engineering 1-1

MATH/STAT 352: Lecture 15

Solutions 3.2-Page 215

GRAPHING LINEAR EQUATIONS. Linear Equations ( 3,1 ) _x-axis. Origin ( 0, 0 ) Slope = change in y change in x. Equation for l 1.

WRITTEN ASSIGNMENT 1 ANSWER KEY

Explicit and closed formed solution of a differential equation. Closed form: since finite algebraic combination of. converges for x x0

SYNTHESIS OF SIGNAL USING THE EXPONENTIAL FOURIER SERIES

Advanced Sensitivity Analysis of the Semi-Assignment Problem

Bayesian Estimation and Prediction for. a Mixture of Exponentiated Kumaraswamy. Distributions

SOME NOTES ON INEQUALITIES

Optimal Management of the Spare Parts Stock at Their Regular Distribution

Fluids Lecture 2 Notes

Pass-Fail Testing: Statistical Requirements and Interpretations

f(x i ; ) L(x; p) = i=1 To estimate the value of that maximizes L or equivalently ln L we will set =0, for i =1, 2,...,m p x i (1 p) 1 x i i=1

The picture in figure 1.1 helps us to see that the area represents the distance traveled. Figure 1: Area represents distance travelled

Efficient GMM LECTURE 12 GMM II

Basic Probability/Statistical Theory I

COMP26120: Introducing Complexity Analysis (2018/19) Lucas Cordeiro

Production Test of Rotary Compressors Using Wavelet Analysis

(8) 1f = f. can be viewed as a real vector space where addition is defined by ( a1+ bi

Introduction to Matrix Algebra

Department of Biostatistics University of North Carolina at Chapel Bill. Institute of Statistics- Mimeo Series No

THE MEASUREMENT OF THE SPEED OF THE LIGHT

The program calculates the required thickness of doubler plates using the following algorithms. The shear force in the panel zone is given by: V p =

What is a Hypothesis? Hypothesis is a statement about a population parameter developed for the purpose of testing.

HOUSEHOLDER S APPROXIMANTS AND CONTINUED FRACTION EXPANSION OF QUADRATIC IRRATIONALS. Vinko Petričević University of Zagreb, Croatia

N A N A ( ) We re-arrange and collapse the random variables into a set corresponding to the weighted

Confidence intervals summary Conservative and approximate confidence intervals for a binomial p Examples. MATH1005 Statistics. Lecture 24. M.

Recommendation T/N (Edinburgh 1988)

4. Optical Resonators

Principal Component Analysis. Nuno Vasconcelos ECE Department, UCSD

Computer Science 188 Artificial Intelligence. Introduction to Probability. Probability Ryan Waliany

Exploring randomness

Package labelrank. November 22, 2015

RENEWAL AND AVAILABILITY FUNCTIONS

Principal Component Analysis

The Poisson Distribution

Abstract Vector Spaces. Abstract Vector Spaces

To investigate the relationship between the work done to accelerate a trolley and the energy stored in the moving trolley.

The effect of Soret parameter on the onset of double diffusive convection in a Darcy porous medium saturated with couple stress fluid

Statistical Inference Based on Extremum Estimators

NCSS Statistical Software. Tolerance Intervals

Another face of DIRECT

MULTILEVEL ANALYSIS OF DELAMINATION INITIATED NEAR THE EDGES OF COMPOSITE STRUCTURES

POWER SERIES METHODS CHAPTER 8 SECTION 8.1 INTRODUCTION AND REVIEW OF POWER SERIES

Solving the ZF Receiver Equation for MIMO Systems Under Variable Channel Conditions Using the Block Fourier Algorithm

Lecture Note 8 Point Estimators and Point Estimation Methods. MIT Spring 2006 Herman Bennett

Number Of Real Zeros Of Random Trigonometric Polynomial

\,. Si2:nal Detection and. Optical AmpUfler or Signal Regenentor ""' Fiber La~er Laser Coupler Driver Diode,-~ [> I I ~ : Modulator. Splice.

Lesson 23: The Defining Equation of a Line

Anna Janicka Mathematical Statistics 2018/2019 Lecture 1, Parts 1 & 2

Canimals. borrowed, with thanks, from Malaspina University College/Kwantlen University College

Random Matrices with Blocks of Intermediate Scale Strongly Correlated Band Matrices

University of Arizona ECE/OPTI 500C: Photonic Communications Engineering I C Fall Forward Error Correction (FEC) By Ivan B.

β COMPACT SPACES IN FUZZIFYING TOPOLOGY *

Maximum Likelihood Estimation

Math 151 Introduction to Eigenvectors

Lesson 8 Refraction of Light

Solution of heat equation with variable coefficient using derive

Compression Members Local Buckling and Section Classification

Physics 30 Lesson 8 Refraction of Light

Lesson 4. Thermomechanical Measurements for Energy Systems (MENR) Measurements for Mechanical Systems and Production (MMER)

Physics 3 (PHYF144) Chap 8: The Nature of Light and the Laws of Geometric Optics - 1

Recursive Computations for Discrete Random Variables

Transcription:

Type Pakage Pakage diffdepprop Feruary 19, 2015 Title Calulates Cofidee Itervals for two Depedet Proportios Versio 0.1-9 Date 2013-05-03 Author Maitaier Daiela Wezel <dai-wezel@gmx.et> The pakage iludes futios to alulate ofidee itervals for the differee of depedet proportios. There are two futios implemeted to edit the data (dihotomisig with the help of utpoits, outig aordae ad disordae of two tests or situatios). For the alulatio of the ofidee itervals etries of the fourfold tale are eeded. Depeds gee, rootsolve, PropCIs Liese GPL NeedsCompilatio o Repository CRAN Date/Puliatio 2013-05-03 19:07:38 R topis doumeted: diffdepprop-pakage.................................... 2 out.fourfold........................................ 3 data.p............................................ 4 diffpi............................................ 5 exat.od.......................................... 6 exat.midp.......................................... 7 p.v............................................ 8 p.t............................................. 9 uod............................................ 10 wald............................................ 11 wilso............................................ 12 wilso........................................... 13 wilso.phi.......................................... 14 1

2 diffdepprop-pakage Idex 15 diffdepprop-pakage Calulates Cofidee Itervals for two Depedet Proportios Details The pakage iludes futios to alulate ofidee itervals for the differee of depedet proportios. There are two futios implemeted to edit the data (dihotomisig with the help of utpoits, outig aordae ad disordae of two tests or situatios). For the alulatio of the ofidee itervals etries of the fourfold tale are eeded. Pakage: diffdepprop Type: Pakage Versio: 0.1-9 Date: 2013-05-03 Liese: GPL>=2 Maitaier: Daiela Wezel <dai-wezel@gmx.et> Newome, R.G. (1998). Improved ofidee itervals for the differee etwee iomial proportios ased o paired data. Statistis i Mediie 17. 2635-2650. Clopper, C. ad Pearso, E.S. (1934). The use of ofidee or fiduial limits illustrated i the ase of the iomial. Biometrika 26, 404-413. Vollset, S.E. (1993). Cofidee itervals for a iomial proportio. Statistis i Mediie 12. 809-824. Lage, K. ad Bruer, E. (2012). Sesitivity, Speifiity ad ROC-urves i multiple reader diagosti trials-a uified, oparametri approah. Statistial Methodology 9, 490-500. Fleiss, Joseph L. et al. (2003). Statistial Methods for Rates ad Proportios. Wiley. See Also PropCIs

out.fourfold 3 # a=10, =15, =5, d=20, =50, type I error is 0.05 wilso = wilso(10,15,5,20,50,0.05) # =15, =5, =50, type I error is 0.05 exat.od = exat.od(15, 5, 50, 0.05) out.fourfold Couts the umers of disordae ad oordae of two tests I the ase two depedet tests shall e ompared a fourfold tale is mostly eeded. out.fourfold outs the umers of oordae ad disordae of oth tests. out.fourfold(data, ol.test1, ol.test2) data ol.test1 ol.test2 ame of the data umer of olum represetig the first test umer of olum represetig the seod test A vetor otaiig the four etries of the fourfold tale, row wise listed # reate a data set with zero ad oes for eah of oth tests v1=(rep(1,10),rep(0,4),rep(1,8),rep(0,8)) v2=(rep(0,10),rep(1,5),rep(0,5),rep(1,10)) =(seq(1,30,1)) ew=id(,v1,v2) # out the umer of oordae ad disordae out.fourfold(ew,1,2)

4 data.p data.p Creates iary data of a give data set Biary data are sometimes eeded to aalyse these data. Data of two situatio (e.g. diagosti tests) with otious outome are assumed to e give. With the help of the utpoit for eah test, these data a e dihotomise. data.p(dat, ol.test1, ol.test2, p.test1, p.test2) dat ol.test1 ol.test2 p.test1 p.test2 ame of the data set you wat to e dihotomise umer of the olum of the first test i the data set, whih shall e dihotomised umer of the olum of the seod test i the data set, whih shall e dihotomised utpoit for the first test utpoit for the seod test A matrix otaiig the two tests with iary data # reate a data set v1=(seq(1,10,0.5)) v2=(seq(2,11,0.5)) =(seq(1,19,1)) ew=id(,v1,v2) # utpoit of the first test is 1.6, of the seod test 2.3 result=data.p(ew,2,3,1.6,2.3)

diffpi 5 diffpi Calulates various ofidee itervals for the differee of two depedet proportios This futio gives 12 differet two-sided ofidee itervals. Data are assumed to e of a fourfold tale, whih otais the umers of oordae ad the umers of disordae of two depedet methods. The followig itervals are listed: Wald, Wald with otiuity orretio, Agresti, Tago, Exat (Clopper Pearso ad mid-p), Profile Likelihood, Wilso (without ad with otiuity orretios) ad oparametri approahes usig rak methods (with ormal ad t-approximatio). diffpi(a,,, d,, ) a d first umer of oordat paires as desried aove first umer of disordat paires as desried aove seod umer of disordat paires as desried aove seod umer of oordat paires as desried aove umer of oserved ojets Details Details are give for eah futio separately. A matrix otaiig the method, the differee estimator ad the orrespodig ofidee limits. Newome, R.G. (1998). Improved ofidee itervals for the differee etwee iomial proportios ased o paired data. Statistis i Mediie 17. 2635-2650. Clopper, C. ad Pearso, E.S. (1934). The use of ofidee or fiduial limits illustrated i the ase of the iomial. Biometrika 26, 404-413. Vollset, S.E. (1993). Cofidee itervals for a iomial proportio. Statistis i Mediie 12. 809-824.

6 exat.od Lage, K. ad Bruer, E. (2012). Sesitivity, Speifiity ad ROC-urves i multiple reader diagosti trials-a uified, oparametri approah. Statistial Methodology 9, 490-500. Fleiss, Joseph L. et al. (2003). Statistial Methods for Rates ad Proportios. Wiley. # a=59, =23, =3, d=37, =122, type I error is 0.05 diffpi(59,23,3,37,122,0.05) exat.od Calulates a exat oditioal ofidee iterval usig a Clopper Pearso iterval. exat.od gives a two-sided exat oditial ofidee iterval for the differee of two depedet proportios. It is uilt of a Clopper Pearso Iterval. Data are assumed to e of a fourfold tale, whih otais the umers of oordae ad the umers of disordae of two depedet methods. exat.od(,,, ) first umer of disordat pairs i a fourfold tale as desried aove seod umer of disordat pairs i a fourfold tale as desried aove umer of oserved ojets A list with lass "htest" otaiig the followig ompoets: of.it a ofidee iterval for the differee i proportios d differee i proportios Clopper, C. ad Pearso, E.S. (1934). The use of ofidee or fiduial limits illustrated i the ase of the iomial. Biometrika 26, 404-413. Newome, R.G. (1998). Improved ofidee itervals for the differee etwee iomial proportios ased o paired data. Statistis i Mediie 17. 2635-2650.

exat.midp 7 # =10, =20, =50, type I error is 0.05 of.it=exat.od(10,20,50,0.05) exat.midp Calulates a exat oditioal ofidee iterval usig a mid-p iterval. exat.midp gives a two-sided exat oditioal ofidee iterval for the differee of two depedet proportios. It is uilt of a mid-p Iterval. Data are assumed to e of a fourfold tale, whih otais the umers of oordae ad the umers of disordae of two depedet methods. exat.midp(,,, ) first umer of disordat pairs i a fourfold tale as desried aove seod umer of disordat pairs i a fourfold tale as desried aove umer of oserved ojets A list with lass "htest" otaiig the followig ompoets: of.it a ofidee iterval for the differee i proportios d differee i proportios Vollset, S.E. (1993). Cofidee itervals for a iomial proportio. Statistis i Mediie 12. 809-824. Newome, R.G. (1998). Improved ofidee itervals for the differee etwee iomial proportios ased o paired data. Statistis i Mediie 17. 2635-2650. # =10, =20, =50, type I error is 0.05 of.it=exat.midp(10,20,50,0.05)

8 p.v p.v Calulates a rak-ased ofidee iterval p.v gives a two-sided rak-ased ofidee iterval with ormal approximatio for the differee of two depedet proportios. Data are assumed to e of a fourfold tale, whih otais the umers of oordae ad the umers of disordae of two depedet methods. p.v(a,,, d,, ) a d first umer of oordat paires as desried aove first umer of disordat paires as desried aove seod umer of disordat paires as desried aove seod umer of oordat paires as desried aove umer of oserved ojets Details The ormal approximatio is used for the ritial value for the iterval. A list with lass "htest" otaiig the followig ompoets: of.it a ofidee iterval for the differee i proportios d differee i proportios Lage, K. ad Bruer, E. (2012). Sesitivity, Speifiity ad ROC-urves i multiple reader diagosti trials-a uified, oparametri approah. Statistial Methodology 9, 490-500. # a=10, =15, =5, d=20, =50, type I error is 0.05 of.it=p.v(10,15,5,20,50,0.05)

p.t 9 p.t Calulates a rak-ased ofidee iterval p.t gives a two-sided rak-ased ofidee iterval with t- approximatio for the differee of two depedet proportios. Data are assumed to e of a fourfold tale, whih otais the umers of oordae ad the umers of disordae of two depedet methods. p.t(a,,, d,, ) a d first umer of oordat paires as desried aove first umer of disordat paires as desried aove seod umer of disordat paires as desried aove seod umer of oordat paires as desried aove umer of oserved ojets Details The t-approximatio is used for the ritial value for the iterval. A list with lass "htest" otaiig the followig ompoets: of.it a ofidee iterval for the differee i proportios d differee i proportios Lage, K. ad Bruer, E. (2012). Sesitivity, Speifiity ad ROC-urves i multiple reader diagosti trials-a uified, oparametri approah. Statistial Methodology 9, 490-500. # a=10, =15, =5, d=20, =50, type I error is 0.05 of.it=p.t(10,15,5,20,50,0.05)

10 uod uod Calulates a uoditioal true profile likelihood ofidee iterval. uod gives a two-sided true profile likelihood ofidee iterval for the differee of two depedet proportios. It is uilt y the solutio of a iequality. Data are assumed to e of a fourfold tale, whih otais the umer of oordae ad the umer of disordae of two depedet methods. uod(a,,, d,, ) a d first umer of oordat paires as desried aove first umer of disordat paires as desried aove seod umer of disordat paires as desried aove seod umer of oordat paires as desried aove umer of oserved ojets Details The true profile likelihood ofidee iterval has as lower limit the miimum of the solutios for the iequality of the maximum likelihood futio ad the quatile of the ormal distriutio. The upper limit is defied as the maximum solutio of this iequality. A list with lass "htest" otaiig the followig ompoets: of.it a ofidee iterval for the differee i proportios d differee i proportios Newome, R.G. (1998). Improved ofidee itervals for the differee etwee iomial proportios ased o paired data. Statistis i Mediie 17. 2635-2650.

wald. 11 # a=10, =15, =5, d=20, =50, type I error is 0.05 of.it=uod(10,15,5,20,50,0.05) wald. Calulates a Wald ofidee iterval with otiuity orretio wald. gives a two-sided Wald ofidee iterval with otiuity orretio for the differee of two depedet proportios. The otiuity orretio fator is 1. Data are assumed to e of a fourfold tale, whih otais the umers of oordae ad the umers of disordae of two depedet methods. wald.(,,, ) first umer of disordat pairs i a fourfold tale as desried aove seod umer of disordat pairs i a fourfold tale as desried aove umer of oserved ojets A list with lass "htest" otaiig the followig ompoets: of.it a ofidee iterval for the differee i proportios d differee i proportios Fleiss, Joseph L. et al. (2003). Statistial Methods for Rates ad Proportios. Wiley. # =10, =20, =50, type I error is 0.05 of.it=wald.(10,20,50,0.05)

12 wilso wilso Calulates a Wilso ofidee iterval wilso gives a two-sided Wilso ofidee iterval for the differee of two depedet proportios. There is o otiuity orretio performed. Data are assumed to e of a fourfold tale, whih otais the umers of oordae ad the umers of disordae of two depedet methods. wilso(a,,, d,, ) a d first umer of oordat paires as desried aove first umer of disordat paires as desried aove seod umer of disordat paires as desried aove seod umer of oordat paires as desried aove umer of oserved ojets A list with lass "htest" otaiig the followig ompoets: of.it a ofidee iterval for the differee i proportios d differee i proportios Newome, R.G. (1998). Improved ofidee itervals for the differee etwee iomial proportios ased o paired data. Statistis i Mediie 17. 2635-2650. # a=10, =15, =5, d=20, =50, type I error is 0.05 of.it=wilso(10,15,5,20,50,0.05)

wilso. 13 wilso. Calulates a Wilso ofidee iterval with otiuity orretio wilso. gives a two-sided Wilso ofidee iterval with otiuity orretio for the differee of two depedet proportios. The otiuity orretio is performed to the sore limits. Data are assumed to e of a fourfold tale, whih otais the umers of oordae ad the umers of disordae of two depedet methods. wilso.(a,,, d,, ) a d first umer of oordat paires as desried aove first umer of disordat paires as desried aove seod umer of disordat paires as desried aove seod umer of oordat paires as desried aove umer of oserved ojets A list with lass "htest" otaiig the followig ompoets: of.it a ofidee iterval for the differee i proportios d differee i proportios Newome, R.G. (1998). Improved ofidee itervals for the differee etwee iomial proportios ased o paired data. Statistis i Mediie 17. 2635-2650. # a=10, =15, =5, d=20, =50, type I error is 0.05 of.it=wilso.(10,15,5,20,50,0.05)

14 wilso.phi wilso.phi Calulates a Wilso ofidee iterval with otiuity orretio wilso.phi gives a two-sided Wilso ofidee iterval with otiuity orretio for the differee of two depedet proportios. Data are assumed to e of a fourfold tale, whih otais the umers of oordae ad the umers of disordae of two depedet methods. The otiuity orretio is performed to the d phi whih is alulated y the etries of the fourfold tale. wilso.phi(a,,, d,, ) a d first umer of oordat paires as desried aove first umer of disordat paires as desried aove seod umer of disordat paires as desried aove seod umer of oordat paires as desried aove umer of oserved ojets A list with lass "htest" otaiig the followig ompoets: of.it a ofidee iterval for the differee i proportios d differee i proportios Newome, R.G. (1998). Improved ofidee itervals for the differee etwee iomial proportios ased o paired data. Statistis i Mediie 17. 2635-2650. # a=10, =15, =5, d=20, =50, type I error is 0.05 of.it=wilso.phi(10,15,5,20,50,0.05)

Idex out.fourfold, 3 data.p, 4 diffdepprop (diffdepprop-pakage), 2 diffdepprop-pakage, 2 diffpi, 5 exat.od, 6 exat.midp, 7 p.v, 8 p.t, 9 uod, 10 wald., 11 wilso, 12 wilso., 13 wilso.phi, 14 15