Bayesian Analysis for the Difference of Two Proportions Using R

Authors

  • Hugo Andrés Gutiérrez Rojas Centro de Investigaciones y Estudios Estadísticos (CIEES) Universidad Santo Tomás (Bogotá)
  • Hanwen Zhang Centro de Investigaciones y Estudios Estadísticos (CIEES) Universidad Santo Tomás (Bogotá)

DOI:

https://doi.org/10.46661/revmetodoscuanteconempresa.2129

Keywords:

Estimación, funciones en R, inferencia bayesiana, proporciones, Bayesian inference, estimation, proportions, R functions

Abstract

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

Download data is not yet available.

Author Biography

Hugo Andrés Gutiérrez Rojas, Centro de Investigaciones y Estudios Estadísticos (CIEES) Universidad Santo Tomás (Bogotá)


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.

Published

2016-11-04

How to Cite

Gutiérrez Rojas, H. A., & Zhang, H. (2016). Bayesian Analysis for the Difference of Two Proportions Using R. Journal of Quantitative Methods for Economics and Business Administration, 8, Páginas 50 a 70. https://doi.org/10.46661/revmetodoscuanteconempresa.2129

Issue

Section

Articles