Skip to content

Commit

Permalink
No qualitative significance output in pretty-print (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmorley authored and ararslan committed Mar 29, 2017
1 parent d3597b2 commit 42ab418
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/HypothesisTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,6 @@ function check_alpha(alpha::Float64)
end
end

function significance{T<:Real}(p_val::T)
if p_val > 0.05
"not significant"
elseif p_val < 0.001
"extremely significant"
elseif p_val < 0.01
"very significant"
else
"significant"
end
end

# Pretty-print
function Base.show{T<:HypothesisTest}(io::IO, test::T)
println(io, testname(test))
Expand All @@ -102,7 +90,7 @@ function Base.show{T<:HypothesisTest}(io::IO, test::T)
outcome = if p > 0.05 "fail to reject" else "reject" end
println(io, "Test summary:")
println(io, " outcome with 95% confidence: $outcome h_0")
println(io, " two-sided p-value: $p ($(significance(p)))")
println(io, " two-sided p-value: $p")
println(io)

# further details
Expand Down

0 comments on commit 42ab418

Please sign in to comment.