Brukar Wilson-intervallet, som anbefalt i «Binomial confidence intervals and contingency tests: mathematical fundamentals and the evaluation of alternative methods», av Sean Wallis, University College London.
Usage
regn_konfint_bin(x, n, konf_niva = 0.95, alfa = lifecycle::deprecated())Value
Returnerer en tibble med nedre og øvre grense for et Wilson-konfidensintervall på angitt nivå.
Examples
n_forsok = 1000
n_suksess = sample.int(n_forsok, 1)
regn_konfint_bin(n_suksess, n_forsok)
#> # A tibble: 1 × 2
#> lower upper
#> <dbl> <dbl>
#> 1 0.645 0.703