sm_ci {smplot2} | R Documentation |
Confidence interval
Description
This function computes the confidence interval.
Usage
sm_ci(data, alpha = 0.05, low = TRUE)
Arguments
data |
Numerical vector of data |
alpha |
Default is set to 0.05, so that 95% confidence interval is computed. |
low |
If its TRUE, it will compute the low tail of the confidence interval. If its FALSE, it will compute the high tail of the confidence interval. |
Value
Prints a double vector that is a single end of the specified confidence interval.
Examples
library(smplot2)
set.seed(1)
a <- rnorm(100,1,1)
sm_ci(a)
sm_ci(a, low=FALSE)
[Package smplot2 version 0.2.4 Index]