ci_var | R Documentation |
Calculate confidence intervals for a continuous numerical column on a dataframe, given a confidence level. You may also group results using another variable. Tidyverse friendly.
ci_var(df, var, group_var = NULL, conf = 0.95)
df |
Dataframe |
var |
Variable name. Must be a numerical column. |
group_var |
Variable name. Group results by another variable. |
conf |
Numeric. Confidence level (0-1). |
data.frame mean, standard deviation, counter, upper and lower CIs.
Other Confidence:
ci_lower()
data(dft) # Titanic dataset
ci_var(dft, Fare)
ci_var(dft, Fare, Pclass)
ci_var(dft, Fare, Pclass, conf = 0.99)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.