Am 07.07.2022 um 07:49 schrieb Riccardo (Jack) Lucchetti:
On Wed, 6 Jul 2022, Fred Engst wrote:
> More and more of my students are using STATA’s reghdfe for their model
> estimations. I wonder if it is possible to achieve the same results by
> gretl. If we can, how? If not, is there a work around to get the same
> results?
Fred, it would be helpful to be more specific about what is actually
needed, like what kind and size of dataset needs to be analyzed with
what regressors/predictors. I kind of doubt that your students really
require all the features and capabilities of that package. Then maybe we
can come up with a practical suggestion.
I must admit I was competely unaware of this package (and of this
estimator too). From what I gather, it sound like a huge step forward in
fixed effects estimation for linear models. By a cursory look at
Correia's stata code, it looks like a major piece of work.
To avoid false impressions, we do agree that fixed-effects estimation in
linear models is not in principle a problem, don't we? From what I
understand, the problem appears only when the datasets get huge, right?
It would be interesting to implement this as a function package. Any
volunteers?
I have no idea how that Stata package actually handles things, but I
kind of suspect that Stata's memory-saving way of storing dummy
variables may play a role. As long as gretl stores every dummy as a
double (FP64), I'm skeptical that really large datasets can be handled,
with several fixed-effects layers.
(Don't get me wrong, I'm not pushing for gretl to change its underlying
architecture there, which might be error-prone and divert resources from
other activities.)
cheers
sven