Package ci is an educational package providing intuitive functions for
calculating confidence intervals (CI) for various statistical
parameters. Designed primarily for teaching and learning about
statistical inference (particularly confidence intervals). Offers
user-friendly wrappers around established methods for proportions,
means, and bootstrap-based intervals. Integrates seamlessly with
Tidyverse workflows, making it ideal for classroom demonstrations and
student exercises.
Report bugs, issues, and desired improvements at https://github.com/GegznaV/ci/issues.
Installation from a CRAN:
install.packages("ci")Install from GitHub:
if (!require(remotes)) install.packages("remotes")
remotes::install_github("GegznaV/ci", dependencies = TRUE)Note! To install from GitHub on Windows, you need the RTools.
ci::ci_binom(x = 20, n = 101)Or:
library(ci)
ci_binom(x = 20, n = 101)library(tidyverse)
library(ci)
data(npk, package = "datasets")
head(npk)
npk |>
group_by(N, P, K) |>
ci_mean_t(yield)