Skip to content
This repository has been archived by the owner on Oct 3, 2021. It is now read-only.

Commit

Permalink
Remove Hommel
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkschumacher committed Sep 28, 2014
1 parent 32dcaf1 commit 99dd19a
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 19 deletions.
11 changes: 0 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,6 @@ julia > padjust(pValues, method = :holm)
0.5
```

#### Hommel
```jl
julia > pValues = [0.05, 0.03, 0.01, 0.5]
julia > padjust(pValues, method = :hommel)
4-element Array{Float64,1}:
0.1
0.075
0.04
0.5
```

### Control the false discovery rate ([FDR](http://en.wikipedia.org/wiki/False_discovery_rate))
#### Benjamini-Hochberg
```jl
Expand Down
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1 +1 @@
julia 0.2-
julia 0.3-
2 changes: 0 additions & 2 deletions src/PValueAdjust.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ module PValueAdjust
export BenjaminiYekutieli
export Hochberg
export Holm
export Hommel
export padjust

include("types.jl")
Expand All @@ -14,7 +13,6 @@ module PValueAdjust
include("benjaminiHochberg.jl")
include("hochberg.jl")
include("holm.jl")
include("hommel.jl")
include("benjaminiYekutieli.jl")
include("padjust.jl")

Expand Down
1 change: 0 additions & 1 deletion src/padjust.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ padjust(pValues::AbstractArray, method::BenjaminiHochbergMethod) = benjaminiHoch
padjust(pValues::AbstractArray, method::BenjaminiYekutieliMethod) = benjaminiYekutieli(pValues)
padjust(pValues::AbstractArray, method::HochbergMethod) = hochberg(pValues)
padjust(pValues::AbstractArray, method::HolmMethod) = holm(pValues)
padjust(pValues::AbstractArray, method::HommelMethod) = hommel(pValues)

function padjust(pValues::AbstractArray)
@check_pValues pValues
Expand Down
4 changes: 1 addition & 3 deletions src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ immutable BenjaminiHochbergMethod <: CorrectionMethod end
immutable BenjaminiYekutieliMethod <: CorrectionMethod end
immutable HochbergMethod <: CorrectionMethod end
immutable HolmMethod <: CorrectionMethod end
immutable HommelMethod <: CorrectionMethod end

# some constants
Bonferroni = BonferroniMethod()
BenjaminiHochberg = BenjaminiHochbergMethod()
BenjaminiYekutieli = BenjaminiYekutieliMethod()
Hochberg = HochbergMethod()
Holm = HolmMethod()
Hommel = HommelMethod()
Holm = HolmMethod()
1 change: 0 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
tests = [
"bonferroni",
"holm",
"hommel",
"hochberg",
"benjaminiHochberg",
"benjaminiYekutieli",
Expand Down

0 comments on commit 99dd19a

Please sign in to comment.