cronbach_alpha {psycModel} | R Documentation |
Cronbach alpha
Description
Computing the Cronbach alphas for multiple factors.
Usage
cronbach_alpha(
...,
data,
var_name,
group = NULL,
quite = FALSE,
return_result = FALSE
)
Arguments
... |
Items. Group each latent factors using c() with when computing Cronbach alpha for 2+ factors (see example below) |
data |
|
var_name |
character or a vector of characters. The order of |
group |
optional character. Specify this argument for computing Cronbach alpha for group separetely |
quite |
suppress printing output |
return_result |
If it is set to |
Value
a data.frame
object if return_result is TRUE
Examples
cronbach_alpha(
data = lavaan::HolzingerSwineford1939,
var_name = c('Visual','Textual','Speed'),
c(x1,x2,x3), # one way to pass the items of a factor is by wrapping it with c()
x4:x6, # another way to pass the items is use tidyselect syntax
x7:x9)
[Package psycModel version 0.5.0 Index]