1/62: Topic 2.3 – Panel Data Binary Choice Models Microeconometric Modeling William Greene Stern School of Business New York University New York NY USA.

Slides:



Advertisements
Similar presentations
7. Models for Count Data, Inflation Models. Models for Count Data.
Advertisements

Econometrics I Professor William Greene Stern School of Business
Discrete Choice Modeling William Greene Stern School of Business New York University Lab Sessions.
Discrete Choice Modeling
Empirical Methods for Microeconomic Applications University of Lugano, Switzerland May 27-31, 2013 William Greene Department of Economics Stern School.
Longitudinal and Multilevel Methods for Models with Discrete Outcomes with Parametric and Non-Parametric Corrections for Unobserved Heterogeneity David.
3. Binary Choice – Inference. Hypothesis Testing in Binary Choice Models.
[Part 1] 1/15 Discrete Choice Modeling Econometric Methodology Discrete Choice Modeling William Greene Stern School of Business New York University 0Introduction.
Discrete Choice Modeling William Greene Stern School of Business New York University Lab Sessions.
Part 12: Random Parameters [ 1/46] Econometric Analysis of Panel Data William Greene Department of Economics Stern School of Business.
Part 4: Partial Regression and Correlation 4-1/24 Econometrics I Professor William Greene Stern School of Business Department of Economics.
Part 23: Simulation Based Estimation 23-1/26 Econometrics I Professor William Greene Stern School of Business Department of Economics.
Part 20: Sample Selection 20-1/38 Econometrics I Professor William Greene Stern School of Business Department of Economics.
Empirical Methods for Microeconomic Applications University of Lugano, Switzerland May 27-31, 2013 William Greene Department of Economics Stern School.
Discrete Choice Modeling William Greene Stern School of Business New York University Lab Sessions.
Discrete Choice Modeling William Greene Stern School of Business New York University.
2. Binary Choice Estimation. Modeling Binary Choice.
Econometric Methodology. The Sample and Measurement Population Measurement Theory Characteristics Behavior Patterns Choices.
1. Descriptive Tools, Regression, Panel Data. Model Building in Econometrics Parameterizing the model Nonparametric analysis Semiparametric analysis Parametric.
Discrete Choice Modeling William Greene Stern School of Business New York University.
Discrete Choice Modeling William Greene Stern School of Business New York University.
Discrete Choice Modeling William Greene Stern School of Business New York University.
Empirical Methods for Microeconomic Applications William Greene Department of Economics Stern School of Business.
1/53: Topic 3.1 – Models for Ordered Choices Microeconometric Modeling William Greene Stern School of Business New York University New York NY USA William.
Discrete Choice Modeling William Greene Stern School of Business New York University.
Empirical Methods for Microeconomic Applications University of Lugano, Switzerland May 27-31, 2013 William Greene Department of Economics Stern School.
Discrete Choice Modeling William Greene Stern School of Business New York University.
Spatial Discrete Choice Models Professor William Greene Stern School of Business, New York University.
Discrete Choice Modeling William Greene Stern School of Business New York University.
[Part 4] 1/43 Discrete Choice Modeling Bivariate & Multivariate Probit Discrete Choice Modeling William Greene Stern School of Business New York University.
Spatial Discrete Choice Models Professor William Greene Stern School of Business, New York University.
Discrete Choice Modeling William Greene Stern School of Business New York University.
Discrete Choice Modeling William Greene Stern School of Business New York University.
[Topic 2-Endogeneity] 1/33 Topics in Microeconometrics William Greene Department of Economics Stern School of Business.
Discrete Choice Modeling William Greene Stern School of Business New York University.
1/62: Topic 2.3 – Panel Data Binary Choice Models Microeconometric Modeling William Greene Stern School of Business New York University New York NY USA.
Empirical Methods for Microeconomic Applications University of Lugano, Switzerland May 27-31, 2013 William Greene Department of Economics Stern School.
Discrete Choice Modeling William Greene Stern School of Business New York University.
Discrete Choice Modeling William Greene Stern School of Business New York University.
1/53: Topic 3.1 – Models for Ordered Choices Microeconometric Modeling William Greene Stern School of Business New York University New York NY USA William.
6. Ordered Choice Models. Ordered Choices Ordered Discrete Outcomes E.g.: Taste test, credit rating, course grade, preference scale Underlying random.
[Part 5] 1/43 Discrete Choice Modeling Ordered Choice Models Discrete Choice Modeling William Greene Stern School of Business New York University 0Introduction.
Discrete Choice Modeling William Greene Stern School of Business New York University.
1/26: Topic 2.2 – Nonlinear Panel Data Models Microeconometric Modeling William Greene Stern School of Business New York University New York NY USA William.
5. Extensions of Binary Choice Models
Microeconometric Modeling
Microeconometric Modeling
William Greene Stern School of Business New York University
William Greene Stern School of Business New York University
Discrete Choice Modeling
Discrete Choice Modeling
Discrete Choice Modeling
Discrete Choice Modeling
Microeconometric Modeling
Microeconometric Modeling
Microeconometric Modeling
Microeconometric Modeling
Microeconometric Modeling
Microeconometric Modeling
Microeconometric Modeling
Discrete Choice Modeling
Microeconometric Modeling
Microeconometric Modeling
Microeconometric Modeling
Microeconometric Modeling
Microeconometric Modeling
Empirical Methods for Microeconomic Applications University of Lugano, Switzerland May 27-31, 2019 William Greene Department of Economics Stern School.
Empirical Methods for Microeconomic Applications University of Lugano, Switzerland May 27-31, 2019 William Greene Department of Economics Stern School.
Empirical Methods for Microeconomic Applications University of Lugano, Switzerland May 27-31, 2019 William Greene Department of Economics Stern School.
Presentation transcript:

1/62: Topic 2.3 – Panel Data Binary Choice Models Microeconometric Modeling William Greene Stern School of Business New York University New York NY USA William Greene Stern School of Business New York University New York NY USA 2.3 Panel Data Models for Binary Choice

2/62: Topic 2.3 – Panel Data Binary Choice Models Concepts Unbalanced Panel Attrition Bias Inverse Probability Weight Heterogeneity Population Averaged Model Clustering Pooled Model Quadrature Maximum Simulated Likelihood Conditional Estimator Incidental Parameters Problem Partial Effects Bias Correction Mundlak Specification Variable Addition Test Models Random Effects Progit Fixed Effects Probit Fixed Effects Logit Dynamic Probit Mundlak Formulation Correlated Random Effects Model

3/62: Topic 2.3 – Panel Data Binary Choice Models

4/62: Topic 2.3 – Panel Data Binary Choice Models Application: Health Care Panel Data German Health Care Usage Data Data downloaded from Journal of Applied Econometrics Archive. This is an unbalanced panel with 7,293 individuals. They can be used for regression, count models, binary choice, ordered choice, and bivariate binary choice. There are altogether 27,326 observations. The number of observations ranges from 1 to 7. (Frequencies are: 1=1525, 2=2158, 3=825, 4=926, 5=1051, 6=1000, 7=987). Variables in the file are DOCTOR = 1(Number of doctor visits > 0) HOSPITAL= 1(Number of hospital visits > 0) HSAT = health satisfaction, coded 0 (low) - 10 (high) DOCVIS = number of doctor visits in last three months HOSPVIS = number of hospital visits in last calendar year PUBLIC = insured in public health insurance = 1; otherwise = 0 ADDON = insured by add-on insurance = 1; otherswise = 0 HHNINC = household nominal monthly net income in German marks / (4 observations with income=0 were dropped) HHKIDS = children under age 16 in the household = 1; otherwise = 0 EDUC = years of schooling AGE = age in years MARRIED = marital status

5/62: Topic 2.3 – Panel Data Binary Choice Models Unbalanced Panels Group Sizes Most theoretical results are for balanced panels. Most real world panels are unbalanced. Often the gaps are caused by attrition. The major question is whether the gaps are ‘missing completely at random.’ If not, the observation mechanism is endogenous, and at least some methods will produce questionable results. Researchers rarely have any reason to treat the data as nonrandomly sampled. (This is good news.)

6/62: Topic 2.3 – Panel Data Binary Choice Models Unbalanced Panels and Attrition ‘Bias’  Test for ‘attrition bias.’ (Verbeek and Nijman, Testing for Selectivity Bias in Panel Data Models, International Economic Review, 1992, 33, Variable addition test using covariates of presence in the panel Nonconstructive – what to do next?  Do something about attrition bias. (Wooldridge, Inverse Probability Weighted M-Estimators for Sample Stratification and Attrition, Portuguese Economic Journal, 2002, 1: ) Stringent assumptions about the process Model based on probability of being present in each wave of the panel

7/62: Topic 2.3 – Panel Data Binary Choice Models

8/62: Topic 2.3 – Panel Data Binary Choice Models Inverse Probability Weighting

9/62: Topic 2.3 – Panel Data Binary Choice Models

10/62: Topic 2.3 – Panel Data Binary Choice Models Panel Data Binary Choice Models Random Utility Model for Binary Choice U it =  +  ’x it +  it + Person i specific effect Fixed effects using “dummy” variables U it =  i +  ’x it +  it Random effects using omitted heterogeneity U it =  +  ’x it +  it + u i Same outcome mechanism: Y it = 1[U it > 0]

11/62: Topic 2.3 – Panel Data Binary Choice Models Ignoring Unobserved Heterogeneity

12/62: Topic 2.3 – Panel Data Binary Choice Models

13/62: Topic 2.3 – Panel Data Binary Choice Models Ignoring Heterogeneity in the RE Model  is too small Scale factor is too large

14/62: Topic 2.3 – Panel Data Binary Choice Models Population average coefficient is off by 43% but the partial effect is off by 6%

15/62: Topic 2.3 – Panel Data Binary Choice Models Ignoring Heterogeneity (Broadly)  Presence will generally make parameter estimates look smaller than they would otherwise.  Ignoring heterogeneity will definitely distort standard errors.  Partial effects based on the parametric model may not be affected very much.  Is the pooled estimator ‘robust?’ Less so than in the linear model case.

16/62: Topic 2.3 – Panel Data Binary Choice Models Pooled vs. RE Panel Estimator Binomial Probit Model Dependent variable DOCTOR Variable| Coefficient Standard Error b/St.Er. P[|Z|>z] Mean of X Constant| AGE|.01532*** EDUC| *** HHNINC| ** Unbalanced panel has 7293 individuals Constant| AGE|.02232*** EDUC| *** HHNINC| Rho|.44990***

17/62: Topic 2.3 – Panel Data Binary Choice Models Partial Effects Partial derivatives of E[y] = F[*] with respect to the vector of characteristics They are computed at the means of the Xs Observations used for means are All Obs Variable| Coefficient Standard Error b/St.Er. P[|Z|>z] Elasticity |Pooled AGE|.00578*** EDUC| *** HHNINC| ** |Based on the panel data estimator AGE|.00620*** EDUC| *** HHNINC|

18/62: Topic 2.3 – Panel Data Binary Choice Models The Effect of Clustering  Y it must be correlated with Y is across periods  Pooled estimator ignores correlation  Broadly, y it = E[y it |x it ] + w it, E[y it |x it ] = Prob(y it = 1|x it ) w it is correlated across periods  Assuming the marginal probability is the same, the pooled estimator is consistent. (We just saw that it might not be.)  Ignoring the correlation across periods generally leads to underestimating standard errors.

19/62: Topic 2.3 – Panel Data Binary Choice Models ‘Cluster’ Corrected Covariance Matrix

20/62: Topic 2.3 – Panel Data Binary Choice Models Cluster Correction: Doctor Binomial Probit Model Dependent variable DOCTOR Log likelihood function Variable| Coefficient Standard Error b/St.Er. P[|Z|>z] Mean of X | Conventional Standard Errors Constant| *** AGE|.01469*** EDUC| *** HHNINC| ** FEMALE|.35209*** | Corrected Standard Errors Constant| *** AGE|.01469*** EDUC| *** HHNINC| * FEMALE|.35209***

21/62: Topic 2.3 – Panel Data Binary Choice Models Random Effects

22/62: Topic 2.3 – Panel Data Binary Choice Models Quadrature – Butler and Moffitt (1982)

23/62: Topic 2.3 – Panel Data Binary Choice Models Quadrature Log Likelihood

24/62: Topic 2.3 – Panel Data Binary Choice Models Simulation Based Estimator

25/62: Topic 2.3 – Panel Data Binary Choice Models Random Effects Model: Quadrature Random Effects Binary Probit Model Dependent variable DOCTOR Log likelihood function  Random Effects Restricted log likelihood  Pooled Chi squared [ 1 d.f.] Estimation based on N = 27326, K = 5 Unbalanced panel has 7293 individuals Variable| Coefficient Standard Error b/St.Er. P[|Z|>z] Mean of X Constant| AGE|.02232*** EDUC| *** HHNINC| Rho|.44990*** |Pooled Estimates Constant| AGE|.01532*** EDUC| *** HHNINC| **

26/62: Topic 2.3 – Panel Data Binary Choice Models Random Parameter Model Random Coefficients Probit Model Dependent variable DOCTOR (Quadrature Based) Log likelihood function ( ) Restricted log likelihood Chi squared [ 1 d.f.] Simulation based on 50 Halton draws Variable| Coefficient Standard Error b/St.Er. P[|Z|>z] |Nonrandom parameters AGE|.02226*** (.02232) EDUC| *** ( ) HHNINC| (.00660) |Means for random parameters Constant| ** ( ) |Scale parameters for dists. of random parameters Constant|.90453*** Using quadrature, a = Implied  from these estimates is /( ) = compared to using quadrature.

27/62: Topic 2.3 – Panel Data Binary Choice Models A Dynamic Model

28/62: Topic 2.3 – Panel Data Binary Choice Models Dynamic Probit Model: A Standard Approach

29/62: Topic 2.3 – Panel Data Binary Choice Models Simplified Dynamic Model

30/62: Topic 2.3 – Panel Data Binary Choice Models A Dynamic Model for Public Insurance Age Household Income Kids in the household Health Status Add initial value, lagged value, group means

31/62: Topic 2.3 – Panel Data Binary Choice Models Dynamic Common Effects Model

32/62: Topic 2.3 – Panel Data Binary Choice Models Application Stewart, JAE, 2007  British Household Panel Survey ( )  3060 households retained (balanced) out of 4739 total.  Unemployment indicator (0.1)  Data features Panel data – unobservable heterogeneity State persistence: “Someone unemployed at t-1 is more than 20 times as likely to be unemployed at t as someone employed at t-1.”

33/62: Topic 2.3 – Panel Data Binary Choice Models Application: Direct Approach

34/62: Topic 2.3 – Panel Data Binary Choice Models GHK Simulation/Estimation The presence of the autocorrelation and state dependence in the model invalidate the simple maximum likelihood procedures we examined earlier. The appropriate likelihood function is constructed by formulating the probabilities as Prob( y i,0, y i,1,...) = Prob(y i,0 ) × Prob(y i,1 | y i,0 ) × ・ ・ ・ ×Prob(y i,T | y i,T-1 ). This still involves a T = 7 order normal integration, which is approximated in the study using a simulator similar to the GHK simulator.

35/62: Topic 2.3 – Panel Data Binary Choice Models Problems with Dynamic RE Probit  Assumes y i,0 and the effects are uncorrelated  Assumes the initial conditions are exogenous – OK if the process and the observation begin at the same time, not if different.  Doesn’t allow time invariant variables in the model.  The normality assumption in the projection.

36/62: Topic 2.3 – Panel Data Binary Choice Models Distributional Problem  Normal distributions assumed throughout Normal distribution for the unique component, ε i,t Normal distribution assumed for the heterogeneity, u i Sensitive to the distribution?  Alternative: Discrete distribution for u i. Heckman and Singer style, latent class model. Conventional estimation methods.  Why is the model not sensitive to normality for ε i,t but it is sensitive to normality for u i ?

37/62: Topic 2.3 – Panel Data Binary Choice Models Fixed Effects Modeling  Advantages: Allows correlation of covariates and heterogeneity  Disadvantages: Complications of computing all those dummy variable coefficients – solved problem (Greene, 2004) No time invariant variables – not solvable in the FE context Incidental Parameters problem – persistent small T bias, does not go away  Strategies Unconditional estimation Conditional estimation – Rasch/Chamberlain Hybrid conditional/unconditional estimation Bias corrrections Mundlak estimator

38/62: Topic 2.3 – Panel Data Binary Choice Models Fixed Effects Models  Estimate with dummy variable coefficients U it =  i +  ’x it +  it  Can be done by “brute force” for 10,000s of individuals  F(.) = appropriate probability for the observed outcome  Compute  and  i for i=1,…,N (may be large)  See FixedEffects.pdf in course materials.

39/62: Topic 2.3 – Panel Data Binary Choice Models Unconditional Estimation  Maximize the whole log likelihood  Difficult! Many (thousands) of parameters.  Feasible – NLOGIT (2004) (“Brute force”)

40/62: Topic 2.3 – Panel Data Binary Choice Models Fixed Effects Health Model Groups in which y it is always = 0 or always = 1. Cannot compute α i.

41/62: Topic 2.3 – Panel Data Binary Choice Models Conditional Estimation  Principle: f(y i1,y i2,… | some statistic) is free of the fixed effects for some models.  Maximize the conditional log likelihood, given the statistic.  Can estimate β without having to estimate α i.  Only feasible for the logit model. (Poisson and a few other continuous variable models. No other discrete choice models.)

42/62: Topic 2.3 – Panel Data Binary Choice Models Binary Logit Conditional Probabilities

43/62: Topic 2.3 – Panel Data Binary Choice Models Example: Two Period Binary Logit

44/62: Topic 2.3 – Panel Data Binary Choice Models Example: Seven Period Binary Logit

45/62: Topic 2.3 – Panel Data Binary Choice Models

46/62: Topic 2.3 – Panel Data Binary Choice Models

47/62: Topic 2.3 – Panel Data Binary Choice Models The sample is 200 individuals each observed 50 times.

48/62: Topic 2.3 – Panel Data Binary Choice Models The data are generated from a probit process with b1 = b2 =.5. But, it is fit as a logit model. The coefficients obey the familiar relationship, 1.6*probit.

49/62: Topic 2.3 – Panel Data Binary Choice Models Estimating Partial Effects “The fixed effects logit estimator of  immediately gives us the effect of each element of x i on the log-odds ratio… Unfortunately, we cannot estimate the partial effects… unless we plug in a value for α i. Because the distribution of α i is unrestricted – in particular, E[α i ] is not necessarily zero – it is hard to know what to plug in for α i. In addition, we cannot estimate average partial effects, as doing so would require finding E[Λ(x it  + α i )], a task that apparently requires specifying a distribution for α i.” (Wooldridge, 2010)

50/62: Topic 2.3 – Panel Data Binary Choice Models MLE for Logit Constant Terms

51/62: Topic 2.3 – Panel Data Binary Choice Models An Approximate Solution for E[  i ]

52/62: Topic 2.3 – Panel Data Binary Choice Models An Approximate Solution for  i

53/62: Topic 2.3 – Panel Data Binary Choice Models

54/62: Topic 2.3 – Panel Data Binary Choice Models

55/62: Topic 2.3 – Panel Data Binary Choice Models

56/62: Topic 2.3 – Panel Data Binary Choice Models Systematic overestimation by alphai, or random noise? A second run of the experiment:

57/62: Topic 2.3 – Panel Data Binary Choice Models

58/62: Topic 2.3 – Panel Data Binary Choice Models

59/62: Topic 2.3 – Panel Data Binary Choice Models Fixed Effects Logit Health Model: Conditional vs. Unconditional

60/62: Topic 2.3 – Panel Data Binary Choice Models Incidental Parameters Problems: Conventional Wisdom  General: The unconditional MLE is biased in samples with fixed T except in special cases such as linear or Poisson regression (even when the FEM is the right model). The conditional estimator (that bypasses estimation of α i ) is consistent.  Specific: Upward bias (experience with probit and logit) in estimators of 

61/62: Topic 2.3 – Panel Data Binary Choice Models

62/62: Topic 2.3 – Panel Data Binary Choice Models A Monte Carlo Study of the FE Estimator: Probit vs. Logit Estimates of Coefficients and Marginal Effects at the Implied Data Means Results are scaled so the desired quantity being estimated ( , , marginal effects) all equal 1.0 in the population.

63/62: Topic 2.3 – Panel Data Binary Choice Models Bias Correction Estimators  Motivation: Undo the incidental parameters bias in the fixed effects probit model: (1) Maximize a penalized log likelihood function, or (2) Directly correct the estimator of β  Advantages For (1) estimates α i so enables partial effects Estimator is consistent under some circumstances (Possibly) corrects in dynamic models  Disadvantage No time invariant variables in the model Practical implementation Extension to other models? (Ordered probit model (maybe) – see JBES 2009)

64/62: Topic 2.3 – Panel Data Binary Choice Models A Mundlak Correction for the FE Model

65/62: Topic 2.3 – Panel Data Binary Choice Models Mundlak Correction

66/62: Topic 2.3 – Panel Data Binary Choice Models A Variable Addition Test for FE vs. RE The Wald statistic of and the likelihood ratio statistic of are both far larger than the critical chi squared with 5 degrees of freedom, This suggests that for these data, the fixed effects model is the preferred framework.

67/62: Topic 2.3 – Panel Data Binary Choice Models Fixed Effects Models Summary  Incidental parameters problem if T < 10 (roughly)  Inconvenience of computation  Appealing specification  Alternative semiparametric estimators? Theory not well developed for T > 2 Not informative for anything but slopes (e.g., predictions and marginal effects)  Ignoring the heterogeneity definitely produces an inconsistent estimator (even with cluster correction!)  A Hobson’s choice  Mundlak correction is a useful common approach.