Hi all,
I am doing a study which tests the effect of a specific period on firms' liquidity.
I have firm-level daily data. From which I create a weekly data set using the weekly average. Then I construct my dependent and explanatory variables using weekly data. My variable of interest, which represents a specific time of a year is a dummy variable.
The reason I create weekly variables and not monthly variables is that my variable of interest, which represents 30 days in a year. It can starts and finishes any day in a month, as an example in 2015 it started on May 16th and not May 1st.
My sample is strongly unbalanced, and if I make it balanced, I lose loads of observations.
I am using a firm-fixed effect regression and cluster standards errors by both firms and weeks. I use reghdfe code written by @Sergio Correia .
reghdfe dep-var Variable-of-Interest indep-var, absorb(firmcode) vce(cluster firmcode tw )
It works ok, and I have not received any errors, but I think testing an unbalanced panel may not be correct. I appreciate any thought you may have on this.
Many thanks
Mona
Related Posts with Using reghdf with an unbalanced panel data set
Display values (with error bars) for several percentiles in a bar graphI would like to create a bar graph (with error bars) that dísplays the values (finr) for two categor…
Calling alternative do files from Master fileDear All, I have a dataset with daily frequency. A small example is attached. Code: * Example gen…
Unexpected error/problem with labmaskDear all, I am trying to use labmask to assign a numeric variable "school_geo_area" the values of (…
Presenting the list of countries in a tableHello everyone, For my Master' thesis, I am trying to create a table like the one attached below. U…
Importing multiple text files to StataDear all, I am trying to import ASCII files to Stata. The problem is that there are two ASCII files …
Subscribe to:
Post Comments (Atom)
0 Response to Using reghdf with an unbalanced panel data set
Post a Comment