Learn R Programming

smplot2 (version 0.2.5)

sm_ci: Confidence interval

Description

This function computes the confidence interval.

Usage

sm_ci(data, alpha = 0.05, low = TRUE)

Value

Prints a double vector that is a single end of the specified confidence interval.

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.

Examples

Run this code
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