Now I would like to calculate a second set of standard errors, e.g. vcov = cluster( StateCategorical + YearCategorical).
How can we calculate these without having to run the costly reg(df, @model(Sales ~ NDI, fe = StateCategorical + YearCategorical, weights = Pop, vcov = cluster( StateCategorical + YearCategorical)))?
You can’t. The reason is that it is not clear what to do if there are observations with a missing cluster variable. You would need to reestimate the model on this new sample anyway.
Out of curiosity, is your estimation really taking a lot of time?
I understand. In my case there are no missing cluster variables. Estimation takes about 5 hours on a cluster for a single regression, but I need to run it for approximately 30 different specifications…
(I just checked and it doesn’t make a difference indeed. Wondering why Stata allows both options simultaneously - the FixedEffectModels.jl approach is definitely clearer.)