Skip to content

Commit 1a3dde6

Browse files
committed
Update fit.jl
1 parent d876aaa commit 1a3dde6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fit.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function regife(df, f::FormulaTerm, vcov::CovarianceEstimator = Vcov.simple();
6969
factor_vars = [m.id, m.time]
7070
all_vars = unique(vcat(vars, factor_vars))
7171
esample = completecases(df[!, all_vars])
72-
esample .&= completecases(df, vcov)
72+
esample .&= Vcov.completecases(df, vcov)
7373
if has_weights
7474
esample .&= BitArray(!ismissing(x) & (x > 0) for x in df[!, weights])
7575
all_vars = unique(vcat(all_vars, weights))
@@ -84,7 +84,7 @@ function regife(df, f::FormulaTerm, vcov::CovarianceEstimator = Vcov.simple();
8484

8585

8686
# Compute data needed for errors
87-
vcov_method_data = Vcov.materialize(vcov, view(df, esample,:))
87+
vcov_method_data = Vcov.materialize(view(df, esample,:), vcov)
8888

8989
# Compute weights
9090
sqrtw = Ones{Float64}(sum(esample))

0 commit comments

Comments
 (0)