Open jay-sf opened 2 years ago
Hi,
alpaca only computes clustered standard errors if you specify type="clustered", cluster=~i
. The third part in the formula only has to be specified if the cluster variable is not part of the model specification. Since i
is already specified in the second part of the formula, you don't need to specify it again in the third part.
Best wishes, Amrei
hi @amrei-stammann
I made my own modification of Alpaca (Capybara), and one of the changes is to pass the cluster as y ~ a + b | fixedeffects | cluster
https://github.com/pachadotdev/capybara
Hi,
first of all thanks for maintaining the
alpaca
package! I noticed the formula specification with FE and cluster to be very similar tolfe::felm
which is very neat! I just recommended it on Stack Overflow.However, I am not sure, if the cluster specification in the third part of the formula actually works and yields clustered standard errors as expected. We only seem to get those if we specify
type="clustered", cluster=~i
in thesummary
:I noticed, a similar observation was made in an earlier issue.
It would be great if you could have a look at this.
Cheers!