IDEAS home Printed from https://ideas.repec.org/p/boc/usug19/14.html
   My bibliography  Save this paper

New functions for random-samples generation using Stata 15

Author

Listed:
  • Gabriel Aguilera-Venegas

    (Departamento de Matemática Aplicada, Universidad de Málaga)

  • José Luis Galán-García

    (Departamento de Matemática Aplicada, Universidad de Málaga)

  • María Ángeles Galán-García

    (Departamento de Matemática Aplicada, Universidad de Málaga)

  • Yolanda Padilla-Domínguez

    (Departamento de Matemática Aplicada, Universidad de Málaga)

  • Pedro Rodríguez-Cielos

    (Departamento de Matemática Aplicada, Universidad de Málaga)

Abstract

In the 2017 Spanish Stata Users Group meeting, held in Madrid on 19 October, we introduced some functions for generating random samples from continuous and discrete distributions using Stata 13. In this presentation, I will show new extensions of such functions updated for Stata 15. I will describe their syntax and show different examples of use. I will also compare the new developed functions with the built-in Stata ones and with the function rsample. The goodness of the generated samples will be checked using the mean squared error (MSE) of the differences between the frequencies of the sample and the theoretical expected ones. I will also provide bar charts that will allow the user to graphically compare the sample with the exact distribution function of the random distribution being sampled. Graphics capabilities are included in the new developed functions so that the distribution of the generated sample can be displayed. This fact is useful in the teaching and learning process in subjects, which deals with statistics. Specifically, this educational approach has been considered when teaching statistics in the Health Engineering degree of the University of Málaga (Spain).

Suggested Citation

  • Gabriel Aguilera-Venegas & José Luis Galán-García & María Ángeles Galán-García & Yolanda Padilla-Domínguez & Pedro Rodríguez-Cielos, 2019. "New functions for random-samples generation using Stata 15," London Stata Conference 2019 14, Stata Users Group.
  • Handle: RePEc:boc:usug19:14
    as

    Download full text from publisher

    File URL: http://repec.org/usug2019/Galan-Garcia_uk19.pdf
    Download Restriction: no
    ---><---

    More about this item

    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:boc:usug19:14. 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.

    We have no bibliographic references for this item. You can help adding them by using 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: Christopher F Baum (email available below). General contact details of provider: https://edirc.repec.org/data/stataea.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.