Skip to content

Commit

Permalink
Fix deprecations (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
femtocleaner[bot] authored and ararslan committed Aug 17, 2017
1 parent da5d8a5 commit 152868c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/binomial.jl
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ Compute a confidence interval C with coverage 1-alpha.
If tail is :both (default), then a two-sided confidence interval is returned. If tail is :left or :right, then a one-sided confidence interval is returned
"""
@compat function StatsBase.confint(x::SignTest, alpha::Float64=0.05; tail=:both)
function StatsBase.confint(x::SignTest, alpha::Float64=0.05; tail=:both)
check_alpha(alpha)

if tail == :left
Expand Down
11 changes: 2 additions & 9 deletions src/fisher.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,8 @@ population_param_of_interest(x::FisherExactTest) = ("Odds ratio", 1.0, x.ω) # p
default_tail(test::FisherExactTest) = :both

# The sizing argument to print_matrix was removed during the 0.5 dev period
if VERSION < v"0.5.0-dev+1936"
function _print_matrix(io::IO, X::AbstractVecOrMat, pre::AbstractString)
m = typemax(Int)
Base.print_matrix(io, X, (m, m), pre)
end
else
function _print_matrix(io::IO, X::AbstractVecOrMat, pre::AbstractString)
Base.print_matrix(io, X, pre)
end
function _print_matrix(io::IO, X::AbstractVecOrMat, pre::AbstractString)
Base.print_matrix(io, X, pre)
end

function show_params(io::IO, x::FisherExactTest, ident="")
Expand Down

0 comments on commit 152868c

Please sign in to comment.