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

A Panel Data Toolbox for MATLAB

Author

Listed:
  • Álvarez, Inmaculada

    (Departamento de Análisis Económico (Teoría e Historia Económica). UAM)

  • Barbero, Javier

    (Departamento de Análisis Económico (Teoría e Historia Económica). Universidad Autónoma de Madrid.)

  • Zofío, José Luis

    (Departamento de Análisis Económico (Teoría e Historia Económica). Universidad Autónoma de Madrid.)

Abstract

Panel Data Toolbox is a new package for MATLAB that includes functions to estimate the main econometric methods of panel data analysis. The package includes code for the standard fixed, between and random effects estimation methods, as well as for the existing instrumental panel and new spatial panel. This paper describes the methodology and implementation of the functions and illustrates their use with well-known examples. We perform numerical checks against other popular commercial and free software in order to show the validity of the results.

Suggested Citation

  • Álvarez, Inmaculada & Barbero, Javier & Zofío, José Luis, 2013. "A Panel Data Toolbox for MATLAB," Working Papers in Economic Theory 2013/05, Universidad Autónoma de Madrid (Spain), Department of Economic Analysis (Economic Theory and Economic History).
  • Handle: RePEc:uam:wpaper:201305
    as

    Download full text from publisher

    File URL: http://www.uam.es/departamentos/economicas/analecon/especifica/mimeo/wp20135.pdf
    Download Restriction: no
    ---><---

    Other versions of this item:

    References listed on IDEAS

    as
    1. Kelejian, Harry H & Prucha, Ingmar R, 1999. "A Generalized Moments Estimator for the Autoregressive Parameter in a Spatial Model," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 40(2), pages 509-533, May.
    2. James H. Stock & Mark W. Watson, 2008. "Heteroskedasticity-Robust Standard Errors for Fixed Effects Panel Data Regression," Econometrica, Econometric Society, vol. 76(1), pages 155-174, January.
    3. Lee, Lung-fei & Yu, Jihai, 2010. "Estimation of spatial autoregressive panel data models with fixed effects," Journal of Econometrics, Elsevier, vol. 154(2), pages 165-185, February.
    4. Baltagi, Badi H. & Liu, Long, 2011. "Instrumental variable estimation of a spatial autoregressive panel model with random effects," Economics Letters, Elsevier, vol. 111(2), pages 135-137, May.
    5. Jan Mutl & Michael Pfaffermayr, 2011. "The Hausman test in a Cliff and Ord panel model," Econometrics Journal, Royal Economic Society, vol. 14, pages 48-76, February.
    6. Kelejian, Harry H & Prucha, Ingmar R, 1998. "A Generalized Spatial Two-Stage Least Squares Procedure for Estimating a Spatial Autoregressive Model with Autoregressive Disturbances," The Journal of Real Estate Finance and Economics, Springer, vol. 17(1), pages 99-121, July.
    7. Kelejian, Harry H. & Prucha, Ingmar R., 2010. "Specification and estimation of spatial autoregressive models with autoregressive and heteroskedastic disturbances," Journal of Econometrics, Elsevier, vol. 157(1), pages 53-67, July.
    8. Kelejian, Harry H. & Prucha, Ingmar R., 2007. "HAC estimation in a spatial framework," Journal of Econometrics, Elsevier, vol. 140(1), pages 131-154, September.
    9. Jeffrey M Wooldridge, 2010. "Econometric Analysis of Cross Section and Panel Data," MIT Press Books, The MIT Press, edition 2, volume 1, number 0262232588, December.
    10. T. S. Breusch & A. R. Pagan, 1980. "The Lagrange Multiplier Test and its Applications to Model Specification in Econometrics," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 47(1), pages 239-253.
    11. M. Hashem Pesaran, 2021. "General diagnostic tests for cross-sectional dependence in panels," Empirical Economics, Springer, vol. 60(1), pages 13-50, January.
    12. Kelejian, Harry H. & Prucha, Ingmar R., 2004. "Estimation of simultaneous systems of spatially interrelated cross sectional equations," Journal of Econometrics, Elsevier, vol. 118(1-2), pages 27-50.
    13. Hansen, Christian B., 2007. "Asymptotic properties of a robust variance matrix estimator for panel data when T is large," Journal of Econometrics, Elsevier, vol. 141(2), pages 597-620, December.
    14. repec:dgr:rugsom:03c27 is not listed on IDEAS
    15. Baltagi, Badi H. & Heun Song, Seuck & Cheol Jung, Byoung & Koh, Won, 2007. "Testing for serial correlation, spatial autocorrelation and random effects using panel data," Journal of Econometrics, Elsevier, vol. 140(1), pages 5-51, September.
    16. Baltagi, Badi H. & Liu, Long, 2009. "A note on the application of EC2SLS and EC3SLS estimators in panel data models," Statistics & Probability Letters, Elsevier, vol. 79(20), pages 2189-2192, October.
    17. Badi H. Baltagi, 2021. "Simultaneous Equations with Error Components," Springer Texts in Business and Economics, in: Econometric Analysis of Panel Data, edition 6, chapter 0, pages 157-186, Springer.
    18. Badi H. Baltagi & Peter Egger & Michael Pfaffermayr, 2013. "A Generalized Spatial Panel Data Model with Random Effects," Econometric Reviews, Taylor & Francis Journals, vol. 32(5-6), pages 650-685, August.
    19. Millo, Giovanni & Piras, Gianfranco, 2012. "splm: Spatial Panel Data Models in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 47(i01).
    20. White, Halbert, 1980. "A Heteroskedasticity-Consistent Covariance Matrix Estimator and a Direct Test for Heteroskedasticity," Econometrica, Econometric Society, vol. 48(4), pages 817-838, May.
    21. Baltagi, Badi H. & Li, Qi, 1992. "A Note on the Estimation of Simultaneous Equations with Error Components," Econometric Theory, Cambridge University Press, vol. 8(1), pages 113-119, March.
    22. Wallace, T D & Hussain, Ashiq, 1969. "The Use of Error Components Models in Combining Cross Section with Time Series Data," Econometrica, Econometric Society, vol. 37(1), pages 55-72, January.
    23. Gianfranco Piras, 2013. "Efficient GMM Estimation of a Cliff and Ord Panel Data Model with Random Effects," Spatial Economic Analysis, Taylor & Francis Journals, vol. 8(3), pages 370-388, September.
    24. Luc Anselin, 2010. "Thirty years of spatial econometrics," Papers in Regional Science, Wiley Blackwell, vol. 89(1), pages 3-25, March.
    25. Badi H. Baltagi & James M. Griffin & Weiwen Xiong, 2000. "To Pool Or Not To Pool: Homogeneous Versus Hetergeneous Estimations Applied to Cigarette Demand," The Review of Economics and Statistics, MIT Press, vol. 82(1), pages 117-126, February.
    26. Kapoor, Mudit & Kelejian, Harry H. & Prucha, Ingmar R., 2007. "Panel data models with spatially correlated error components," Journal of Econometrics, Elsevier, vol. 140(1), pages 97-130, September.
    27. Elhorst, J. Paul, 2003. "Unconditional maximum likelihood estimation of dynamic models for spatial panels," Research Report 03C27, University of Groningen, Research Institute SOM (Systems, Organisations and Management).
    28. Piras, Gianfranco, 2010. "sphet: Spatial Models with Heteroskedastic Innovations in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 35(i01).
    29. Croissant, Yves & Millo, Giovanni, 2008. "Panel Data Econometrics in R: The plm Package," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 27(i02).
    30. David M. Drukker & Peter Egger & Ingmar R. Prucha, 2013. "On Two-Step Estimation of a Spatial Autoregressive Model with Autoregressive Disturbances and Endogenous Regressors," Econometric Reviews, Taylor & Francis Journals, vol. 32(5-6), pages 686-733, August.
    31. Lung-fei Lee, 2003. "Best Spatial Two-Stage Least Squares Estimators for a Spatial Autoregressive Model with Autoregressive Disturbances," Econometric Reviews, Taylor & Francis Journals, vol. 22(4), pages 307-335.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Julie Le Gallo & Marc-Alexandre Sénégas, 2023. "On the Proper Computation of the Hausman Test Statistic in Standard Linear Panel Data Models: Some Clarifications and New Results," Econometrics, MDPI, vol. 11(4), pages 1-28, November.
    2. Ding Luo & Oded Cats & Hans Lint, 2020. "Can passenger flow distribution be estimated solely based on network properties in public transport systems?," Transportation, Springer, vol. 47(6), pages 2757-2776, December.
    3. Álvarez, Inmaculada C. & Barbero, Javier & Zofío, José L., 2016. "A spatial autoregressive panel model to analyze road network spillovers on production," Transportation Research Part A: Policy and Practice, Elsevier, vol. 93(C), pages 83-92.
    4. Marcos Herrera & Jesus Mur & Manuel Ruiz-Marin, 2017. "A Comparison Study on Criteria to Select the Most Adequate Weighting Matrix," Working Papers 18, Instituto de Estudios Laborales y del Desarrollo Económico (IELDE) - Universidad Nacional de Salta - Facultad de Ciencias Económicas, Jurídicas y Sociales.
    5. Marina Purina, 2021. "Human Freedom and Effective Corporate Income Tax Rates of CEE Listed Companies," European Financial and Accounting Journal, Prague University of Economics and Business, vol. 2021(2), pages 05-28.
    6. Gizem Umut Doğan & Gizem Umut Doğan, Aslıhan Kabadayı, 2015. "Determinants of Internal Migration in Turkey: A Panel Data Analysis Approach," Border Crossing, Transnational Press London, UK, vol. 5(1-2), pages 16-24, January-J.
    7. Álvarez, Inmaculada & Barbero, Javier, 2013. "Knowledge Spillovers in Neoclassical Growth Model: an extension with Public Sector," Working Papers in Economic Theory 2013/07, Universidad Autónoma de Madrid (Spain), Department of Economic Analysis (Economic Theory and Economic History).
    8. Peter Nannestad, 2019. "Strategic Tax-Setting in Danish Municipalities? A First Look at the Evidence 2007 - 2017," Economics Working Paper from Condorcet Center for political Economy at CREM-CNRS 2019-10-ccr, Condorcet Center for political Economy.
    9. Gizem Umut Doğan & Gizem Umut Doğan, Aslıhan Kabadayı, 2015. "Determinants of Internal Migration in Turkey: A Panel Data Analysis Approach," Border Crossing, Transnational Press London, UK, vol. 2015(1502), pages 16-24, May.
    10. Vlad-Cosmin Bulai & Alexandra Horobeț, 2019. "Is The Oil Price a Determinant of Employment in Oil Intensive Romanian Communities?," International Journal of Business and Economic Sciences Applied Research (IJBESAR), International Hellenic University (IHU), Kavala Campus, Greece (formerly Eastern Macedonia and Thrace Institute of Technology - EMaTTech), vol. 12(3), pages 7-13, December.
    11. Bao Hoang Nguyen & Robin C. Sickles & Valentin Zelenyuk, 2022. "Efficiency Analysis with Stochastic Frontier Models Using Popular Statistical Softwares," Springer Books, in: Duangkamon Chotikapanich & Alicia N. Rambaldi & Nicholas Rohde (ed.), Advances in Economic Measurement, chapter 0, pages 129-171, Springer.
    12. Giuseppe Orlando & Edward Bace, 2021. "Challenging Times for Insurance, Banking and Financial Supervision in Saudi Arabia (KSA)," Administrative Sciences, MDPI, vol. 11(3), pages 1-28, June.
    13. Arash Nayebyazdi, 2017. "The Relationship Between Democracy And Economic Growth In Muslim Mena Countries (Spatial Econometric Approach)," Journal of Smart Economic Growth, , vol. 2(3), pages 123-155, December.
    14. Kok Fong See & Shawna Grosskopf & Vivian Valdmanis & Valentin Zelenyuk, 2021. "What do we know from the vast literature on efficiency and productivity in healthcare? A Systematic Review and Bibliometric Analysis," CEPA Working Papers Series WP072021, School of Economics, University of Queensland, Australia.
    15. Raphael Asada & Tamás Krisztin & Fulvio di Fulvio & Florian Kraxner & Tobias Stern, 2020. "Bioeconomic transition?: Projecting consumption‐based biomass and fossil material flows to 2050," Journal of Industrial Ecology, Yale University, vol. 24(5), pages 1059-1073, October.
    16. Mendieta Ossio, Pablo, 2018. "A Regional Landscape of Bolivian Economic Growth," Revista Latinoamericana de Desarrollo Economico, Carrera de Economía de la Universidad Católica Boliviana (UCB) "San Pablo", issue 31, pages 78-99, May.

    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. Roger Bivand & Giovanni Millo & Gianfranco Piras, 2021. "A Review of Software for Spatial Econometrics in R," Mathematics, MDPI, vol. 9(11), pages 1-40, June.
    2. Harald Badinger & Peter Egger, 2015. "Fixed Effects and Random Effects Estimation of Higher-order Spatial Autoregressive Models with Spatial Autoregressive and Heteroscedastic Disturbances," Spatial Economic Analysis, Taylor & Francis Journals, vol. 10(1), pages 11-35, March.
    3. Bivand, Roger & Piras, Gianfranco, 2015. "Comparing Implementations of Estimation Methods for Spatial Econometrics," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 63(i18).
    4. Su, Liangjun & Yang, Zhenlin, 2015. "QML estimation of dynamic panel data models with spatial errors," Journal of Econometrics, Elsevier, vol. 185(1), pages 230-258.
    5. Herrera Gómez, Marcos, 2017. "Fundamentos de Econometría Espacial Aplicada [Fundamentals of Applied Spatial Econometrics]," MPRA Paper 80871, University Library of Munich, Germany.
    6. repec:rri:wpaper:201303 is not listed on IDEAS
    7. Badi H. Baltagi & Peter H. Egger & Michaela Kesina, 2018. "Generalized spatial autocorrelation in a panel-probit model with an application to exporting in China," Empirical Economics, Springer, vol. 55(1), pages 193-211, August.
    8. repec:rri:wpaper:201301 is not listed on IDEAS
    9. Harry H. Kelejian & Gianfranco Piras, 2013. "A J-Test for Panel Models with Fixed Effects, Spatial and Time," Working Papers Working Paper 2013-03, Regional Research Institute, West Virginia University.
    10. Debarsy, Nicolas & Ertur, Cem, 2010. "Testing for spatial autocorrelation in a fixed effects panel data model," Regional Science and Urban Economics, Elsevier, vol. 40(6), pages 453-470, November.
    11. AMBA OYON, Claude Marius & Mbratana, Taoufiki, 2017. "Simultaneous equation models with spatially autocorrelated error components," MPRA Paper 82395, University Library of Munich, Germany.
    12. Luc Anselin, 2010. "Thirty years of spatial econometrics," Papers in Regional Science, Wiley Blackwell, vol. 89(1), pages 3-25, March.
    13. Harald Badinger & Peter Egger, 2009. "Estimation of Higher-Order Spatial Autoregressive Panel Data Error Component Models," CESifo Working Paper Series 2556, CESifo.
    14. Harry H. Kelejian & Gianfranco Piras, 2016. "A J test for dynamic panel model with fixed effects, and nonparametric spatial and time dependence," Empirical Economics, Springer, vol. 51(4), pages 1581-1605, December.
    15. Millo, Giovanni, 2014. "Maximum likelihood estimation of spatially and serially correlated panels with random effects," Computational Statistics & Data Analysis, Elsevier, vol. 71(C), pages 914-933.
    16. Frank Davenport, 2017. "Estimating standard errors in spatial panel models with time varying spatial correlation," Papers in Regional Science, Wiley Blackwell, vol. 96, pages 155-177, March.
    17. Badi H. Baltagi & Peter H. Egger & Michaela Kesina, 2022. "Bayesian estimation of multivariate panel probits with higher‐order network interdependence and an application to firms' global market participation in Guangdong," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 37(7), pages 1356-1378, November.
    18. Harald Badinger & Peter Egger, 2013. "Estimation and testing of higher-order spatial autoregressive panel data error component models," Journal of Geographical Systems, Springer, vol. 15(4), pages 453-489, October.
    19. Lee, Lung-fei & Yu, Jihai, 2010. "Some recent developments in spatial panel data models," Regional Science and Urban Economics, Elsevier, vol. 40(5), pages 255-271, September.
    20. Silvia Palombi & Roger Perman & Christophe Tavéra, 2017. "Commuting effects in Okun's Law among British areas: Evidence from spatial panel econometrics," Papers in Regional Science, Wiley Blackwell, vol. 96(1), pages 191-209, March.
    21. Pesaran, M. Hashem & Tosetti, Elisa, 2011. "Large panels with common factors and spatial correlation," Journal of Econometrics, Elsevier, vol. 161(2), pages 182-202, April.
    22. Kelejian, Harry H. & Prucha, Ingmar R., 2010. "Specification and estimation of spatial autoregressive models with autoregressive and heteroskedastic disturbances," Journal of Econometrics, Elsevier, vol. 157(1), pages 53-67, July.

    More about this item

    Keywords

    panel data; instrumental panel; spatial panel; econometrics; MATLAB.;
    All these keywords.

    JEL classification:

    • C21 - Mathematical and Quantitative Methods - - Single Equation Models; Single Variables - - - Cross-Sectional Models; Spatial Models; Treatment Effect Models
    • C23 - Mathematical and Quantitative Methods - - Single Equation Models; Single Variables - - - Models with Panel Data; Spatio-temporal Models
    • C26 - Mathematical and Quantitative Methods - - Single Equation Models; Single Variables - - - Instrumental Variables (IV) Estimation

    NEP fields

    This paper has been announced in the following NEP Reports:

    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:uam:wpaper:201305. 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: Andrés Maroto-Sánchez (email available below). General contact details of provider: https://edirc.repec.org/data/dauames.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.