EconPapers    
Economics at your fingertips  
 

New functions for random-samples generation using Stata 15

Gabriel Aguilera-Venegas, José Luis Galán-García, María Ángeles Galán-García, Yolanda Padilla-Domínguez and Pedro Rodríguez-Cielos
Additional contact information
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

London Stata Conference 2019 from Stata Users Group

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).

Date: 2019-09-15
References: Add references at CitEc
Citations:

Downloads: (external link)
http://repec.org/usug2019/Galan-Garcia_uk19.pdf (application/pdf)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:usug19:14

Access Statistics for this paper

More papers in London Stata Conference 2019 from Stata Users Group Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-03-19
Handle: RePEc:boc:usug19:14