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. 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.
    3. 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.
    4. 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.
    5. 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.
    6. Kelejian, Harry H. & Prucha, Ingmar R., 2007. "HAC estimation in a spatial framework," Journal of Econometrics, Elsevier, vol. 140(1), pages 131-154, September.
    7. Jeffrey M Wooldridge, 2010. "Econometric Analysis of Cross Section and Panel Data," MIT Press Books, The MIT Press, edition 2, volume 1, number 0262232588, September.
    8. 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).
    9. 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.
    10. 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.
    11. repec:dgr:rugsom:03c27 is not listed on IDEAS
    12. 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.
    13. 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.
    14. Millo, Giovanni & Piras, Gianfranco, 2012. "splm: Spatial Panel Data Models in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 47(i01).
    15. Baltagi, Badi H., 1981. "Simultaneous equations with error components," Journal of Econometrics, Elsevier, vol. 17(2), pages 189-200, November.
    16. 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.
    17. 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.
    18. 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.
    19. 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.
    20. 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).
    21. Piras, Gianfranco, 2010. "sphet: Spatial Models with Heteroskedastic Innovations in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 35(i01).
    22. 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.
    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. Á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).
    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. 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.
    4. 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.
    5. Á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.
    6. 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.
    7. 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.
    8. 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.
    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. 5(1-2), pages 16-24, January-J.
    10. 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.
    11. Mendieta Ossio, Pablo, 2018. "A Regional Landscape of Bolivian Economic Growth," Revista Latinoamericana de Desarrollo Economico, Instituto de Investigaciones Socio-Económicas (IISEC-UCB), Universidad Católica Boliviana, 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. 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.
    2. 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.
    3. AMBA OYON, Claude Marius & Mbratana, Taoufiki, 2017. "Simultaneous equation models with spatially autocorrelated error components," MPRA Paper 82395, University Library of Munich, Germany.
    4. 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.
    5. 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.
    6. Millo, Giovanni & Piras, Gianfranco, 2012. "splm: Spatial Panel Data Models in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 47(i01).
    7. 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.
    8. 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.
    9. 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.
    10. Arbués, Pelayo & Baños, José F. & Mayor, Matías, 2015. "The spatial productivity of transportation infrastructure," Transportation Research Part A: Policy and Practice, Elsevier, vol. 75(C), pages 166-177.
    11. Lina Lu, 2017. "Simultaneous Spatial Panel Data Models with Common Shocks," Supervisory Research and Analysis Working Papers RPA 17-3, Federal Reserve Bank of Boston.
    12. Luc Anselin, 2010. "Thirty years of spatial econometrics," Papers in Regional Science, Wiley Blackwell, vol. 89(1), pages 3-25, March.
    13. 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.
    14. repec:rri:wpaper:201303 is not listed on IDEAS
    15. Bernard Fingleton & Julie Le Gallo, 2008. "Estimating spatial models with endogenous variables, a spatial lag and spatially dependent disturbances: Finite sample properties," Papers in Regional Science, Wiley Blackwell, vol. 87(3), pages 319-339, August.
    16. Liu, Shew Fan & Yang, Zhenlin, 2015. "Modified QML estimation of spatial autoregressive models with unknown heteroskedasticity and nonnormality," Regional Science and Urban Economics, Elsevier, vol. 52(C), pages 50-70.
    17. Chamberlin, Jordan, 2013. "Infrastructure, services, and smallholder income growth: evidence from Kenyan panel data," 2013 Fourth International Conference, September 22-25, 2013, Hammamet, Tunisia 161269, African Association of Agricultural Economists (AAAE).
    18. 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.
    19. 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).
    20. Bonanno, Alessandro & Ghosh, Gaurav S., 2010. "SNAP Efficacy and Food Access – A Nationwide Spatial Analysis," 115th Joint EAAE/AAEA Seminar, September 15-17, 2010, Freising-Weihenstephan, Germany 116437, European Association of Agricultural Economists.
    21. Jin, Fei & Lee, Lung-fei, 2018. "Irregular N2SLS and LASSO estimation of the matrix exponential spatial specification model," Journal of Econometrics, Elsevier, vol. 206(2), pages 336-358.

    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.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: (Andrés Maroto-Sánchez). General contact details of provider: https://edirc.repec.org/data/dauames.html .

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

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service hosted by the Research Division of the Federal Reserve Bank of St. Louis . RePEc uses bibliographic data supplied by the respective publishers.