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?
Line Plots : Count and Proportions Code: * Example generated by -dataex-. To install: ssc install dataex clear input int year str1 fi…
xtset with time variable and categorical variableHi, Im trying to set up a long format data structure to use xtgee models. For each time variable (we…
how to generate lower quartile and upper quartileHello every one I need to know how to run the command of summarizing with getting lower quartile an…
Propensity score matching on countryHello together, I have a paneldata set and I want to run propensity score matching and restrict/for…
Weights and Descriptive statisticsI am conducting a study that examines the impact of a state-level policy on individuals living in co…
Subscribe to:
Post Comments (Atom)
0 Response to Bug in asreg?
Post a Comment