ci.calc | R Documentation |
This function calculates the confidence interval (for a given confidence level) for a variable in a given data frame.
ci.calc(df, var1, cl)
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 |
This function returns the mean, lower bound, upper bound, and standard error.
data <- mtcars
ci.calc(data,mpg,95)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.