We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
!==
1 parent ce87119 commit 2a2661eCopy full SHA for 2a2661e
src/partial_out.jl
@@ -45,9 +45,9 @@ function partial_out(
45
f = FormulaTerm(f.lhs, tuple(ConstantTerm(1), eachterm(f.rhs)...))
46
end
47
formula, formula_endo, formula_iv = parse_iv(f)
48
- has_iv = formula_iv != nothing
+ has_iv = formula_iv !== nothing
49
has_iv && throw("partial_out does not support instrumental variables")
50
- has_weights = weights != nothing
+ has_weights = weights !== nothing
51
52
53
# create a dataframe without missing values & negative weights
@@ -148,4 +148,4 @@ function partial_out(
148
149
150
return out, esample, iterations, convergeds
151
-end
+end
0 commit comments