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. 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.
    2. Eddelbuettel, Dirk & Francois, Romain, 2011. "Rcpp: Seamless R and C++ Integration," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 40(i08).
    3. 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.
    4. 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.
    5. Wichmann, B.A. & Hill, I.D., 2006. "Generating good pseudo-random numbers," Computational Statistics & Data Analysis, Elsevier, vol. 51(3), pages 1614-1622, December.
    6. 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.
    7. 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.
    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. 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.
    2. Fernández de Marcos Giménez de los Galanes, Alberto, 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.
    3. 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.
    4. 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.
    5. Bill Venables, 2017. "JOHN M. CHAMBERS . Extending R . Boca Raton : CRC Press," Biometrics, The International Biometric Society, vol. 73(2), pages 709-710, June.
    6. 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.
    7. Virginia X. He & Matt P. Wand, 2024. "Bayesian generalized additive model selection including a fast variational option," AStA Advances in Statistical Analysis, Springer;German Statistical Society, vol. 108(3), pages 639-668, September.
    8. 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.
    9. Martinetti, Davide & Geniaux, Ghislain, 2017. "Approximate likelihood estimation of spatial probit models," Regional Science and Urban Economics, Elsevier, vol. 64(C), pages 30-45.
    10. 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.
    11. Martina Sundqvist & Julien Chiquet & Guillem Rigaill, 2023. "Adjusting the adjusted Rand Index," Computational Statistics, Springer, vol. 38(1), pages 327-347, March.
    12. Rathelot, Roland, 2014. "Ethnic differentials on the labor market in the presence of asymmetric spatial sorting: Set identification and estimation," Regional Science and Urban Economics, Elsevier, vol. 48(C), pages 154-167.
    13. Roger S. Bivand, 2021. "Progress in the R ecosystem for representing and handling spatial data," Journal of Geographical Systems, Springer, vol. 23(4), pages 515-546, October.
    14. Langrené, Nicolas & Warin, Xavier, 2021. "Fast multivariate empirical cumulative distribution function with connection to kernel density estimation," Computational Statistics & Data Analysis, Elsevier, vol. 162(C).
    15. Mirshani, Ardalan & Reimherr, Matthew, 2021. "Adaptive function-on-scalar regression with a smoothing elastic net," Journal of Multivariate Analysis, Elsevier, vol. 185(C).
    16. Helmut Lutkepohl & Fei Shang & Luis Uzeda & Tomasz Wo'zniak, 2024. "Partial Identification of Heteroskedastic Structural VARs: Theory and Bayesian Inference," Papers 2404.11057, arXiv.org.
    17. Fernández-de-Marcos, Alberto & García-Portugués, Eduardo, 2023. "Data-driven stabilizations of goodness-of-fit tests," Computational Statistics & Data Analysis, Elsevier, vol. 179(C).
    18. Julien Boelaert, 2013. "A Neural Network Demand System," Documents de travail du Centre d'Economie de la Sorbonne 13081, Université Panthéon-Sorbonne (Paris 1), Centre d'Economie de la Sorbonne.
    19. Muhammad Jaffri Mohd Nasir & Ramzan Nazim Khan & Gopalan Nair & Darfiana Nur, 2024. "Active-set based block coordinate descent algorithm in group LASSO for self-exciting threshold autoregressive model," Statistical Papers, Springer, vol. 65(5), pages 2973-3006, July.
    20. Jiang, Qing & Hušková, Marie & Meintanis, Simos G. & Zhu, Lixing, 2019. "Asymptotics, finite-sample comparisons and applications for two-sample tests with functional data," Journal of Multivariate Analysis, Elsevier, vol. 170(C), pages 202-220.

    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.