IDEAS home Printed from https://ideas.repec.org/a/eee/csdana/v71y2014icp1011-1020.html
   My bibliography  Save this article

Generating beta random numbers and Dirichlet random vectors in R: The package rBeta2009

Author

Listed:
  • Cheng, Ching-Wei
  • Hung, Ying-Chao
  • Balakrishnan, Narayanaswamy

Abstract

A software package, rBeta2009, developed to generate beta random numbers and Dirichlet random vectors in R is presented. The package incorporates state-of-the-art algorithms so as to minimize the computer generation time. In addition, it is designed in a way that (i) the generation efficiency is robust to changes of computer architecture; (ii) memory allocation is flexible; and (iii) the exported objects can be easily integrated with other software. The usage of this package is then illustrated and evaluated in terms of various performance metrics.

Suggested Citation

  • Cheng, Ching-Wei & Hung, Ying-Chao & Balakrishnan, Narayanaswamy, 2014. "Generating beta random numbers and Dirichlet random vectors in R: The package rBeta2009," Computational Statistics & Data Analysis, Elsevier, vol. 71(C), pages 1011-1020.
  • Handle: RePEc:eee:csdana:v:71:y:2014:i:c:p:1011-1020
    DOI: 10.1016/j.csda.2013.02.019
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0167947313000753
    Download Restriction: Full text for ScienceDirect subscribers only.

    File URL: https://libkey.io/10.1016/j.csda.2013.02.019?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Eddelbuettel, Dirk & Francois, Romain, 2011. "Rcpp: Seamless R and C++ Integration," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 40(i08).
    2. A. C. Atkinson, 1979. "The Computer Generation of Poisson Random Variables," Journal of the Royal Statistical Society Series C, Royal Statistical Society, vol. 28(1), pages 29-35, March.
    3. Tian, Guo-Liang & Tang, Man-Lai & Yuen, Kam Chuen & Ng, Kai Wang, 2010. "Further properties and new applications of the nested Dirichlet distribution," Computational Statistics & Data Analysis, Elsevier, vol. 54(2), pages 394-405, February.
    4. Wichmann, B.A. & Hill, I.D., 2006. "Generating good pseudo-random numbers," Computational Statistics & Data Analysis, Elsevier, vol. 51(3), pages 1614-1622, December.
    5. da-Silva, C.Q. & Migon, H.S. & Correia, L.T., 2011. "Dynamic Bayesian beta models," Computational Statistics & Data Analysis, Elsevier, vol. 55(6), pages 2074-2089, June.
    6. Chiu, Sung Nok & Liu, Kwong Ip, 2009. "Generalized Cramér-von Mises goodness-of-fit tests for multivariate distributions," Computational Statistics & Data Analysis, Elsevier, vol. 53(11), pages 3817-3834, September.
    7. Bruce W. Schmeiser & A. J. G. Babu, 1980. "Beta Variate Generation via Exponential Majorizing Functions," Operations Research, INFORMS, vol. 28(4), pages 917-926, August.
    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. Wilson J. Wright & Peter N. Neitlich & Alyssa E. Shiel & Mevin B. Hooten, 2022. "Mechanistic spatial models for heavy metal pollution," Environmetrics, John Wiley & Sons, Ltd., vol. 33(8), December.
    2. Gorynin, Ivan & Derrode, Stéphane & Monfrini, Emmanuel & Pieczynski, Wojciech, 2017. "Fast smoothing in switching approximations of non-linear and non-Gaussian models," Computational Statistics & Data Analysis, Elsevier, vol. 114(C), pages 38-46.
    3. Fernández de Marcos Giménez de los Galanes, Alberto & García Portugués, Eduardo, 2022. "Data-driven stabilizations of goodness-of-fit tests," DES - Working Papers. Statistics and Econometrics. WS 35324, Universidad Carlos III de Madrid. Departamento de Estadística.
    4. Sloot Henrik, 2022. "Implementing Markovian models for extendible Marshall–Olkin distributions," Dependence Modeling, De Gruyter, vol. 10(1), pages 308-343, January.
    5. Cindy Frascolla & Guillaume Lecuelle & Pascal Schlich & Hervé Cardot, 2022. "Two sample tests for Semi-Markov processes with parametric sojourn time distributions: an application in sensory analysis," Computational Statistics, Springer, vol. 37(5), pages 2553-2580, November.
    6. Samrachana Adhikari & Tracy Sweet & Brian Junker, 2021. "Analysis of longitudinal advice‐seeking networks following implementation of high stakes testing," Journal of the Royal Statistical Society Series A, Royal Statistical Society, vol. 184(4), pages 1475-1500, October.
    7. Bachoc, François & Genton, Mark G. & Nordhausen, Klaus & Ruiz-Gazen, Anne & Virta, Joni, 2019. "Spatial Blind Source Separation," TSE Working Papers 19-998, Toulouse School of Economics (TSE).
    8. Bill Venables, 2017. "JOHN M. CHAMBERS . Extending R . Boca Raton : CRC Press," Biometrics, The International Biometric Society, vol. 73(2), pages 709-710, June.
    9. Anoek Castelein & Dennis Fok & Richard Paap, 2020. "A multinomial and rank-ordered logit model with inter- and intra-individual heteroscedasticity," Tinbergen Institute Discussion Papers 20-069/III, Tinbergen Institute.
    10. Adrien Ickowicz & Jessica Ford & Keith Hayes, 2019. "A Mixture Model Approach for Compositional Data: Inferring Land-Use Influence on Point-Referenced Water Quality Measurements," Journal of Agricultural, Biological and Environmental Statistics, Springer;The International Biometric Society;American Statistical Association, vol. 24(4), pages 719-739, December.
    11. James Joseph Balamuta & Steven Andrew Culpepper, 2022. "Exploratory Restricted Latent Class Models with Monotonicity Requirements under PÒLYA–GAMMA Data Augmentation," Psychometrika, Springer;The Psychometric Society, vol. 87(3), pages 903-945, September.
    12. Athanasios C. Micheas & Jiaxun Chen, 2018. "sppmix: Poisson point process modeling using normal mixture models," Computational Statistics, Springer, vol. 33(4), pages 1767-1798, December.
    13. Manuel L. Esquível & Nadezhda P. Krasii, 2023. "On Structured Random Matrices Defined by Matrix Substitutions," Mathematics, MDPI, vol. 11(11), pages 1-29, May.
    14. Martinetti, Davide & Geniaux, Ghislain, 2017. "Approximate likelihood estimation of spatial probit models," Regional Science and Urban Economics, Elsevier, vol. 64(C), pages 30-45.
    15. Jin, Shaobo & Moustaki, Irini & Yang-Wallentin, Fan, 2018. "Approximated penalized maximum likelihood for exploratory factor analysis: an orthogonal case," LSE Research Online Documents on Economics 88118, London School of Economics and Political Science, LSE Library.
    16. Martina Sundqvist & Julien Chiquet & Guillem Rigaill, 2023. "Adjusting the adjusted Rand Index," Computational Statistics, Springer, vol. 38(1), pages 327-347, March.
    17. Tenreiro, Carlos, 2011. "An affine invariant multiple test procedure for assessing multivariate normality," Computational Statistics & Data Analysis, Elsevier, vol. 55(5), pages 1980-1992, May.
    18. Shaobo Jin & Irini Moustaki & Fan Yang-Wallentin, 2018. "Approximated Penalized Maximum Likelihood for Exploratory Factor Analysis: An Orthogonal Case," Psychometrika, Springer;The Psychometric Society, vol. 83(3), pages 628-649, September.
    19. Michael Braun & Paul Damien, 2016. "Scalable Rejection Sampling for Bayesian Hierarchical Models," Marketing Science, INFORMS, vol. 35(3), pages 427-444, May.
    20. Thomas Stringham, 2022. "Fast Bayesian Record Linkage With Record-Specific Disagreement Parameters," Journal of Business & Economic Statistics, Taylor & Francis Journals, vol. 40(4), pages 1509-1522, October.

    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:eee:csdana:v:71:y:2014:i:c:p:1011-1020. 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: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/locate/csda .

    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.