powered by
This function computes the confidence interval.
sm_ci(data, alpha = 0.05, low = TRUE)
Prints a double vector that is a single end of the specified confidence interval.
Numerical vector of data
Default is set to 0.05, so that 95% confidence interval is computed.
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.
library(smplot2) set.seed(1) a <- rnorm(100,1,1) sm_ci(a) sm_ci(a, low=FALSE)
Run the code above in your browser using DataLab