T-test with a confidence other than 0.95 using HypothesisTests.jl

When I call the following example, I get a beautiful report, but with a confidence of 95%:

julia> OneSampleTTest([1,2,3], 2)
One sample t-test
-----------------
Population details:
    parameter of interest:   Mean
    value under h_0:         2
    point estimate:          2.0
    95% confidence interval: (-0.48413771175033027,4.48413771175033)

Test summary:
    outcome with 95% confidence: fail to reject h_0
    two-sided p-value:           1.0 (not significant)

Details:
    number of observations:   3
    t-statistic:              0.0
    degrees of freedom:       2
    empirical standard error: 0.5773502691896258

I would like to receive a similar report, but for confidence, equal to 99%.

The docs claim to OneSampleTestimplement a method confintthat receives a parameter alpha, but it does not give me a full report, as shown above.

+4
source share

Source: https://habr.com/ru/post/1657322/


All Articles