diff --git a/src/StatsAPI.jl b/src/StatsAPI.jl index eef2fdf..0c8f3dd 100644 --- a/src/StatsAPI.jl +++ b/src/StatsAPI.jl @@ -37,8 +37,8 @@ function pairwise! end Abstract supertype for all statistical hypothesis tests. Subtypes must implement [`pvalue`](@ref) at a minimum and may also -implement functions such as [`confint`](@ref), [`nobs`](@ref), and -[`dof`](@ref) as appropriate. +implement functions such as [`teststatistic`](@ref), [`confint`](@ref), +[`nobs`](@ref), and [`dof`](@ref) as appropriate. """ abstract type HypothesisTest end @@ -49,4 +49,11 @@ Compute the p-value for a given significance test. """ function pvalue end +""" + teststatistic(test) + +Return the test statistic for a given hypothesis test. +""" +function teststatistic end + end # module