Bayesian Analysis for the Difference of Two Proportions Using R
DOI:
https://doi.org/10.46661/revmetodoscuanteconempresa.2129Keywords:
Estimación, funciones en R, inferencia bayesiana, proporciones, Bayesian inference, estimation, proportions, R functionsAbstract
In this paper we present a collection of functions that can be used to implement a comprehensive Bayesian analysis of a difference of two proportions. For instance, point estimation, credibility intervals and predictive inference are discussed in both scenarios, the priori and posteriori exact densities (based in the first Appell hypergeometric function) and the simulated densities (based in a Markov chain Monte Carlo algorithm). We have chosen to implement the suite of functions using the R statistical software because it is freely available, runs on multiple platforms and allows to compress the functions into a single computational object named “package”.
Downloads
References
Agresti, A. & Coull, B. A. (1998), ‘Approximate is better than exact for interval estimation of binomial proportions’, The American Statistician 52(2), 119–126.
Agresti, A. & Min, Y. (2005), ‘Frequentist performance of bayesian confidence intervals for comparing proportions in 2 × 2 contingency tables’, Biometrics 61, 515–523.
Albert, J. (2007), Bayesian Computation with R, Springer.
Bailey, W. N. (1934), ‘On the Reducibility of Appell's Function F4’, Quart. J. Math 5, 291–292.
Canavos, G. C. (1988), Probabilidad y estadística: aplicaciones y métodos, McGraw-Hill.
Carlin, B. P. & Louis, T. A. (1996), Bayes and Empirical Bayes for Data Analysis, 1 edn, Chapman and Hall/CRC.
Fisher, R. A. (1970), Statistical Methods for Research Workers, 15 edn, Macmillan Pub. Co.
Gamerman, D. & Lopes, H. F. (2006), Markov Chain Monte Carlo, Chapman and Hall/CRC.
Gelman, A. (2008), ‘Objections to bayesian statistics’, Bayesian Analysis 3(3), 445–450.
Gelman, A., Carlin, J. B., Stern, H. S. & Rubin, D. B. (1995), Bayesian Data Analysis, 1 edn, Chapman and Hall/CRC.
Jack, A., Woodard, D., Hoffman, J. & O’Connell, M. (2007), Bayesian Modeling with S-PLUS and the flexBayes Library, Insightful Corporation.
Jeffreys, H. (1961), The Theory of Probability, Oxford.
Magidson, J. (1982), ‘Some common pitfalls in causal analysis of categorical data’, Journal of Marketing Research 19, 461–471.
Magidson, J. (2004), ‘Epidat 3.0: programa para análisis epidemiológico de datos tabulados’, Revista Española de Salud Pública 78(2), 277–280.
Pham-Gia, T. & Turkkan, N. (1993), ‘Bayesian analysis of the difference of two proportions’, Communications in Statistics: Theory and Methods 22(6), 1755–1771.
Pope, J. L. (1984), Investigación de mercados. Guía maestra para el profesional, Grupo Editorial Norma.
R Development Core Team (2008), R: A Language and Environment for Statistical Computing, R Foundation for Statistical Computing, Vienna, Austria.
SAS (2006), Preliminary Capabilities for Bayesian Analysis in SAS/STAT Software.
Spiegelhalter, D., Thomas, A., Best, N. & Lunn, D. (2004), WinBUGS User Manual.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2009 Revista de Métodos Cuantitativos para la Economía y la Empresa

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Submission of manuscripts implies that the work described has not been published before (except in the form of an abstract or as part of thesis), that it is not under consideration for publication elsewhere and that, in case of acceptance, the authors agree to automatic transfer of the copyright to the Journal for its publication and dissemination. Authors retain the authors' right to use and share the article according to a personal or instutional use or scholarly sharing purposes; in addition, they retain patent, trademark and other intellectual property rights (including research data).
All the articles are published in the Journal under the Creative Commons license CC-BY-SA (Attribution-ShareAlike). It is allowed a commercial use of the work (always including the author attribution) and other derivative works, which must be released under the same license as the original work.
Up to Volume 21, this Journal has been licensing the articles under the Creative Commons license CC-BY-SA 3.0 ES. Starting from Volume 22, the Creative Commons license CC-BY-SA 4.0 is used.