| cohens_d_ci | R Documentation |
Percentile bootstrap for the standardised mean difference between two independent groups. Each resample draws within each group, preserving the group sizes.
cohens_d_ci(x, y, R = 2000, conf.level = 0.95, seed = NULL)
x, y |
Numeric vectors, one per group. |
R |
Integer. Number of bootstrap resamples. Defaults to 2000. |
conf.level |
Confidence level. Defaults to 0.95. |
seed |
Integer or NULL. When supplied, sets the random seed. |
A named numeric vector: estimate, lower, upper. The bounds
are NA when either group has fewer than 3 finite values.
bootstrap_ci()
cohens_d_ci(mtcars$mpg[mtcars$am == 1], mtcars$mpg[mtcars$am == 0],
seed = 42)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.