bin.test: 'bin.test' - Multiple comparisons of several binomial...

Description Usage Arguments Details Value Note Author(s) References Examples

Description

A function for performing multiple comparisons of several binomial distributions. Used algorithm is based on method proposed by Agresti & Bini (2008).

Usage

1

Arguments

x

A data frame in required form (see Details or README file).

...

Further arguments to be passed to or from methods.

Details

The input data frame should have at least three columns and two rows (treatments), each row for one variant (treatment). Further columns are omitted. The treatment should be specified in the first column, second and third columns specify two options of the response. Each cell of the data frame should contain number (counts) of respective treatment/response combination.

For sample data, please see included data frame named testtab.

Value

mc

A data frame with results of multiple comparisons. Row names specifies respective pairwise comparison.

CI

Confidence intervals for probability of ratio of counts in second/third column of x.

errbars

Length of error bars for denoting 1-alpha CI

obs_variable

Variable, for whose probability the confidence intervals are computed (name of second column of input data frame x)

Note

The method works either with balanced or unbalanced data (total number of observations for each treatment), but does not work well when the ratio (probability) of counts in second/third column of input data frame x are very close to 0 or 1 (Agresti, Bini et al., 2008).

Author(s)

Rostislav Linda

References

Agresti, A., Bini, M., Bertaccini, B. and Ryu, E. (2008), Simultaneous Confidence Intervals for Comparing Binomial Parameters. Biometrics, 64: 1270-1275. doi:10.1111/j.1541-0420.2008.00990.x

Examples

1
2
3
## ---- Sample analysis on provided data frame ----

bin.test(testtab)

Lindros9203/mcbintest documentation built on May 6, 2019, 12:06 a.m.