Skip to content

Commit 18fa723

Browse files
authored
Update fit.jl
1 parent 16a2478 commit 18fa723

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
@@ -94,8 +94,8 @@ function regife(
9494
## Construict vector y and matrix X
9595
##
9696
##############################################################################
97-
subdf = columntable(df[esample, unique(vcat(vars))])
98-
97+
subdf = Tables.columntable((; (x => disallowmissing(view(df[!, x], esample)) for x in unique(vcat(vars))...))
98+
9999
formula_schema = apply_schema(formula, schema(formula, subdf, contrasts), StatisticalModel)
100100

101101
y = convert(Vector{Float64}, response(formula_schema, subdf))

0 commit comments

Comments
 (0)