
Last chance! 50% off unlimited learning
Sale ends in
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)
Dataframe
Variable name. Must be a numerical column.
Variable name. Group results by another variable.
Numeric. Confidence level (0-1).
data.frame mean, standard deviation, counter, upper and lower CIs.
Other Confidence:
ci_lower()
# NOT RUN {
data(dft) # Titanic dataset
ci_var(dft, Fare)
ci_var(dft, Fare, Pclass)
ci_var(dft, Fare, Pclass, conf = 0.99)
# }
Run the code above in your browser using DataLab