For each pair of observations in a dabest object, a desired effect
size can be computed. Currently there are five effect sizes available:
The mean difference, given by mean_diff().
The median difference, given by median_diff().
Cohen's d, given by cohens_d().
Hedges'
g, given by hedges_g().
Cliff's delta, given by
cliffs_delta().
mean_diff(x, ci = 95, reps = 5000, seed = 12345)median_diff(x, ci = 95, reps = 5000, seed = 12345)
cohens_d(x, ci = 95, reps = 5000, seed = 12345)
hedges_g(x, ci = 95, reps = 5000, seed = 12345)
cliffs_delta(x, ci = 95, reps = 5000, seed = 12345)
A dabest_effsize object with 10 elements.
dataThe dataset passed to dabest(), as a
  tibble.
x and yThe columns in data used to plot the x
  and y axes, respectively, as supplied to dabest(). These are
  quoted variables for
  tidy evaluation during the
  computation of effect sizes.
idxThe vector of control-test groupings as initially passed to dabest().
is.pairedWhether or not the experiment consists of paired (aka repeated) observations. Originally supplied to dabest().
id.columnIf is.paired is TRUE, the column in
  data that indicates the pairing of observations. As passed to
  dabest().
effect.sizeThe effect size being computed. One of the
  following: c("mean_diff", "median_diff", "cohens_d", "hedges_g",
  "cliffs_delta").
.data.nameThe variable name of the dataset passed to dabest().
summaryA tibble with a row for the mean or median of
  each group in the x column of data, as indicated in
  idx.
resultA tibble with the following 15 columns:
The name of the control group and test group respectively.
The number of observations in the control group and test group respectively.
The effect size used.
Is the difference paired (TRUE) or not
  (FALSE)?
The effect size of the difference between the two groups.
The variable whose difference is being computed, ie. the
  column supplied to y.
The ci passed to this function.
The lower and upper limits of the Bias Corrected and Accelerated bootstrap confidence interval.
The lower and upper limits of the percentile bootstrap confidence interval.
The vector of bootstrap resamples generated.
A dabest object, generated by the dabest()
function.
float, default 95. The level of the confidence intervals produced.
The default ci = 95 produces 95% CIs.
integer, default 5000. The number of bootstrap resamples that will be generated.
integer, default 12345. This specifies the seed used to set the random number generator. Setting a seed ensures that the bootstrap confidence intervals for the same data will remain stable over separate runs/calls of this function. See set.seed for more details.
Loading data for effect size computation.
Generating estimation plots after effect size computation.
The mathematical definitions and equations used to compute each effect size.
The  effsize  package, which
  is used under the hood to compute Cohen's d, Hedges' g, and
  Cliff's delta.
The  boot()  and  boot.ci() 
  functions from the boot package, which generate the (nonparametric)
  bootstrapped resamples used to compute the confidence intervals.
# Loading data for unpaired (two independent groups) analysis.
petal_widths <- dabest(iris, Species, Petal.Width,
                       idx = c("setosa", "versicolor"),
                       paired = FALSE)
# Compute the mean difference.
mean_diff(petal_widths)
# Plotting the mean differences.
mean_diff(petal_widths) %>% plot()
Run the code above in your browser using DataLab