| effect_size {dabestr} | R Documentation |
Calculating effect sizes
Description
Computes the effect size for each control-test group pairing in idx.
The resampling bootstrap distribution of the effect size is then subjected
to Bias-corrected and accelerated bootstrap (BCa) correction.
The following effect sizes mean_diff, median_diff, cohens_d, hedges_g and cliffs_delta
are used for most plot types.
Usage
mean_diff(dabest_obj, perm_count = 5000)
median_diff(dabest_obj, perm_count = 5000)
cohens_d(dabest_obj, perm_count = 5000)
hedges_g(dabest_obj, perm_count = 5000)
cliffs_delta(dabest_obj, perm_count = 5000)
cohens_h(dabest_obj, perm_count = 5000)
Arguments
dabest_obj |
A dabest_obj created by loading in dataset along with other
specified parameters with the |
perm_count |
The number of reshuffles of control and test labels to be performed for each p-value. |
Details
The plot types listed under here are limited to use only the following effect sizes.
Proportion plots offers only
mean_diffandcohens_h.Mini-Meta Delta plots offers only
mean_diff.
The other plots are able to use all given basic effect sizes as listed in the Description.
Value
Returns a dabest_effectsize_obj list with 22 elements. The following are the elements contained within:
-
raw_dataThe tidy dataset passed toload()that was cleaned and altered for plotting. -
idxThe list of control-test groupings as initially passed toload(). -
delta_x_labelsVector containing labels for the x-axis of the delta plot. -
delta_y_labelsString label for the y-axis of the delta plot. -
NsList of labels for x-axis of the raw plot. -
raw_y_labelsVector containing labels for the y-axis of the raw plot. -
is_pairedBoolean value determining if it is a paired plot. -
is_colourBoolean value determining if there is a colour column for the plot. -
pairedPaired ("sequential" or "baseline") as initially passed toload(). -
resamplesThe number of resamples to be used to generate the effect size bootstraps. -
control_summaryNumeric value for plotting of control summary lines for float_contrast =TRUE. -
test_summaryNumeric value for plotting of control summary lines for float_contrast =TRUE. -
ylimVector containing the y limits for the raw plot. -
enquo_xQuosure of x as initially passed toload(). -
enquo_yQuosure of y as initially passed toload(). -
enquo_id_colQuosure of id_col as initially passed toload(). -
enquo_colourQuosure of colour as initially passed toload(). -
proportionalBoolean value as initially passed toload(). -
minimetaBoolean value as initially passed toload(). -
deltaBoolean value as initially passed toload(). -
proportional_dataList of calculations related to the plotting of proportion plots. -
boot_resultList containing values related to the calculation of the effect sizes, bootstrapping and BCa correction. -
baseline_ec_boot_resultList containing values related to the calculation of the effect sizes, bootstrapping and BCa correction for the baseline error curve. -
permtest_pvalsList containing values related to the calculations of permutation t tests and the corresponding p values, and p values for different types of effect sizes and different statistical tests.
Examples
# Loading of the dataset
data(non_proportional_data)
# Applying effect size to the dabest object
dabest_obj <- load(non_proportional_data,
x = Group, y = Measurement,
idx = c("Control 1", "Test 1")
)
dabest_obj.mean_diff <- mean_diff(dabest_obj)
# Printing dabest effectsize object
print(dabest_obj.mean_diff)