@@ -37,7 +37,7 @@ function estimate_pi0{T<:AbstractFloat}(pValues::PValues{T}, pi0estimator::Store
3737 storey_pi0 (pValues, pi0estimator. λ)
3838end
3939
40- function storey_pi0 {T<:AbstractFloat} (pValues:: AbstractVector{T} , lambda:: T )
40+ function storey_pi0 {T<:AbstractFloat} (pValues:: AbstractVector{T} , lambda:: AbstractFloat )
4141 pi0 = (sum (pValues .>= lambda) / length (pValues)) / (1. - lambda)
4242 pi0 = min (pi0, 1. )
4343 return pi0
@@ -170,7 +170,7 @@ function estimate_pi0{T<:AbstractFloat}(pValues::PValues{T}, pi0estimator::TwoSt
170170 twostep_pi0 (pValues, pi0estimator. α, pi0estimator. method)
171171end
172172
173- function twostep_pi0 {T<:AbstractFloat} (pValues:: AbstractVector{T} , alpha:: T , method:: PValueAdjustmentMethod )
173+ function twostep_pi0 {T<:AbstractFloat} (pValues:: AbstractVector{T} , alpha:: AbstractFloat , method:: PValueAdjustmentMethod )
174174 padj = adjust (pValues, method)
175175 pi0 = sum (padj .>= (alpha/ (1 + alpha))) / length (padj)
176176 return (pi0)
@@ -261,8 +261,9 @@ function estimate_pi0(pi0fit::CensoredBUMFit)
261261 return π0
262262end
263263
264- function cbum_pi0 {T<:AbstractFloat} (pValues:: AbstractVector{T} , γ0:: T = 0.5 , λ:: T = 0.05 ,
265- xtol:: T = 1e-6 , maxiter:: Int = 10000 )
264+ function cbum_pi0 {T<:AbstractFloat} (pValues:: AbstractVector{T} ,
265+ γ0:: AbstractFloat = 0.5 , λ:: AbstractFloat = 0.05 ,
266+ xtol:: AbstractFloat = 1e-6 , maxiter:: Int = 10000 )
266267 n = length (pValues)
267268 idx_right = pValues .>= λ
268269 n2 = sum (idx_right)
@@ -297,8 +298,9 @@ function cbum_pi0{T<:AbstractFloat}(pValues::AbstractVector{T}, γ0::T = 0.5, λ
297298 return NaN , [γ, α], false
298299end
299300
300- function cbum_pi0_naive {T<:AbstractFloat} (pValues:: AbstractVector{T} , γ0:: T = 0.5 , λ:: T = 0.05 ,
301- xtol:: T = 1e-6 , maxiter:: Int = 10000 )
301+ function cbum_pi0_naive {T<:AbstractFloat} (pValues:: AbstractVector{T} ,
302+ γ0:: AbstractFloat = 0.5 , λ:: AbstractFloat = 0.05 ,
303+ xtol:: AbstractFloat = 1e-6 , maxiter:: Int = 10000 )
302304 n = length (pValues)
303305 z = fill (1 - γ0, n)
304306 idx_left = pValues .< λ
0 commit comments