Panel Data Problem Set 6
Panel Data Problem Set 6
(a) Obtain the first order condition for maximizing logL with respect to i. Note, there is one of these for each i, so you need only differentiate logL i = t =1 ( log it y it / it )
T
with respect to i and equate it to zero. You will gain some convenience by defining ait = yit/it. (b) Now, treating as if it were known, show that the implicit solution of this likelihood equation for i in terms of is
(c) It follows that at the solution for the MLE, it will be true that i() = ai where ai is the
c sample mean of ait. Denote it = aiit . Insert this solution back into the log likelihood function, to obtain the concentrated log likelihood function c c logLc = i=1 t =1 ( log it y it / it ) . n T
Note that this is a function of but not of i. To obtain the maximum likelihood estimator of , we can now maximize this function with respect to . This is equivalent to maximizing the whole log likelihood function, while considering only the solutions for i that satisfy i = i() as shown above. When we find , we can then compute i. (No assignment for this part.) (d) With this in hand, it is now possible to maximize the function with respect to . Show that the likelihood equation will be
y c n T n T logLc 1 1 = i=1 t =1 c + cit 2 it = i=1 t =1 c it it (it ) y it c 1 it . c it
You now need the derivative, itc/ . Continuing, show that itc/ = ai it xit
1 T ait it xit T t =1
b. A second result that seems intuitively reasonable is that the IP bias diminishes as T increases. Is this the case? Change the three 2s in the command set above to 3s and redo the experiment. What do you find? Now, change the 2s to 7s and repeat the experiment. In each case, report your findings and your conclusions. c. What do you conclude about the fixed effects model?
xit = one,age,educ,hhninc,handper,working,hsat
1. Suppose, for the moment, we ignore the heterogeneity, ci and just pool the data and fit a simple probit model. Is the estimator consistent? What assumptions are necessary for the pooled estimator to be a consistent estimator of ? 2. All of the suggested covariates in the model are time varying. Fit a random effects model and a fixed effects model (this can only be done by brute force). Report your results. 3. We are interested in deciding which is preferred, fixed or random effects. I propose to use a variable addition test. Add the group means to the model, then carry out a likelihood ratio test of the hypothesis that the coefficients on the group means are all zero. What do you find? What do you conclude is the preferred model? 4. Suppose it were hypothesized that the previous years choice of whether or not to choose public insurance were on the right hand side of the equation. That is, Prob(yit = 1 | xit) = (ci + xit + yi,t-1) What would this imply for how one (you) should go about estimating the parameters of the model. What issues should you be concerned with for a dynamic model? Hint: These commands can be used for parts 1. 3.
Sample ; All $ Probit ; Lhs = public ; Rhs = one,age,educ,hhninc,handper,working,newhsat ; Pds = _groupti ; Random $ Probit ; Lhs = public ; Rhs = one,age,educ,hhninc,handper,working,newhsat ; Pds = _groupti ; FEM $ Create ; ageb = Group Mean(age,pds=_groupti) $ Create ; educb = Group Mean(educ,pds=_groupti) $ Create ; handb = Group Mean(handper,pds=_groupti) $ Create ; workb = Group Mean(working,pds=_groupti) $ Create ; hsatb = Group Mean(newhsat,pds=_groupti) $ Namelist ; Means = ageb,educb,handb,workb,hsatb $ Probit ; Lhs = public ; Rhs = means,one,age,educ,hhninc,handper,working,newhsat ; Pds = _groupti ; Random $