| srh.effsize | R Documentation |
Extends rcompanion::scheirerRayHare() by adding popular
rank-based effect sizes for each SRH term: eta^2_H and epsilon^2_H,
and stores the original function call.
srh.effsize(formula, data, clamp0 = TRUE, ...)
formula |
A formula of the form |
data |
A |
clamp0 |
Logical; if |
... |
Passed to |
Let H be the SRH H-statistic for a given term, n the sample size
used by SRH (complete cases on y and factors), and k the number
of groups compared by that term (for interactions, the number of
observed combinations).
Effect sizes computed:
Eta^2_H: (H - k + 1) / (n - k).
Epsilon^2_H (KW-like): H * (n + 1) / (n^2 - 1).
The original call is stored as an attribute and can be retrieved with
getCall().
A data.frame (classed as c("srh_with_call","anova","data.frame"))
with the SRH table extended by columns:
k, n, eta2H, eps2H.
data(mimicry, package = "factorH")
res <- srh.effsize(liking ~ gender + condition, data = mimicry)
res
getCall(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.