Skip to content

Commit

Permalink
Remove alpha from docstrings (#270)
Browse files Browse the repository at this point in the history
* Remove `alpha` from docstrings

* Update Project.toml
  • Loading branch information
devmotion committed Apr 19, 2022
1 parent c2d4c3a commit be980f3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Project.toml
@@ -1,6 +1,6 @@
name = "HypothesisTests"
uuid = "09f84164-cd44-5f33-b23f-e6b0d136a0d5"
version = "0.10.9"
version = "0.10.10"

[deps]
Combinatorics = "861a8166-3701-5b0c-9a16-15d98fcdc6aa"
Expand Down
8 changes: 4 additions & 4 deletions src/HypothesisTests.jl
Expand Up @@ -39,20 +39,20 @@ check_same_length(x::AbstractVector, y::AbstractVector) = if length(x) != length
end

"""
confint(test::HypothesisTest; alpha = 0.05, tail = :both)
confint(test::HypothesisTest; level = 0.95, tail = :both)
Compute a confidence interval C with coverage 1-`alpha`.
Compute a confidence interval C with coverage `level`.
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.
!!! note
Most of the implemented confidence intervals are *strongly consistent*, that is, the
confidence interval with coverage 1-`alpha` does not contain the test statistic under
confidence interval with coverage `level` does not contain the test statistic under
``h_0`` if and only if the corresponding test rejects the null hypothesis
``h_0: θ = θ_0``:
```math
C (x, 1 − α) = \\{θ : p_θ (x) > α\\},
C (x, level) = \\{θ : p_θ (x) > 1 - level\\},
```
where ``p_θ`` is the [`pvalue`](@ref) of the corresponding test.
"""
Expand Down
2 changes: 1 addition & 1 deletion src/binomial.jl
Expand Up @@ -77,7 +77,7 @@ of the following methods. Possible values for `method` are:
- `:clopper_pearson` (default): Clopper-Pearson interval is based on the binomial
distribution. The empirical coverage is never less than the nominal coverage of
1-`alpha`; it is usually too conservative.
`level`; it is usually too conservative.
- `:wald`: Wald (or normal approximation) interval relies on the standard approximation of
the actual binomial distribution by a normal distribution. Coverage can be erratically
poor for success probabilities close to zero or one.
Expand Down
2 changes: 1 addition & 1 deletion src/power_divergence.jl
Expand Up @@ -44,7 +44,7 @@ default_tail(test::PowerDivergenceTest) = :right
pvalue(x::PowerDivergenceTest; tail=:right) = pvalue(Chisq(x.df),x.stat; tail=tail)

"""
confint(test::PowerDivergenceTest; alpha = 0.05, tail = :both, method = :auto)
confint(test::PowerDivergenceTest; level = 0.95, tail = :both, method = :auto)
Compute a confidence interval with coverage `level` for multinomial proportions using
one of the following methods. Possible values for `method` are:
Expand Down

2 comments on commit be980f3

@devmotion
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/58733

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.10.10 -m "<description of version>" be980f3ca89908cf63e60307287fe9fad02c47ad
git push origin v0.10.10

Please sign in to comment.