# NOT RUN {
# Basic example using a built-in dataframe as data;
# by default, the mean is computed and the error bar are 95% confidence intervals
# (it also produces a $rawData dataframe, not shown here)
res <- superbData(ToothGrowth, BSFactors = c("dose", "supp"),
variables = "len")
res$summaryStatistics
# Example introducing adjustments for pairwise comparisons
# and assuming that the whole population is limited to 200 persons
res <- superbData(ToothGrowth, BSFactors = c("dose", "supp"),
variables = "len",
statistic = "median", errorbar = "CI", gamma = .80,
adjustments = list( purpose = "difference", popSize = 200) )
res$summaryStatistics
# }
Run the code above in your browser using DataLab