22
33# promotion from float vectors to PValues type
44
5- adjust {T<:AbstractFloat, M<:PValueAdjustmentMethod } (pvals:: Vector{T} , method:: M ) = adjust (PValues (pvals), method)
5+ adjust {T<:AbstractFloat, M<:PValueAdjustment } (pvals:: Vector{T} , method:: M ) = adjust (PValues (pvals), method)
66
7- adjust {T<:AbstractFloat, M<:PValueAdjustmentMethod } (pvals:: Vector{T} , n:: Int , method:: M ) = adjust (PValues (pvals), n, method)
7+ adjust {T<:AbstractFloat, M<:PValueAdjustment } (pvals:: Vector{T} , n:: Int , method:: M ) = adjust (PValues (pvals), n, method)
88
99
1010# Bonferroni
1111
12- immutable Bonferroni <: PValueAdjustmentMethod
12+ immutable Bonferroni <: PValueAdjustment
1313end
1414
1515adjust (pvals:: PValues , method:: Bonferroni ) = adjust (pvals, length (pvals), method)
2525
2626# Benjamini-Hochberg
2727
28- immutable BenjaminiHochberg <: PValueAdjustmentMethod
28+ immutable BenjaminiHochberg <: PValueAdjustment
2929end
3030
3131adjust (pvals:: PValues , method:: BenjaminiHochberg ) = adjust (pvals, length (pvals), method)
@@ -49,7 +49,7 @@ bejamini_hochberg_step(p::AbstractFloat, i::Int, k::Int, n::Int) = p * n/(k-i)
4949
5050# Benjamini-Hochberg Adaptive
5151
52- immutable BenjaminiHochbergAdaptive <: PValueAdjustmentMethod
52+ immutable BenjaminiHochbergAdaptive <: PValueAdjustment
5353 pi0estimator:: Pi0Estimator
5454end
5555
6868
6969# Benjamini-Yekutieli
7070
71- immutable BenjaminiYekutieli <: PValueAdjustmentMethod
71+ immutable BenjaminiYekutieli <: PValueAdjustment
7272end
7373
7474adjust (pvals:: PValues , method:: BenjaminiYekutieli ) = adjust (pvals, length (pvals), method)
@@ -92,7 +92,7 @@ benjamini_yekutieli_step(p::AbstractFloat, i::Int, k::Int, n::Int) = p * harmoni
9292
9393# Benjamini-Liu
9494
95- immutable BenjaminiLiu <: PValueAdjustmentMethod
95+ immutable BenjaminiLiu <: PValueAdjustment
9696end
9797
9898adjust (pvals:: PValues , method:: BenjaminiLiu ) = adjust (pvals, length (pvals), method)
121121
122122# Hochberg
123123
124- immutable Hochberg <: PValueAdjustmentMethod
124+ immutable Hochberg <: PValueAdjustment
125125end
126126
127127adjust (pvals:: PValues , method:: Hochberg ) = adjust (pvals, length (pvals), method)
@@ -145,7 +145,7 @@ hochberg_step(p::AbstractFloat, i::Int, k::Int, n::Int) = p * (n-k+i+1)
145145
146146# Holm
147147
148- immutable Holm <: PValueAdjustmentMethod
148+ immutable Holm <: PValueAdjustment
149149end
150150
151151adjust (pvals:: PValues , method:: Holm ) = adjust (pvals, length (pvals), method)
@@ -169,7 +169,7 @@ holm_step(p::AbstractFloat, i::Int, k::Int, n::Int) = p * (n-i+1)
169169
170170# Hommel
171171
172- immutable Hommel <: PValueAdjustmentMethod
172+ immutable Hommel <: PValueAdjustment
173173end
174174
175175adjust (pvals:: PValues , method:: Hommel ) = adjust (pvals, length (pvals), method)
201201
202202# Sidak
203203
204- immutable Sidak <: PValueAdjustmentMethod
204+ immutable Sidak <: PValueAdjustment
205205end
206206
207207adjust (pvals:: PValues , method:: Sidak ) = adjust (pvals, length (pvals), method)
216216
217217# Forward Stop
218218
219- immutable ForwardStop <: PValueAdjustmentMethod
219+ immutable ForwardStop <: PValueAdjustment
220220end
221221
222222adjust (pvals:: PValues , method:: ForwardStop ) = adjust (pvals, length (pvals), method)
0 commit comments