Skip to content

Commit

Permalink
Merge pull request #2 from PharmCat/dev
Browse files Browse the repository at this point in the history
update 0.1.2
  • Loading branch information
PharmCat authored Feb 15, 2023
2 parents 1b21862 + 6977b78 commit ae33ebc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "MetidaFreq"
uuid = "bd16ee1e-1b2f-4f89-b253-604a522f8c5f"
authors = ["PharmCat <[email protected]>"]
version = "0.1.1"
version = "0.1.2"

[deps]

Expand Down
2 changes: 1 addition & 1 deletion src/MetidaFreq.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import MetidaBase: AbstractData, AbstractIdData, DataSet, Proportion, PrettyTabl
import HypothesisTests: ChisqTest, MultinomialLRTest, FisherExactTest
import Base: ht_keyindex, size, show, permutedims

export contab, diffci, orci, rrci, confint
export contab, propci, diffci, orci, rrci, confint

export metaprop, metapropfixed, metaproprandom

Expand Down
8 changes: 4 additions & 4 deletions src/confint.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function diffci(x1, n1, x2, n2; level = 0.95, method = :default)
elseif method == :jeffrey
ci_diff_jeffrey(x1, n1, x2, n2, alpha)
else
throw(ArgumentError("unknown ci method=$(method)"))
throw(ArgumentError("unknown ci method=$(method), possible is: :mn, :wald, :waldcc, :nhs, :nhscc, :ac, :ha, :mover, :jeffrey"))
end
end
"""
Expand Down Expand Up @@ -107,7 +107,7 @@ function orci(x1, n1, x2, n2; level = 0.95, method = :default)
elseif method == :mover
ci_or_mover(x1, n1, x2, n2, alpha)
else
throw(ArgumentError("unknown ci method=$(method)"))
throw(ArgumentError("unknown ci method=$(method), possible is: :fm, :woolf, :awoolf, :mover"))
end
end
"""
Expand Down Expand Up @@ -161,7 +161,7 @@ function rrci(x1, n1, x2, n2; level = 0.95, method = :default)
elseif method == :mover
ci_rr_mover(x1, n1, x2, n2, alpha)
else
throw(ArgumentError("unknown ci method=$(method)"))
throw(ArgumentError("unknown ci method=$(method), possible is: :mn, :fm, :cli, :li, :mover"))
end
end
"""
Expand Down Expand Up @@ -232,7 +232,7 @@ function propci(x::Int, n::Int; level = 0.95, method = :default)
elseif method==:jeffrey
fx = ci_prop_jeffrey
else
throw(ArgumentError("unknown method!"))
throw(ArgumentError("unknown ci method=$(method), possible is: :wilson, :wilsoncc, :cp, :blaker, :soc, :arc, :wald, :waldcc, :ac, :jeffrey"))
end
fx(x, n, alpha)
end
Expand Down

0 comments on commit ae33ebc

Please sign in to comment.