IDEAS home Printed from https://ideas.repec.org/a/jss/jstsof/v066c02.html
   My bibliography  Save this article

MLGA: A SAS Macro to Compute Maximum Likelihood Estimators via Genetic Algorithms

Author

Listed:
  • Juretig, Francisco

Abstract

Nonlinear regression is usually implemented in SAS either by using PROC NLIN or PROC NLMIXED. Apart from the model structure, initial values need to be specified for each parameter. And after some convergence criteria are fulfilled, the second order conditions need to be analyzed. But numerical problems are expected to appear in case the likelihood is nearly discontinuous, has plateaus, multiple maxima, or the initial values are distant from the true parameter estimates. The usual solution consists of using a grid, and then choosing the set of parameters reporting the highest log-likelihood. However, if the amount of parameters or grid points is large, the computational burden will be excessive. Furthermore, there is no guarantee that, as the number of grid points increases, an equal or better set of points will be found. Genetic algorithms can overcome these problems by replicating how nature optimizes its processes. The MLGA macro is presented; it solves a maximum likelihood estimation problem under normality through PROC GA, and the resulting values can later be used as the starting values in SAS nonlinear procedures. As will be demonstrated, this macro can avoid the usual trial and error approach that is needed when convergence problems arise. Finally, it will be shown how this macro can deal with complicated restrictions involving multiple parameters.

Suggested Citation

  • Juretig, Francisco, 2015. "MLGA: A SAS Macro to Compute Maximum Likelihood Estimators via Genetic Algorithms," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 66(c02).
  • Handle: RePEc:jss:jstsof:v:066:c02
    DOI: http://hdl.handle.net/10.18637/jss.v066.c02
    as

    Download full text from publisher

    File URL: https://www.jstatsoft.org/index.php/jss/article/view/v066c02/v66c02.pdf
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v066c02/MLGA.sas
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v066c02/v66c02.sas
    Download Restriction: no

    File URL: https://libkey.io/http://hdl.handle.net/10.18637/jss.v066.c02?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
    ---><---

    References listed on IDEAS

    as
    1. Dorsey, Robert E & Mayer, Walter J, 1995. "Genetic Algorithms for Estimation Problems with Multiple Optima, Nondifferentiability, and Other Irregular Features," Journal of Business & Economic Statistics, American Statistical Association, vol. 13(1), pages 53-66, January.
    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. Odeh, Oluwarotimi O. & Featherstone, Allen M. & Sanjoy, Das, 2006. "Predicting Credit Default in an Agricultural Bank: Methods and Issues," 2006 Annual Meeting, February 5-8, 2006, Orlando, Florida 35359, Southern Agricultural Economics Association.
    2. Andriosopoulos, Kostas & Nomikos, Nikos, 2014. "Performance replication of the Spot Energy Index with optimal equity portfolio selection: Evidence from the UK, US and Brazilian markets," European Journal of Operational Research, Elsevier, vol. 234(2), pages 571-582.
    3. Pereira, Robert, 1999. "Forecasting Ability But No Profitability: An Empirical Evaluation of Genetic Algorithm-optimised Technical Trading Rules," MPRA Paper 9055, University Library of Munich, Germany.
    4. Liu, Yu-Hsin, 2011. "Incorporating scatter search and threshold accepting in finding maximum likelihood estimates for the multinomial probit model," European Journal of Operational Research, Elsevier, vol. 211(1), pages 130-138, May.
    5. Parente, Paulo M.D.C. & Smith, Richard J., 2011. "Gel Methods For Nonsmooth Moment Indicators," Econometric Theory, Cambridge University Press, vol. 27(1), pages 74-113, February.
    6. Beenstock, Michael & Szpiro, George, 2002. "Specification search in nonlinear time-series models using the genetic algorithm," Journal of Economic Dynamics and Control, Elsevier, vol. 26(5), pages 811-835, May.
    7. Max Jerrell, 2000. "Applications Of Public Global Optimization Software To Difficult Econometric Functions," Computing in Economics and Finance 2000 161, Society for Computational Economics.
    8. Sexton, Randall S. & Dorsey, Robert E. & Johnson, John D., 1999. "Optimization of neural networks: A comparative analysis of the genetic algorithm and simulated annealing," European Journal of Operational Research, Elsevier, vol. 114(3), pages 589-601, May.
    9. M. Bierlaire & M. Thémans & N. Zufferey, 2010. "A Heuristic for Nonlinear Global Optimization," INFORMS Journal on Computing, INFORMS, vol. 22(1), pages 59-70, February.
    10. Alicia Gazely & Jane Binner & Graham Kendall, 2004. "Co-evolution vs. Neural Networks; An Evaluation of UK Risky Money," Computing in Economics and Finance 2004 258, Society for Computational Economics.
    11. Savi Virolainen, 2020. "Structural Gaussian mixture vector autoregressive model with application to the asymmetric effects of monetary policy shocks," Papers 2007.04713, arXiv.org, revised Oct 2022.
    12. Christopher R. Knittel & Konstantinos Metaxoglou, 2008. "Estimation of Random Coefficient Demand Models: Challenges, Difficulties and Warnings," NBER Working Papers 14080, National Bureau of Economic Research, Inc.
    13. Chi, Li-Chiu & Tang, Tseng-Chung, 2007. "Impact of reorganization announcements on distressed-stock returns," Economic Modelling, Elsevier, vol. 24(5), pages 749-767, September.
    14. Petrella, Ivan & Santoro, Emiliano & Simonsen, Lasse de la Porte, 2018. "Time-varying Price Flexibility and Inflation Dynamics," CEPR Discussion Papers 13027, C.E.P.R. Discussion Papers.
    15. Eklund, Jana & Kapetanios, George, 2008. "A review of forecasting techniques for large datasets," National Institute Economic Review, Cambridge University Press, vol. 203, pages 109-115, January.
    16. A. Sanchez & Diego Martinez, 2011. "Optimization in Non-Standard Problems. An Application to the Provision of Public Inputs," Computational Economics, Springer;Society for Computational Economics, vol. 37(1), pages 13-38, January.
    17. Poschke, Markus, 2009. "Employment protection, firm selection, and growth," Journal of Monetary Economics, Elsevier, vol. 56(8), pages 1074-1085, November.
    18. Mika Meitz & Daniel Preve & Pentti Saikkonen, 2023. "A mixture autoregressive model based on Student’s t–distribution," Communications in Statistics - Theory and Methods, Taylor & Francis Journals, vol. 52(2), pages 499-515, January.
    19. Kapetanios, George, 2006. "Cluster analysis of panel data sets using non-standard optimisation of information criteria," Journal of Economic Dynamics and Control, Elsevier, vol. 30(8), pages 1389-1408, August.
    20. Paul D. McNelis & G.C. Lim, 1998. "Parameterizing Currency Risk in the EMS: The Irish Pound and Spanish Peseta against the German Mark," International Finance 9805001, University Library of Munich, Germany.

    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:jss:jstsof:v:066:c02. 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: Christopher F. Baum (email available below). General contact details of provider: http://www.jstatsoft.org/ .

    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.