ci.calc {vannstats} | R Documentation |
Simplified Confidence Interval Calculation
Description
This function calculates the confidence interval (for a given confidence level) for a variable in a given data frame.
Usage
ci.calc(df, var1, cl)
Arguments
df |
data frame to read in. |
var1 |
the variable of interest for which the CI will be calculated. |
cl |
the desired confidence level (in percentages, ranging from |
Value
This function returns the mean, lower bound, upper bound, and standard error.
Examples
data <- mtcars
ci.calc(data,mpg,95)
[Package vannstats version 1.3.4.14 Index]