sm_ci | R Documentation |
This function computes the confidence interval.
sm_ci(data, alpha = 0.05, low = TRUE)
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. |
Prints a double vector that is a single end of the specified confidence interval.
library(smplot2)
set.seed(1)
a <- rnorm(100,1,1)
sm_ci(a)
sm_ci(a, low=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.