Hi,
I'm trying to run a regression on panel data with standard errors robust at both the cross sectional and time levels, as well as fixed effects either at the cross sectional or time level. Number of cross sections is 708 while number of time series is 63. The problem I encounter is that in the results, the standard errors are missing for one of the explanatory variables, and some of the dummy variables.
I checked the cross sectional dummy variables, and found that for some identifiers, there is only 1 observation. I guess that is the problem? In that case I guess the solution would be to remove those identifiers? How about those identifiers with 2 observations? or 3? ... 10? What would be considered as too few observations?
I also checked the time series dummy variables, and found that the minimum number of observations for any time period was 248. However, when I run the regression with time fixed effects, the standard errors are also missing for the same explanatory variable and for some of the time dummy variables.
Does anyone have any advice regarding this?
I'm using the 2D cluster macro from Michell Peterson's page: http://www.kellogg.northwestern.edu/...e/cluster2.ado
The command I run is:
- Time fixed effects: xi: cluster2 srisk lev m2b biz eqtyvol lagsrisk lagvar size i.date, fcluster(permco) tcluster(date)
- Cross section effects: xi: cluster2 srisk lev m2b biz eqtyvol lagsrisk lagvar size i.permco, fcluster(permco) tcluster(date)
Thank you!
I'm trying to run a regression on panel data with standard errors robust at both the cross sectional and time levels, as well as fixed effects either at the cross sectional or time level. Number of cross sections is 708 while number of time series is 63. The problem I encounter is that in the results, the standard errors are missing for one of the explanatory variables, and some of the dummy variables.
I checked the cross sectional dummy variables, and found that for some identifiers, there is only 1 observation. I guess that is the problem? In that case I guess the solution would be to remove those identifiers? How about those identifiers with 2 observations? or 3? ... 10? What would be considered as too few observations?
I also checked the time series dummy variables, and found that the minimum number of observations for any time period was 248. However, when I run the regression with time fixed effects, the standard errors are also missing for the same explanatory variable and for some of the time dummy variables.
Does anyone have any advice regarding this?
I'm using the 2D cluster macro from Michell Peterson's page: http://www.kellogg.northwestern.edu/...e/cluster2.ado
The command I run is:
- Time fixed effects: xi: cluster2 srisk lev m2b biz eqtyvol lagsrisk lagvar size i.date, fcluster(permco) tcluster(date)
- Cross section effects: xi: cluster2 srisk lev m2b biz eqtyvol lagsrisk lagvar size i.permco, fcluster(permco) tcluster(date)
Thank you!
Comment