ci_chisq_ncp | R Documentation |
This function calculates CIs for the non-centrality parameter (NCP) of the
\chi^2
-distribution. A positive lower (1 - \alpha) \cdot 100\%
-confidence
limit for the NCP goes hand-in-hand with a significant association test at level
\alpha
.
ci_chisq_ncp(
x,
probs = c(0.025, 0.975),
correct = TRUE,
type = c("chi-squared", "bootstrap"),
boot_type = c("bca", "perc", "norm", "basic"),
R = 9999L,
seed = NULL,
...
)
x |
The result of |
probs |
Lower and upper probabilities, by default |
correct |
Should Yates continuity correction be applied to the 2x2 case? The
default is |
type |
Type of CI. One of "chi-squared" (default) or "bootstrap". |
boot_type |
Type of bootstrap CI. Only used for |
R |
The number of bootstrap resamples. Only used for |
seed |
An integer random seed. Only used for |
... |
Further arguments passed to |
By default, CIs are computed by Chi-squared test inversion. This can be unreliable for very large test statistics. The default bootstrap type is "bca".
An object of class "cint", see ci_mean()
for details.
Smithson, M. (2003). Confidence intervals. Series: Quantitative Applications in the Social Sciences. New York, NY: Sage Publications.
ci_cramersv()
ci_chisq_ncp(mtcars[c("am", "vs")])
ci_chisq_ncp(mtcars[c("am", "vs")], type = "bootstrap", R = 999) # Use larger R
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.