From 9c1f487c233c0c79b68d4a2dab9dea1ea3cb2005 Mon Sep 17 00:00:00 2001 From: Milan Bouchet-Valat Date: Tue, 4 Jun 2024 22:58:23 +0200 Subject: [PATCH] Fix typo in `HotellingT2Test` name (#318) Introduced by #158. --- src/hotelling.jl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/hotelling.jl b/src/hotelling.jl index 384eacac..99c93ee2 100644 --- a/src/hotelling.jl +++ b/src/hotelling.jl @@ -2,12 +2,12 @@ export OneSampleHotellingT2Test, EqualCovHotellingT2Test, UnequalCovHotellingT2Test -abstract type HotellingT2TestTest <: HypothesisTest end +abstract type HotellingT2Test <: HypothesisTest end -default_tail(::HotellingT2TestTest) = :right -StatsAPI.pvalue(T::HotellingT2TestTest; tail=:right) = pvalue(FDist(dof(T)...), T.F, tail=tail) +default_tail(::HotellingT2Test) = :right +StatsAPI.pvalue(T::HotellingT2Test; tail=:right) = pvalue(FDist(dof(T)...), T.F, tail=tail) -function show_params(io::IO, T::HotellingT2TestTest, indent="") +function show_params(io::IO, T::HotellingT2Test, indent="") println(io, indent, "number of observations: ", nobs(T)) println(io, indent, "number of variables: ", T.p) println(io, indent, "T² statistic: ", T.T²) @@ -32,7 +32,7 @@ At_Binv_A(A::AbstractArray, B::AbstractArray) = A'*(B \ A) ## One sample -struct OneSampleHotellingT2Test <: HotellingT2TestTest +struct OneSampleHotellingT2Test <: HotellingT2Test T²::Real F::Real n::Int @@ -86,7 +86,7 @@ population_param_of_interest(T::OneSampleHotellingT2Test) = ("Mean vector", T.μ ## Two sample: equal covariance -struct EqualCovHotellingT2Test <: HotellingT2TestTest +struct EqualCovHotellingT2Test <: HotellingT2Test T²::Real F::Real nx::Int @@ -124,7 +124,7 @@ population_param_of_interest(T::EqualCovHotellingT2Test) = # Store the denominator degrees of freedom in the type, since the computation # is expensive and we don't want to redo it every time the user calls dof -struct UnequalCovHotellingT2Test <: HotellingT2TestTest +struct UnequalCovHotellingT2Test <: HotellingT2Test T²::Real F::Real nx::Int