binMtoMethods {binMto} | R Documentation |

## CI for difference of two proportions based on standard normal approximation

### Description

For internal use.

### Usage

```
Add4(nx, ny, X, Y, quantile, alternative)
Add2(nx, ny, X, Y, quantile, alternative)
NHS(nx, ny, X, Y, quantile, alternative)
Wald(nx, ny, X, Y, quantile, alternative)
```

### Arguments

`nx` |
a single numeric value, number of trials in sample x |

`ny` |
a single numeric value, number of trials in sample y |

`X` |
a single numeric value, number of successes in sample x |

`Y` |
a single numeric value, number of successes in sample y |

`quantile` |
e.g. |

`alternative` |
a character string, one of "two.sided", "less", "greater" |

### Value

A list containing

`conf.int` |
vector giving lower and upper bound |

`estimate` |
estimated difference px-py |

### Author(s)

Frank Schaarschmidt

### References

*Schaarschmidt, F., Biesheuvel, E., Hothorn, L.A. (2009):* Asymptotic simultaneous confidence intervals for many-to-one comparisons of binary proportions in randomized clinical trials, Journal of Biopharmaceutical Statistics 19(2):292-310.

*Agresti, A. and Caffo, B. (2000):* Simple and effective confidence intervals for proportions and differences of proportions result from adding two successes and two failures. American Statistician 54 (4), 280-288.

*Brown, L. and Li, X. (2005):* Confidence intervals for two sample binomial distribution. Journal of Statistical Planning and Inference 130, 359-375.

*Newcombe, R.G. (1998):* Interval estimation for the difference between independent proportions: comparison of eleven methods. Statistics in Medicine 17, 873-890.

### See Also

`pairwise.prop.test`

*binMto*version 0.0-7 Index]