Longitudinal and Panel Data: Analysis and Applications for the Social Sciences

Total Page:16

File Type:pdf, Size:1020Kb

Longitudinal and Panel Data: Analysis and Applications for the Social Sciences Longitudinal and Panel Data: Analysis and Applications for the Social Sciences by Edward W. Frees Longitudinal and Panel Data: Analysis and Applications for the Social Sciences Brief Table of Contents Chapter 1. Introduction PART I - LINEAR MODELS Chapter 2. Fixed Effects Models Chapter 3. Models with Random Effects Chapter 4. Prediction and Bayesian Inference Chapter 5. Multilevel Models Chapter 6. Random Regressors Chapter 7. Modeling Issues Chapter 8. Dynamic Models PART II - NONLINEAR MODELS Chapter 9. Binary Dependent Variables Chapter 10. Generalized Linear Models Chapter 11. Categorical Dependent Variables and Survival Models Appendix A. Elements of Matrix Algebra Appendix B. Normal Distribution Appendix C. Likelihood-Based Inference Appendix D. Kalman Filter Appendix E. Symbols and Notation Appendix F. Selected Longitudinal and Panel Data Sets Appendix G. References This draft is partially funded by the Fortis Health Insurance Professorship of Actuarial Science. © 2003 by Edward W. Frees. All rights reserved To appear: Cambridge University Press (2004) October, 2003 Longitudinal and Panel Data: Analysis and Applications for the Social Sciences Table of Contents Table of Contents i Preface vi 1. Introduction 1.1 What are longitudinal and panel data? 1-1 1.2 Benefits and drawbacks of longitudinal data 1-4 1.3 Longitudinal data models 1-9 1.4 Historical notes 1-13 PART I - LINEAR MODELS 2. Fixed Effects Models 2.1 Basic fixed effects model 2-1 2.2 Exploring longitudinal data 2-5 2.3 Estimation and inference 2-10 2.4 Model specification and diagnostics 2-14 2.4.1 Pooling test 2-14 2.4.2 Added variable plots 2-15 2.4.3 Influence diagnostics 2-16 2.4.4 Cross-sectional correlation 2-17 2.4.5 Heteroscedasticity 2-18 2.5 Model extensions 2-19 2.5.1 Serial correlation 2-20 2.5.2 Subject-specific slopes 2-21 2.5.3 Robust estimation of standard errors 2-22 Further reading 2-23 Appendix 2A - Least squares estimation 2-24 2A.1 Basic Fixed Effects Model – Ordinary Least Squares Estimation 2-24 2A.2 Fixed Effects Model – Generalized Least Squares Estimation 2-24 2A.3 Diagnostic Statistics 2-25 2A.4 Cross-sectional Correlation 2-26 2. Exercises and Extensions 2-27 3. Models with Random Effects 3.1 Error components / random intercepts model 3-1 3.2 Example: Income tax payments 3-7 3.3 Mixed effects models 3-12 3.3.1 Linear mixed effects model 3-12 3.3.2 Mixed linear model 3-15 3.4 Inference for regression coefficients 3-16 3.5 Variance component estimation 3-20 3.5.1 Maximum likelihood estimation 3-20 3.5.2 Restricted maximum likelihood 3-21 3.5.3 MIVQUE estimators 3-23 Further reading 3-25 Appendix 3A – REML calculations 3-26 3A.1 Independence Of Residuals And Least Squares Estimators 3-26 3A.2 Restricted Likelihoods 3-26 3A.3 Likelihood Ratio Tests And REML 3-28 3. Exercises and Extensions 3-30 4. Prediction and Bayesian Inference 4.1 Prediction for one-way ANOVA models 4-2 4.2 Best linear unbiased predictors (BLUP) 4-4 4.3 Mixed model predictors 4-7 4.3.1 Linear mixed effects model 4-7 4.3.2 Linear combinations of global parameters and subject- specific effects 4-7 4.3.3 BLUP residuals 4-8 4.3.4 Predicting future observations 4-9 4.4 Example: Forecasting Wisconsin lottery sales 4-10 4.4.1 Sources and characteristics of data 4-11 4.4.2 In-sample model specification 4-13 4.4.3 Out-of-sample model specification 4-15 4.4.4 Forecasts 4-16 4.5 Bayesian inference 4-17 4.6 Credibility theory 4-20 4.6.1 Credibility theory models 4-21 4.6.2 Credibility theory ratemaking 4-22 Further reading 4-25 Appendix 4A – Linear unbiased prediction 4-26 4A.1 Minimum Mean Square Predictor 4-26 4A.2 Best Linear Unbiased Predictor 4-26 4A.3 BLUP Variance 4-27 4. Exercises and Extensions 4-28 5. Multilevel Models 5.1 Cross-sectional multilevel models 5-1 5.1.1 Two-level models 5-1 5.1.2 Multiple level models 5-5 5.1.3 Multiple level modeling in other fields 5-6 5.2 Longitudinal multilevel models 5-6 5.2.1 Two-level models 5-6 5.2.2 Multiple level models 5-10 5.3 Prediction 5-11 5.4 Testing variance components 5-13 Further reading 5-15 Appendix 5A – High order multilevel models 5-16 5. Exercises and Extensions 5-19 6. Random Regressors 6.1 Stochastic regressors in non-longitudinal settings 6-1 6.1.1 Endogenous stochastic regressors 6-1 6.1.2 Weak and strong exogeneity 6-3 6.1.3 Causal effects 6-4 6.1.4 Instrumental variable estimation 6-5 6.2 Stochastic regressors in longitudinal settings 6-7 6.2.1 Longitudinal data models without heterogeneity terms 6-7 6.2.2 Longitudinal data models with heterogeneity terms and strictly exogenous regressors 6-8 6.3 Longitudinal data models with heterogeneity terms and 6-11 sequentially exogenous regressors 6.4 Multivariate responses 6-16 6.4.1 Multivariate regressions 6-16 6.4.2 Seemingly unrelated regressions 6-17 6.4.3 Simultaneous equations models 6-18 6.4.4 Systems of equations with error components 6-20 6.5 Simultaneous equation models with latent variables 6-22 6.5.1 Cross-sectional models 6-23 6.5.2 Longitudinal data applications 6-26 Further reading 6-29 Appendix 6A – Linear projections 6-30 7. Modeling Issues 7.1 Heterogeneity 7-1 7.2 Comparing fixed and random effects estimators 7-4 7.2.1 A special case 7-7 7.2.2 General case 7-9 7.3 Omitted variables 7-12 7.3.1 Models of omitted variables 7-13 7.3.2 Augmented regression estimation 7-14 7.4 Sampling, selectivity bias, attrition 7-17 7.4.1 Incomplete and rotating panels 7-17 7.4.2 Unplanned nonresponse 7-18 7.4.3 Non-ignorable missing data 7-21 7. Exercises and Extensions 7-24 8. Dynamic Models 8.1 Introduction 8-1 8.2 Serial correlation models 8-3 8.2.1 Covariance structures 8-3 8.2.2 Nonstationary structures 8-4 8.2.3 Continuous time correlation models 8-5 8.3 Cross-sectional correlations and time-series cross-section 8-7 models 8.4 Time-varying coefficients 8-9 8.4.1 The model 8-9 8.4.2 Estimation 8-10 8.4.4 Forecasting 8-11 8.5 Kalman filter approach 8-13 8.5.1 Transition equations 8-14 8.5.2 Observation set 8-15 8.5.3 Measurement equations 8-15 8.5.4 Initial conditions 8-16 8.5.5 Kalman filter algorithm 8-16 8.6 Example: Capital asset pricing model 8-18 Appendix 8A – Inference for the time-varying coefficient model 8-23 8A.1 The Model 8-23 8A.2 Estimation 8-23 8A.3 Prediction 8-25 PART II - NONLINEAR MODELS 9. Binary Dependent Variables 9.1 Homogeneous models 9-1 9.1.1 Logistic and probit regression models 9-2 9.1.2 Inference for logistic and probit regression models 9-5 9.1.3 Example: Income tax payments and tax preparers 9-7 9.2 Random effects models 9-9 9.3 Fixed effects models 9-13 9.4 Marginal models and GEE 9-16 Further reading 9-20 Appendix 9A – Likelihood calculations 9-20 9A.1 Consistency Of Likelihood Estimators 9-21 9A.2 Computing Conditional Maximum Likelihood Estimators 9-22 9. Exercises and Extensions 9-23 10. Generalized Linear Models 10.1 Homogeneous models 10-1 10.1.1 Linear exponential families of distributions 10-1 10.1.2 Link functions 10-2 10.1.3 Estimation 10-3 10.2 Example: Tort filings 10-5 10.3 Marginal models and GEE 10-8 10.4 Random effects models 10-12 10.5 Fixed effects models 10-16 10.5.1 Maximum likelihood estimation for canonical links 10-16 10.5.2 Conditional maximum likelihood estimation for canonical links 10-17 10.5.3 Poisson distribution 10-18 10.6 Bayesian inference 10-19 Further reading 10-22 Appendix 10A – Exponential families of distributions 10-23 10A.1 Moment Generating Functions 10-23 10A.2 Sufficiency 10-24 10A.3 Conjugate Distributions 10-24 10A.4 Marginal Distributions 10-25 10. Exercises and Extensions 10-27 11. Categorical Dependent Variables and Survival Models 11.1 Homogeneous models 11-1 11.1.1 Statistical inference 11-2 11.1.2 Generalized logit 11-2 11.1.3 Multinomial (conditional) logit 11-4 11.1.4 Random utility interpretation 11-6 11.1.5 Nested logit 11-7 11.1.6 Generalized extreme value distribution 11-8 11.2 Multinomial logit models with random effects 11-8 11.3 Transition (Markov) models 11-10 11.4 Survival models 11-18 Appendix 11A. Conditional likelihood estimation for 11-21 multinomial logit models with random effects APPENDICES Appendix A. Elements of Matrix Algebra A-1 A.1 Basic Definitions A-1 A.2 Basic Operations A-1 A.3 Further Definitions A-2 A.4 Matrix Decompositions A-2 A.5 Partitioned Matrices A-3 A.6 Kronecker (Direct) Products A-4 Appendix B. Normal Distribution A-5 Appendix C. Likelihood-Based Inference A-6 C.1 Characteristics of Likelihood Functions A-6 C.2 Maximum Likelihood Estimators A-6 C.3 Iterated Reweighted Least Squares A-8 C.4 Profile Likelihood A-8 C.5 Quasi-Likelihood A-8 C.6 Estimating Equations A-9 C.7 Hypothesis Tests A-11 C.8 Information Criteria A-12 C.9 Goodness of Fit Statistics A-13 Appendix D.
Recommended publications
  • Module Three, Part One: Panel Data Analysis in Economic Education Research
    MODULE THREE, PART ONE: PANEL DATA ANALYSIS IN ECONOMIC EDUCATION RESEARCH William E. Becker, William H. Greene and John J. Siegfried* As discussed in Modules One and Two, most of the empirical economic education research is based on a “value-added,” “change-score” or a “difference-in-differences” model specifications in which the expected improvement in student performance from a pre-program measure (pretest) to its post-program measurement (posttest) is estimated and studied for a cross section of subjects. Other than the fact that testing occurs at two different points in time, there is no time dimension, as seen in the data sets employed in Modules One and Two. Panel data analysis provides an alternative structure in which measurements on the cross section of subjects are taken at regular intervals over multiple periods of time.i Collecting data on the cross section of subjects over time enables a study of change. It opens the door for economic education researchers to address unobservable attributes that lead to biased estimators in cross-section analysis.ii As demonstrated in this module, it also opens the door for economic education researchers to look at things other than test scores that vary with time. This module provides an introduction to panel data analysis with specific applications to economic education. The data structure for a panel along with constant coefficient, fixed effects and random effects representations of the data generating processes are presented. Consideration is given to different methods of estimation and testing. Finally, as in Modules One and Two, contemporary estimation and testing procedures are demonstrated in Parts Two, Three and Four using LIMDEP (NLOGIT), STATA and SAS.
    [Show full text]
  • Lectures On: Panel Data Analysis for Social Scientists, Given at the University of Bergen, October 2006
    Lectures on: Panel data analysis for social scientists, given at the University of Bergen, October 2006 You may find these lecture notes a useful complement to those I will use for EC968. They cover a wider range of topics and go at a slower pace, with less emphasis on technical issues. Steve Pudney Panel Data Analysis for Social Scientists University of Bergen Department of Sociology Department of Comparative Politics Steve Pudney Gabriella Conti ISER Aims of course • Introduce the distinctive features of panel data. • Review some panel data sets commonly used in social sciences. • Present the advantages (and limitations) of panel data, and consider what sort of questions panel data can(not) address. • Show how to handle and describe panel data. • Introduce the basic estimation techniques for panel data • Discuss how to choose (and test for) the right technique for the question being addressed. • Discuss interpretation of results 01/02/2007 (2) Structure of course (1) • 5 days × (3 hours lectures + 2 hour lab sessions ) • Lab sessions will illustrate concepts using Stata software (“industry standard” in survey-based applied work) • Main data will be from British Household Panel Survey (BHPS) • Focus is on understanding the concepts and applying them. • Full lecture slides on the web • Technical detail kept to a minimum but available in “appendices” 01/02/2007 (3) Structure of course (2) Day 1: Basics • What are panel data (examples)? • Why use panel data? • Handling panel data in Stata – some basic commands. • Patterns of observations in panel data (non-response and attrition) • Within and between variation • Transitions. • Cohort analysis Day 2: Statistical analysis • Inference using panel data: some identification issues unobservables.
    [Show full text]
  • Panel Data Econometrics: Theory
    Panel Data Econometrics This page intentionally left blank Panel Data Econometrics Theory Edited By Mike Tsionas Academic Press is an imprint of Elsevier 125 London Wall, London EC2Y 5AS, United Kingdom 525 B Street, Suite 1650, San Diego, CA 92101, United States 50 Hampshire Street, 5th Floor, Cambridge, MA 02139, United States The Boulevard, Langford Lane, Kidlington, Oxford OX5 1GB, United Kingdom © 2019 Elsevier Inc. All rights reserved. No part of this publication may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or any information storage and retrieval system, without permission in writing from the publisher. Details on how to seek permission, further information about the Publisher’s permissions policies and our arrangements with organizations such as the Copyright Clearance Center and the Copyright Licensing Agency, can be found at our website: www.elsevier.com/permissions. This book and the individual contributions contained in it are protected under copyright by the Publisher (other than as may be noted herein). Notices Knowledge and best practice in this field are constantly changing. As new research and experience broaden our understanding, changes in research methods, professional practices, or medical treatment may become necessary. Practitioners and researchers must always rely on their own experience and knowledge in evaluating and using any information, methods, compounds, or experiments described herein. In using such information or methods they should be mindful of their own safety and the safety of others, including parties for whom they have a professional responsibility. To the fullest extent of the law, neither the Publisher nor the authors, contributors, or editors, assume any liability for any injury and/or damage to persons or property as a matter of products liability, negligence or otherwise, or from any use or operation of any methods, products, instructions, or ideas contained in the material herein.
    [Show full text]
  • Using Panel Data Analysis to Define Most Global Warming Characteristic
    Al-Azhar University-Gaza Deanship of Postgraduate Studies Faculty of Economics and Administrative Sciences Department of Applied Statistic Using Panel Data Analysis To Define Most Global Warming Characteristic استخدام تحليل السﻻسل الزمنية المقطعية في التعريف بعوامل ارتفاع حرارة اﻻرض by Mohammed Ismail Ramadan Khader Supervisor Prof. Dr. Abdalla El-Habil Professor of Statistics A Thesis Submitted in Partial Fulfillment of the Requirements for the Degree of Master in Applied Statistic 2018 II DECLARATION I, the undersigned hereby, declare that the thesis titled: Using Panel Data Analysis To Define Most Global Warming Characteristic استخدام تحليل السﻻسل الزمنية المقطعية في التعريف بعوامل ارتفاع حرارة اﻻرض Is my own research work and the work provided in this thesis, unless otherwise referenced, is the researcher's own work, and has never been submitted elsewhere for any other degree qualifications nor for any academic titles, nor for any other academic or publishing institutions. I, hereto, affirm that I will be completely responsible in academic and legal terms if this work proves the opposite. Student's name: Mohammed Ismail Ramadan Khader Signature: Mohammed Ismail Ramadan Khader Date: 6 / 11 / 2018 III بسم اهلل الرمحن الرحيم ( أَحَسِبَ النَّاسُ أَنْ يُتْرَكُوا أَنْ يَقُولُوا آمَنَّا وَهُمْ ﻻ يُفْتَنُونَ ) )سورة العنكبوث: اﻷيت 2( IV TO MY PARENTS and My family V ACKNOWLEDGEMENTS First, i would like to express my sincere gratitude to “Allah” for the blessing and mercy given to me during the completion of this thesis. To my parents for their support in all circumstances. I would like to express my sincere gratitude and heartfelt thanks to my supervisor Prof.
    [Show full text]
  • A Three-Paper Dissertation on Longitudinal Data Analysis in Education and Psychology
    A Three-Paper Dissertation on Longitudinal Data Analysis in Education and Psychology Hedyeh Ahmadi Submitted in partial fulfillment of the requirements for the degree of Doctor of Philosophy under the Executive Committee of the Graduate School of Arts and Sciences COLUMBIA UNIVERSITY 2019 c 2019 Hedyeh Ahmadi All rights reserved ABSTRACT A Three-Paper Dissertation on Longitudinal Data Analysis in Education and Psychology Hedyeh Ahmadi In longitudinal settings, modeling the covariance structure of repeated measure data is essential for proper analysis. The first paper in this three-paper dissertation presents a survey of four journals in the fields of Education and Psychology to identify the most commonly used methods for analyzing longitudinal data. It provides literature reviews and statistical details for each identified method. This paper also offers a summary table giving the benefits and drawbacks of all the surveyed methods in order to help researchers choose the optimal model according to the structure of their data. Finally, this paper highlights that even when scholars do use more advanced methods for analyzing repeated measure data, they very rarely report (or explore in their discussions) the covariance structure implemented in their choice of modeling. This suggests that, at least in some cases, researchers may not be taking advantage of the optimal covariance patterns. This paper identifies a gap in the standard statistical practices of the fields of Education and Psychology, namely that researchers are not modeling the covariance structure as an extension of fixed/random effects modeling. The second paper introduces the General Serial Covariance (GSC) approach, an extension of the Linear Mixed Modeling (LMM) or Hierarchical Linear Model (HLM) techniques that models the covariance structure using spatial correlation functions such as Gaussian, Exponential, and other patterns.
    [Show full text]
  • Fixed Effects Models Versus Mixed Effects Models for Clustered Data
    Psychological Methods © 2018 American Psychological Association 2019, Vol. 24, No. 1, 20–35 1082-989X/19/$12.00 http://dx.doi.org/10.1037/met0000182 Fixed Effects Models Versus Mixed Effects Models for Clustered Data: Reviewing the Approaches, Disentangling the Differences, and Making Recommendations Daniel McNeish Ken Kelley Arizona State University University of Notre Dame Abstract Clustered data are common in many fields. Some prominent examples of clustering are employees clustered within supervisors, students within classrooms, and clients within therapists. Many methods exist that explicitly consider the dependency introduced by a clustered data structure, but the multitude of available options has resulted in rigid disciplinary preferences. For example, those working in the psychological, organizational behavior, medical, and educational fields generally prefer mixed effects models, whereas those working in economics, behavioral finance, and strategic management generally prefer fixed effects models. However, increasingly interdisciplinary research has caused lines that separate the fields grounded in psychology and those grounded in economics to blur, leading to researchers encountering unfamiliar statistical methods commonly found in other disciplines. Persistent discipline-specific preferences can be particularly problematic because (a) each approach has certain limitations that can restrict the types of research questions that can be appropriately addressed, and (b) analyses based on the statistical modeling decisions common in one discipline can be difficult to understand for researchers trained in alternative disciplines. This can impede cross-disciplinary collaboration and limit the ability of scientists to make appropriate use of research from adjacent fields. This article discusses the differences between mixed effects and fixed effects models for clustered data, reviews each approach, and helps to identify when each approach is optimal.
    [Show full text]
  • What Are Panel Data? Panel Data Are a Type of Longitudinal Data, Or Data Collected at Different Points in Time
    Introduction to Regression Models for Panel Data Analysis Indiana University Workshop in Methods October 7, 2011 Professor Patricia A. McManus Panel Data Analysis October 2011 What are Panel Data? Panel data are a type of longitudinal data, or data collected at different points in time. Three main types of longitudinal data: Time series data. Many observations (large t) on as few as one unit (small N). Examples: stock price trends, aggregate national statistics. Pooled cross sections. Two or more independent samples of many units (large N) drawn from the same population at different time periods: o General Social Surveys o US Decennial Census extracts o Current Population Surveys* Panel data. Two or more observations (small t) on many units (large N). o Panel surveys of households and individuals (PSID, NLSY, ANES) o Data on organizations and firms at different time points o Aggregated regional data over time This workshop is a basic introduction to the analysis of panel data. In particular, I will cover the linear error components model. WIM Panel Data Analysis October 2011| Page 1 Why Analyze Panel Data? We are interested in describing change over time o social change, e.g. changing attitudes, behaviors, social relationships o individual growth or development, e.g. life-course studies, child development, career trajectories, school achievement o occurrence (or non-occurrence) of events We want superior estimates trends in social phenomena o Panel models can be used to inform policy – e.g. health, obesity o Multiple observations on each unit can provide superior estimates as compared to cross-sectional models of association We want to estimate causal models o Policy evaluation o Estimation of treatment effects WIM Panel Data Analysis October 2011| Page 2 What kind of data are required for panel analysis? Basic panel methods require at least two “waves” of measurement.
    [Show full text]
  • A Primer for Panel Data Analysis by Robert A. Yaffee September 2003
    A Primer for Panel Data Analysis by Robert A. Yaffee September 2003 Updated April 2005 Acknowledgement: I would like to thank Kate Monahan and Jill Hochberg of NYU ITS, and Chunling Lu of Harvard University for their invaluable editorial assistance. Introduction Panel data analysis is an increasingly popular form of longitudinal data analysis among social and behavioral science researchers. A panel is a cross-section or group of people who are surveyed periodically over a given time span. First, we will consider a small sample of panel data analytic applications in the social sciences. Then we will address the data structure for panel analysis. Principal models of panel analysis will be summarized, along with some of their relative advantages and disadvantages. We will discuss a test to determine whether to use fixed or random effects models. After a synopsis of methods of estimations tailored to different situations, we will conclude with a brief discussion of popular software capable of performing panel analysis. Some Applications of Panel Analysis Panel data analysis is a means of studying a particular subject within multiple sites, periodically observed over a defined time frame. Within the social sciences, panel analysis has enabled researchers to undertake longitudinal analyses in a wide variety of fields. In economics, panel data analysis is used to study the behavior of firms and wages of people over time. In political science, it is used to study political behavior of parties and organizations over time. It is used in psychology, sociology and health research to study characteristics of groups of people followed over time.
    [Show full text]