cohenG_ci: Confidence intervals for Cohen's g effect size.
Description
Confidence intervals for Cohen's g effect size.
Usage
cohenG_ci(x, nboot = 100, conf.level = 0.95, conf.type = "norm", ...)
Arguments
x
A two-way contingency table. It must be square.
It can have two or
more levels for each dimension.
nboot
Number of bootstrap samples for computing confidence interval
for the effect size (Default: 100
).
conf.level
Scalar between 0 and 1. If unspecified, the defaults return
95%
lower and upper confidence intervals (0.95
).
conf.type
A vector of character strings representing the type of
intervals required. The value should be any subset of the values "norm"
,
"basic"
, "perc"
, "bca"
. For more, see ?boot::boot.ci
.
Examples
Run this code# NOT RUN {
library(rcompanion)
ggstatsplot:::cohenG_ci(AndersonRainGarden)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab