1
function StatsModels.ModelFrame(f::StatsModels.Formula, d; kwargs...)
2 0
    TableTraits.isiterabletable(d) || error()
3 0
    StatsModels.ModelFrame(f, DataFrames.DataFrame(d); kwargs...)
4
end
5

6
function StatsModels.StatsBase.fit(::Type{T}, f::StatsModels.Formula, d, args...; contrasts::Dict = Dict(), kwargs...) where
7
                       T<:Union{ StatsModels.StatsBase.StatisticalModel,  StatsModels.StatsBase.RegressionModel}
8 0
    TableTraits.isiterabletable(d) || error()
9 0
    StatsModels.StatsBase.fit(T, f, DataFrames.DataFrame(d), args...; contrasts = contrasts, kwargs...)
10
end

Read our documentation on viewing source code .

Loading