Hi, I am replicating a paper in Matlab that uses Stata. Problem setup: paper uses, for example, -reg ... i.clustervar cluster(clustervar)- to obtain POLS estimates with clustered standard errors. The panel data is clustered at the individual (country) level. When Stata omits the clustervar dummies for collinearity, it still uses the in-group variance of those omitted groups to calculate the standard errors for non-omitted coefficients. I stumbled upon this calculation method by pure luck as I was only considering the variances of those groups not omitted previously. More precisely, the sum over the groups of u*u' within the asymptotic variance formula is over all variables, including omitted variables. Is this a feature or a bug? If it is a feature, why?
It seems to me that, from a model specification view, we should not be using data from omitted variables to calculate standard errors. On the other hand, this method increases the standard errors and makes them more robust(?) so I can see the desire from that direction. However, it seems that if the latter case is true, there is positive bias on standard errors.
Related Posts with Clustered Standard Errors in Stata replication in Matlab
What does mean the error 'Invalid 'Bastos'?I am trying using flexpaneldid and glmdose commands in stata but I cannot run. Always the message In…
Confused whether to use first difference variables when testing between modelsI am conducting research on panel data where N=16 and T=24. After conducting panel unit root tests I…
Plotting probability trees to model path dependenceDear members, is there a command that allows to draw a probability tree in Stata? I have a panel d…
Block bootstrap codes for time series dataI'm looking to do OLS regression for time series data but there is potentially serially correlated e…
Problem: Independent variable is somewhat dependent on dependent variableDear all, so far I have been a read-only member and have several times profited greatly from your kn…
Subscribe to:
Post Comments (Atom)
0 Response to Clustered Standard Errors in Stata replication in Matlab
Post a Comment