View source: R/correlation_measures.R
prec_cronb | R Documentation |
prec_cronb
returns the sample size or the precision for the given
Cronbach's alpha.
prec_cronb(k, calpha, n = NULL, conf.level = 0.95, conf.width = NULL)
k |
number of measurements/items. |
calpha |
desired Cronbach's alpha. |
n |
sample size. |
conf.level |
confidence level. |
conf.width |
precision (the full width of the confidence interval). |
Exactly one of the parameters n
or conf.width
must be passed as NULL,
and that parameter is determined from the other.
Sample size or precision is calculated according to the formula & code and provided in Bonett and Wright (2014).
n is rounded up to the next whole number using ceiling
.
Object of class "presize", a list of arguments (including the computed one) augmented with method and note elements.
Bonett, D. G. and Wright, T. A. (2015) Cronbach's alpha reliability: Interval estimation, hypothesis testing, and sample size planning J. Organiz. Behav., 36, pages 3– 15. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1002/job.1960")}. # k= number of items
# calculate confidence interval width...
prec_cronb (k=5,calpha=0.7,n= 349,conf.level= 0.95, conf.width= NULL)
# calculate N required for a given confidence interval width...
prec_cronb (k=5,calpha=0.7,n= NULL,conf.level= 0.95, conf.width= 0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.