| ct_ci | R Documentation |
Calculates the confidence interval for the mean of a numeric vector using the t-distribution.
ct_ci(x, alpha = 0.05, side = "all")
x |
A numeric vector of data values. |
alpha |
Significance level for the confidence interval. Default is 0.05 (for 95% confidence). |
side |
A character string indicating the type of interval:
|
A numeric vector containing the confidence interval bounds:
If side = "all", returns a vector of length 2: c(lower, upper).
If side = "left" or "right", returns a single numeric value.
x <- c(10, 12, 11, 14, 13, 15)
ct_ci(x)
ct_ci(x, alpha = 0.01)
ct_ci(x, side = "left")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.