This function calculates the following statistics data within groups: length, mean, median, variance, standard error of the mean, and confidence interval bounds.
calculateGroupSummaryStatistics(x, Group)
Arguments
x: The data to be summarized. This must be a vector of 2 or more numerical values
Group: The categorical data data defining the groups. This must vector of the same length as x containing factors specifying the data groups
Returns
A dataframe comprising the number, mean, variance, standard error and confidence limit bounds of the data in each category