sm_ci: Confidence interval

View source: R/sm_ci.R

sm_ciR 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)


smin95/sesplot documentation built on July 2, 2024, 9:35 a.m.