| cramers_v_ci | R Documentation |
Percentile bootstrap for the association strength in a contingency table. The table is expanded back to individual observations, which are resampled jointly. For a 2 by 2 table the statistic equals phi.
cramers_v_ci(tab, R = 2000, conf.level = 0.95, seed = NULL)
tab |
A contingency table (from |
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 the table holds fewer than 3 observations.
bootstrap_ci()
cramers_v_ci(table(mtcars$am, mtcars$cyl), seed = 42)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.