You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Z =convert(Matrix{Float64}, modelmatrix(formula_iv_schema, subdf))
184
+
_Z_ =modelmatrix(formula_iv_schema, subdf)
185
+
186
+
# for a Vector{Float64}, convert(Vector{Float64}, y) aliases y
187
+
Xendo =convert(Matrix{Float64}, _Xendo_)
188
+
all(isfinite, Xendo) ||throw("Some observations for the endogenous variables are infinite")
189
+
190
+
Z =convert(Matrix{Float64}, _Z_)
187
191
all(isfinite, Z) ||throw("Some observations for the instrumental variables are infinite")
188
192
189
193
# modify formula to use in predict
190
194
formula_schema =FormulaTerm(formula_schema.lhs, (tuple(eachterm(formula_schema.rhs)..., (term for term ineachterm(formula_endo_schema.rhs) if term !=ConstantTerm(0))...)))
191
195
end
192
196
197
+
# for a Vector{Float64}, convert(Vector{Float64}, y) aliases y
198
+
y =convert(Vector{Float64}, _y_)
199
+
all(isfinite, y) ||throw("Some observations for the dependent variable are infinite")
200
+
201
+
Xexo =convert(Matrix{Float64}, _Xexo_)
202
+
all(isfinite, Xexo) ||throw("Some observations for the exogeneous variables are infinite")
0 commit comments