DurgaDiff.formula | R Documentation |
Estimates differences between groups in preparation for plotting by
DurgaPlot
. The formula interface allows the value and group
columns to be specified in a formula, which means, for example, that
transformation functions can be applied to columns.
## S3 method for class 'formula'
DurgaDiff(x, data = NULL, id.col, ...)
x |
a formula, such as |
data |
a data.frame (or list) from which the variables in formula should be taken. |
id.col |
Specify for paired data/repeated measures/with-subject
comparisons only. Name or index of ID column for repeated measures/paired
data. Observations for the same individual must have the same ID. For
non-paired data, do not specify an |
... |
Arguments passed on to
|
Applies the formula, x
, and a data set, data
, to construct a
data frame that is then passed, with all remaining arguments, to the function
DurgaDiff.default
.
A DurgaDiff
object, which is a list containing:
group.statistics |
Matrix with a row for each group, columns
are: |
group.differences |
List of |
groups |
Vector of group names |
group.names |
Labels used to identify groups |
effect.type |
Value of |
effect.name |
Name of the effect type; may include formatting such as subscripts |
effect.name.print |
Text-only version of
|
data.col |
Value of |
data.col.name |
Name of the |
group.col |
Value of |
group.col.name |
Name of the |
id.col |
Value of |
paired.data |
|
data |
The input data frame ( |
call |
How this function was called |
A DurgaGroupDiff
object is a boot
object (as returned by
boot
) with added bootci
components (as returned
by boot.ci
) and components identifying the groups used
to estimate the difference. Particularly relevant members are:
t0 |
The observed value of the statistic |
bca[4] |
The lower endpoint of the confidence interval |
bca[5] |
The upper endpoint of the confidence interval |
groups |
The difference is estimated on |
Cumming, G. (2012). Understanding the new statistics : effect sizes, confidence intervals, and meta-analysis (1st ed.). New York: Routledge.
Delacre, M., Lakens, D., Ley, C., Liu, L., & Leys, C. (2021). Why Hedges' g* based on the non-pooled standard deviation should be reported with Welch's t-test. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.31234/osf.io/tu6mp")}
Khan, M. K., & McLean, D. J. (2023). Durga: An R package for effect size estimation and visualisation. bioRxiv, 2023.2002.2006.526960. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1101/2023.02.06.526960")}
Lakens, D. (2013). Calculating and reporting effect sizes to facilitate cumulative science: a practical primer for t-tests and ANOVAs. Frontiers in Psychology, 4. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.3389/fpsyg.2013.00863")}
DurgaDiff.default
, boot
,
boot.ci
, DurgaPlot
d <- DurgaDiff(log(sugar) ~ treatment, insulin, id.col = "id")
print(d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.