Hi everyone:
I have a question regarding the asreg command written by @Attaullah Shah. Since I am an absolute beginner and new in this forum, my first question is: Is it possible to estimate rolling window regressions with that command for data that is reported monthly?
I tried running a few example regressions with that command (daily data which if found online) - it worked perfectly well within an impressively short amount of time. My own data, however, is an unbalanced panel monthly data set structured in the long format in Stata.
My original date variable looks like follows: 201501, 201502, 201503, and so forth. Beyond that I have a clear Identifier variable for my panel structure and variety of further variables.
I created my monthly date variables by using the numdate command:
numdate monthly mdate = _date, pattern(YM) topyear(2050)
By doing this, my data looks like: 2015m1, 2015m2, 2015m3, and so forth.
When running the asreg command, all regression estimates are missing values:
bys Identifier: asreg Y X1 X2 X3, wind(mdate 12)
For each Identifier, there is more than 10 years of monthly data available. So my aim was to calculate for each Identifier regression results that are based on one year of monthly data for each point in time (month).
Any suggestions are greatly appreciated. Thank you for your help in advance!
Best,
Dennis
Related Posts with "Asreg" rolling window regressions with monthly data
Both fixed effect and first difference of some independent variables?Hi, I have a short panel data and after doing unit root ht test, I found that some of the independen…
Calculating top and bottom 2.5%Hi everyone, I am trying to add 95% confidence intervals to a kdenstiy plot. I think I need to cacu…
xtqreg warning message: fitted values of the scale function are not positiveHi, I am running a quantile regression for panel data. I have 50 individuals and at least 500 obser…
Problem with the data form a multi-line Excel cellDear community, I loaded an Excel file where two columns contain more than one line (The cell inclu…
Panel methods accounting for both cross-sectional dependence and endogeneity at the same time?* Are there any methods accounting for both cross-sectional dependence and endogeneity at the same ti…
Subscribe to:
Post Comments (Atom)
0 Response to "Asreg" rolling window regressions with monthly data
Post a Comment