Functions from dplyr are used to automate the process of calculating basic summary statistics on a data frame. Returned statistics include mean, standard deviation, standard error, count, and 95 confidence intervals from a normal distribution (summary_stats) and from a t-distribution (summary_stats.t)
summary_stats(data, measure, type)
data | a data frame |
---|---|
measure | a numeric variable. Response variable - summary statistics will be returned for this variable |
type | a string variable. Controls whether a normal or t distribution is used for CI calculation. Defaults to "norm". |
#> #>#>#> #>#>#> #>iris %>% summary_stats(Sepal.Length)#> mean sd n se ci #> 1 5.843333 0.8280661 150 0.06761132 0.1325157