From 6977b78c6a2d338f151a58128e628e06e089a3a1 Mon Sep 17 00:00:00 2001 From: PharmCat <13901158+PharmCat@users.noreply.github.com> Date: Wed, 15 Feb 2023 20:34:02 +0300 Subject: [PATCH] update --- Project.toml | 2 +- src/MetidaFreq.jl | 2 +- src/confint.jl | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Project.toml b/Project.toml index 4bad963..f82ea32 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "MetidaFreq" uuid = "bd16ee1e-1b2f-4f89-b253-604a522f8c5f" authors = ["PharmCat "] -version = "0.1.1" +version = "0.1.2" [deps] diff --git a/src/MetidaFreq.jl b/src/MetidaFreq.jl index 03777dd..7c02cdd 100644 --- a/src/MetidaFreq.jl +++ b/src/MetidaFreq.jl @@ -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 diff --git a/src/confint.jl b/src/confint.jl index 593b47b..8d4a6ff 100644 --- a/src/confint.jl +++ b/src/confint.jl @@ -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 """ @@ -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 """ @@ -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 """ @@ -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