Description Usage Arguments Value Examples
Calculate the confidence interval or limits of the mean using the t distribution.
1 |
x |
Numeric vector of sample observations. |
alpha |
Numeric scalar denoting significance level, default 0.05. |
keepMean |
Logical scalar indicating if the mean should be returned with the confidence interval/limits, default TRUE. |
limits |
Logical scalar indicating if the limits should be returned (otherwise a single interval is returned), default TRUE. |
prefix |
Character scalar to be used in assigning names to the returned value, default "". |
na.rm |
Logical scalar indicating if missing values should be removed before calculations, default FALSE. |
A named vector of the mean (if keepMean=TRUE
) and the
(1 - alpha
)*100
interval (if limits=FALSE
).
Names are the prefix
concatenated to "mean", "lo", and "hi".
1 | CI(1:10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.