Skip to content

Commit

Permalink
Merge pull request #167 from floswald/patch-2
Browse files Browse the repository at this point in the history
Update RegressionStatistics.jl
  • Loading branch information
junder873 authored Oct 9, 2024
2 parents 60d6945 + eb72cf6 commit 1f0b3dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/RegressionStatistics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ It is also helpful to maintain consistency by defining the value as `val` within
For example:
```julia
struct YMean <: RegressionTable.AbstractRegressionStatistic
struct YMean <: RegressionTables.AbstractRegressionStatistic
val::Union{Float64, Nothing}
end
YMean(x::RegressionModel) = try
YMean(mean(x.model.rr.y))
catch
YMean(nothing)
end
RegressionTable.label(render::AbstractRenderType, x::Type{YMean}) = "Mean of Y"
RegressionTables.label(render::AbstractRenderType, x::Type{YMean}) = "Mean of Y"
```
"""
abstract type AbstractRegressionStatistic <: AbstractRegressionData end
Expand Down Expand Up @@ -667,4 +667,4 @@ end
value(x::ClusterValue) = x.val

fill_missing(x::AbstractRegressionData) = missing
fill_missing(x::FixedEffectValue) = FixedEffectValue(false)
fill_missing(x::FixedEffectValue) = FixedEffectValue(false)

0 comments on commit 1f0b3dd

Please sign in to comment.