
Last chance! 50% off unlimited learning
Sale ends in
ci
,calculates the confidence interval around mean using t.test
,
but also returns mean, sd, CV (Coefficient of Variation), 2 given Quantiles, min and maxcie(dat, lev=0.95, digits=3, p1=0.05, p2=0.95)
quantile
. DEFAULT: 0.05quantile
. DEFAULT: 0.95ci
, t.test
, summary
yourdata <- c(5:8,3,14)
cie(yourdata) # confidence interval with the default confidence level (95%)
cie(yourdata, lev=0.99)# specified with a different confidence level
cie(yourdata, 0.99, 4) # returns 4 decimal places
cie(yourdata, digits=2)# rounds to 2 decimal places with default level
cie # shows the function itself
Run the code above in your browser using DataLab