myci: MATH4753COUR0004::myci()

Description Usage Arguments Value Examples

View source: R/myci.R

Description

myci() creates a 95% confidence interval of the mean given a vector x. This is like a much simplified version of the t.test() function, obviously with much less functionality.

Usage

1
myci(x = c())

Arguments

x

A vector of values which you would like to create a 95% confidence interval of the mean for.

Value

This function returns a vector ci which holds 2 values: ci[1] is the lower bound of the 95% confidence interval of the mean, and ci[2] is the upper bound of the 95% confidence interval of the mean.

Examples

1
2
3
y=c(3,4,5,6,7)
confidence_interval=myci(y)
confidence_interval

pojac3/MATH4753COUR0004 documentation built on Nov. 22, 2020, 10:20 a.m.