IDEAS home Printed from https://ideas.repec.org/p/okl/wpaper/1103.html
   My bibliography  Save this paper

Monte Carlo Experiments Using gretl: A Primer

Author

Listed:
  • Lee C. Adkins

    (Oklahoma State University)

Abstract

Monte Carlo simulations are a very powerful way to demonstrate the basic sampling properties of various statistics in econometrics. The free software package gretl makes these methods accessible to a wide audience of students and practitioners.In this paper I will discuss the basic principles of Monte Carlo simulations and demonstrate how easy they are to do in gretl. Examples include linear regression, confidence intervals, the size and power of t-tests, lagged dependent variable models, heteroscedastic and auto correlated regression models, instrumental variables estimators, binary choice models, and nonlinear least squares. Scripts for all examples are available from the website http://learneconometrics.com/pdf/MCgretl/.

Suggested Citation

  • Lee C. Adkins, 2011. "Monte Carlo Experiments Using gretl: A Primer," Economics Working Paper Series 1103, Oklahoma State University, Department of Economics and Legal Studies in Business.
  • Handle: RePEc:okl:wpaper:1103
    as

    Download full text from publisher

    File URL: https://business.okstate.edu/site-files/docs/ecls-working-papers/OKSWPS1103.pdf
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. A. Talha Yalta & A. Yasemin Yalta, 2007. "GRETL 1.6.0 and its numerical accuracy," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 22(4), pages 849-854.
    2. J. Wilson Mixon Jr & Ryan J. Smith, 2006. "Teaching undergraduate econometrics with GRETL," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 21(7), pages 1103-1107, November.
    3. Barreto,Humberto & Howland,Frank, 2006. "Introductory Econometrics," Cambridge Books, Cambridge University Press, number 9780521843195.
    4. Guy Judge, 1999. "Simple Monte Carlo studies on a spreadsheet," Computers in Higher Education Economics Review, Economics Network, University of Bristol, vol. 13(2), pages 12-14.
    5. Donggyu Sul & Peter C. B. Phillips & Chi‐Young Choi, 2005. "Prewhitening Bias in HAC Estimation," Oxford Bulletin of Economics and Statistics, Department of Economics, University of Oxford, vol. 67(4), pages 517-546, August.
    6. Lee Adkins, 2014. "Using gretl for Principles of Econometrics, 4th Edition," Economics Working Paper Series 1412, Oklahoma State University, Department of Economics and Legal Studies in Business.
    7. Train,Kenneth E., 2009. "Discrete Choice Methods with Simulation," Cambridge Books, Cambridge University Press, number 9780521747387.
    8. Davidson, Russell & MacKinnon, James G., 1992. "Regression-based methods for using control variates in Monte Carlo experiments," Journal of Econometrics, Elsevier, vol. 54(1-3), pages 203-222.
    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. A. Yalta & A. Yalta, 2010. "Should Economists Use Open Source Software for Doing Research?," Computational Economics, Springer;Society for Computational Economics, vol. 35(4), pages 371-394, April.
    2. Wieland, Thomas, 2014. "Räumliches Einkaufsverhalten und Standortpolitik im Einzelhandel unter Berücksichtigung von Agglomerationseffekten: Theoretische Erklärungsansätze, modellanalytische Zugänge und eine empirisch-ökonome," MPRA Paper 77163, University Library of Munich, Germany.
    3. A. Talha Yalta & Riccardo Lucchetti, 2008. "The GNU|Linux platform and freedom respecting software for economists," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 23(2), pages 279-286.
    4. Riccardo Lucchetti, 2009. "Who uses gretl? An Analysis of the SourceForge Download Data," EHUCHAPS, in: Ignacio Díaz-Emparanza & Petr Mariel & María Victoria Esteban (ed.), Econometrics with gretl. Proceedings of the gretl Conference 2009, edition 1, chapter 3, pages 45-55, Universidad del País Vasco - Facultad de Ciencias Económicas y Empresariales.
    5. Ignacio Díaz-Emparanza & Petr Mariel & María Victoria Esteban (ed.), 2009. "Econometrics with gretl. Proceedings of the gretl Conference 2009," UPV/EHU Books, Universidad del País Vasco - Facultad de Ciencias Económicas y Empresariales, edition 1, number 01.
    6. Federico Lampis & Ignacio Díaz-Emparanza & Anindya Banerjee, 2015. "How to use SETAR models in gretl," Computational Economics, Springer;Society for Computational Economics, vol. 46(2), pages 231-241, August.
    7. A. Talha Yalta & A. Yasemin Yalta, 2009. "Wilkinson Tests and gretl," EHUCHAPS, in: Ignacio Díaz-Emparanza & Petr Mariel & María Victoria Esteban (ed.), Econometrics with gretl. Proceedings of the gretl Conference 2009, edition 1, chapter 16, pages 243-251, Universidad del País Vasco - Facultad de Ciencias Económicas y Empresariales.
    8. Zhifeng Gao & Ted C. Schroeder, 2009. "Consumer responses to new food quality information: are some consumers more sensitive than others?," Agricultural Economics, International Association of Agricultural Economists, vol. 40(3), pages 339-346, May.
    9. Cheng, Leilei & Yin, Changbin & Chien, Hsiaoping, 2015. "Demand for milk quantity and safety in urban China: evidence from Beijing and Harbin," Australian Journal of Agricultural and Resource Economics, Australian Agricultural and Resource Economics Society, vol. 59(2), April.
    10. Wen, Chieh-Hua & Huang, Chia-Jung & Fu, Chiang, 2020. "Incorporating continuous representation of preferences for flight departure times into stated itinerary choice modeling," Transport Policy, Elsevier, vol. 98(C), pages 10-20.
    11. Matteo Mogliani, 2010. "Residual-based tests for cointegration and multiple deterministic structural breaks: A Monte Carlo study," Working Papers halshs-00564897, HAL.
    12. Johannes Buggle & Thierry Mayer & Seyhun Orcan Sakalli & Mathias Thoenig, 2023. "The Refugee’s Dilemma: Evidence from Jewish Migration out of Nazi Germany," The Quarterly Journal of Economics, President and Fellows of Harvard College, vol. 138(2), pages 1273-1345.
    13. Christelis, Dimitris & Dobrescu, Loretti I. & Motta, Alberto, 2020. "Early life conditions and financial risk-taking in older age," The Journal of the Economics of Ageing, Elsevier, vol. 17(C).
    14. Marta Szczepańczyk & Paweł Nowodziński & Adam Sikorski, 2023. "ESG Strategy and Financial Aspects Using the Example of an Oil and Gas Midstream Company: The UNIMOT Group," Sustainability, MDPI, vol. 15(18), pages 1-24, September.
    15. Ortega, David L. & Wang, H. Holly & Wu, Laping & Hong, Soo Jeong, 2015. "Retail channel and consumer demand for food quality in China," China Economic Review, Elsevier, vol. 36(C), pages 359-366.
    16. Elza Jurun & Snježana Pivac, 2011. "Comparative regional GDP analysis: case study of Croatia," Central European Journal of Operations Research, Springer;Slovak Society for Operations Research;Hungarian Operational Research Society;Czech Society for Operations Research;Österr. Gesellschaft für Operations Research (ÖGOR);Slovenian Society Informatika - Section for Operational Research;Croatian Operational Research Society, vol. 19(3), pages 319-335, September.
    17. Tina Birgitte Hansen & Jes Sanddal Lindholt & Axel Diederichsen & Rikke Søgaard, 2019. "Do Non-participants at Screening have a Different Threshold for an Acceptable Benefit–Harm Ratio than Participants? Results of a Discrete Choice Experiment," The Patient: Patient-Centered Outcomes Research, Springer;International Academy of Health Preference Research, vol. 12(5), pages 491-501, October.
    18. Doyle, Orla & Fidrmuc, Jan, 2006. "Who favors enlargement?: Determinants of support for EU membership in the candidate countries' referenda," European Journal of Political Economy, Elsevier, vol. 22(2), pages 520-543, June.
    19. Tovar, Jorge, 2012. "Consumers’ Welfare and Trade Liberalization: Evidence from the Car Industry in Colombia," World Development, Elsevier, vol. 40(4), pages 808-820.
    20. Pereira, Pedro & Ribeiro, Tiago, 2011. "The impact on broadband access to the Internet of the dual ownership of telephone and cable networks," International Journal of Industrial Organization, Elsevier, vol. 29(2), pages 283-293, March.

    More about this item

    Keywords

    Monte Carlo; econometrics; gretl; simulations;
    All these keywords.

    JEL classification:

    • C01 - Mathematical and Quantitative Methods - - General - - - Econometrics

    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:okl:wpaper:1103. 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: Harounan Kazianga (email available below). General contact details of provider: https://edirc.repec.org/data/sboksus.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.