I believe there is a bug in the asreg function. When I run rolling window regressions on panel data (firm * quarter), the predictions and residuals are identical in each quarter. E.g. when I run...
asreg y x, by(qtr) fitted window(qtr 4)
... all predicted values in a particular quarter are identical, and so are all residuals.
This problem does *not* occur when I do not specify a window, ie when running
asreg y x, by(qtr) fitted
Something seems be wrong with the "window" option.
Has anybody had the same issue?
Related Posts with Bug in asreg?
Identify first non zero value, create new variableHi All, My data is individual level data. There are a series of variables, with "date" and then six…
Event study graph using command eventddHi, I am doing a event study in stata using the eventdd command. Is it possible to move the solid v…
table and tables builder - mlogitHi y'all. I am running mlogit models using the rrr option. When I use table to run the command (belo…
BGV (Between Group Variance)Dear Statalist, I would like to measure inequity through BGV (Between Group Variance) for non-order…
How to check whether an small id (eg: employee_id) appears in two or more different big ids (eg: office_id)?I have a dataset of offices and employee sales within that office. An employee shouldn't appear in 2…
Subscribe to:
Post Comments (Atom)
0 Response to Bug in asreg?
Post a Comment