We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea052c4 commit 776a4dbCopy full SHA for 776a4db
R/att_gt.R
@@ -292,7 +292,7 @@ att_gt <- function(yname,
292
# same with clustered standard errors
293
# but it is always ignored b/c bstrap has to be true in that case
294
n <- ifelse(faster_mode, dp$id_count, dp$n)
295
- V <- Matrix::t(inffunc)%*%inffunc/n
+ V <- Matrix::t(inffunc)%*%inffunc/(n-1)
296
se <- sqrt(Matrix::diag(V)/n)
297
298
# Zero standard error replaced by NA
0 commit comments