IDEAS home Printed from https://ideas.repec.org/a/pab/rmcpee/v8y2009i1p50-70.html

Análisis bayesiano para la diferencia de dos proporciones usando R = Bayesian Analysis for the Difference of Two Proportions Using R

Author

Listed:
  • Gutiérrez Rojas, Hugo Andrés

    (Centro de Investigaciones y Estudios Estadísticos (CIEES). Universidad Santo Tomás (Bogotá, Colombia))

  • Zhang, Hanwen

    (Centro de Investigaciones y Estudios Estadísticos (CIEES). Universidad Santo Tomás (Bogotá, Colombia))

Abstract

Este artículo presenta una colección de funciones computacionales que son utilizadas en la implementación de un análisis bayesiano exhaustivo para la diferencia de dos proporciones. Con este fin, se discute la estimación puntual, la estimación mediante intervalos de credibilidad y la inferencia predictiva desde dos escenarios: el primero basado en las densidades exactas a priori y a posteriori (construidas mediante la primera función hipergeométrica de Appell) y el segundo basado en densidades simuladas (mediante un algoritmo de cadenas de Markov con métodos de Monte Carlo). La implementación de estas funciones se realiza en el programa estadístico R, porque es un software libre, funciona bien en múltiples plataformas y permite enmarcar estas funciones bajo un objeto computacional denominado “paquete”. 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”.

Suggested Citation

  • Gutiérrez Rojas, Hugo Andrés & Zhang, Hanwen, 2009. "Análisis bayesiano para la diferencia de dos proporciones usando R = Bayesian Analysis for the Difference of Two Proportions Using R," Revista de Métodos Cuantitativos para la Economía y la Empresa = Journal of Quantitative Methods for Economics and Business Administration, Universidad Pablo de Olavide, Department of Quantitative Methods for Economics and Business Administration, vol. 8(1), pages 50-70, December.
  • Handle: RePEc:pab:rmcpee:v:8:y:2009:i:1:p:50-70
    as

    Download full text from publisher

    File URL: http://www.upo.es/RevMetCuant/art31.pdf
    Download Restriction: no

    File URL: http://www.upo.es/RevMetCuant/art31.txt
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Alan Agresti & Yongyi Min, 2005. "Frequentist Performance of Bayesian Confidence Intervals for Comparing Proportions in 2 × 2 Contingency Tables," Biometrics, The International Biometric Society, vol. 61(2), pages 515-523, June.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Frank Tuyl & Richard Gerlach & Kerrie Mengersen, 2008. "Inference for Proportions in a 2 × 2 Contingency Table: HPD or not HPD?," Biometrics, The International Biometric Society, vol. 64(4), pages 1293-1295, December.
    2. Minoda, Yuta & Yanagimoto, Takemi, 2009. "Estimation of a common slope in a gamma regression model with multiple strata: An empirical Bayes method," Computational Statistics & Data Analysis, Elsevier, vol. 53(12), pages 4178-4185, October.
    3. Maria Bekker-Nielsen Dunbar & Thomas J R Finnie & Barney Sloane & Ian M Hall, 2019. "Methods for calculating credible intervals for ratios of beta distributions with application to relative risks of death during the second plague pandemic," PLOS ONE, Public Library of Science, vol. 14(2), pages 1-12, February.
    4. Hezhi Lu & Fengjing Cai & Yuan Li & Xionghui Ou, 2022. "Accurate interval estimation for the risk difference in an incomplete correlated 2 × 2 table: Calf immunity analysis," PLOS ONE, Public Library of Science, vol. 17(7), pages 1-23, July.
    5. Peng Bai & Wen Gan & Lei Shi, 2011. "Bayesian confidence interval for the risk ratio in a correlated 2 × 2 table with structural zero," Journal of Applied Statistics, Taylor & Francis Journals, vol. 38(12), pages 2805-2817, February.
    6. Luai Al-Labadi & Petru Ciur & Milutin Dimovic & Kyuson Lim, 2023. "Assessing Multinomial Distributions with a Bayesian Approach," Mathematics, MDPI, vol. 11(13), pages 1-16, July.
    7. Chris J. Lloyd, 2008. "A New Exact and More Powerful Unconditional Test of No Treatment Effect from Binary Matched Pairs," Biometrics, The International Biometric Society, vol. 64(3), pages 716-723, September.
    8. Alan Agresti & Sabrina Giordano & Anna Gottard, 2022. "A Review of Score-Test-Based Inference for Categorical Data," Journal of Quantitative Economics, Springer;The Indian Econometric Society (TIES), vol. 20(1), pages 31-48, September.
    9. Li, Huiqiong & Tian, Guoliang & Tang, Niansheng & Cao, Hongyuan, 2018. "Assessing non-inferiority for incomplete paired-data under non-ignorable missing mechanism," Computational Statistics & Data Analysis, Elsevier, vol. 127(C), pages 69-81.
    10. Luzia Gonçalves & M. Rosário de Oliveira & Cláudia Pascoal & Ana Pires, 2012. "Sample size for estimating a binomial proportion: comparison of different methods," Journal of Applied Statistics, Taylor & Francis Journals, vol. 39(11), pages 2453-2473, July.
    11. Tuany Paula Castro & Carlos Daniel Paulino & Julio M. Singer, 2022. "A fair comparison of credible and confidence intervals: an example with binomial proportions," METRON, Springer;Sapienza Università di Roma, vol. 80(3), pages 371-382, December.
    12. Antonella Lopez & Alessandro Germani & Luigi Tinella & Alessandro Oronzo Caffò & Albert Postma & Andrea Bosco, 2021. "The Road More Travelled: The Differential Effects of Spatial Experience in Young and Elderly Participants," IJERPH, MDPI, vol. 18(2), pages 1-20, January.
    13. Alan Agresti & Matilde Bini & Bruno Bertaccini & Euijung Ryu, 2008. "Simultaneous Confidence Intervals for Comparing Binomial Parameters," Biometrics, The International Biometric Society, vol. 64(4), pages 1270-1275, December.
    14. Lei Shi & Hongyuan Sun & Peng Bai, 2009. "Bayesian confidence interval for difference of the proportions in a 2×2 table with structural zero," Journal of Applied Statistics, Taylor & Francis Journals, vol. 36(5), pages 483-494.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;

    JEL classification:

    • C11 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods and Methodology: General - - - Bayesian Analysis: General
    • C12 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods and Methodology: General - - - Hypothesis Testing: General
    • C63 - Mathematical and Quantitative Methods - - Mathematical Methods; Programming Models; Mathematical and Simulation Modeling - - - Computational Techniques

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:pab:rmcpee:v:8:y:2009:i:1:p:50-70. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Publicación Digital - UPO (email available below). General contact details of provider: https://edirc.repec.org/data/dmupoes.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.