Description Usage Arguments Details Value Examples
View source: R/coin_multivariate.R
Calculates Cronbach's alpha, a measure of statistical reliability. Cronbach's alpha is a simple measure of "consistency" of a data set, where a high value implies higher reliability/consistency.
1 2 3 4 5 6 7 | getCronbach(
COIN,
dset = "Raw",
icodes = NULL,
aglev = NULL,
use = "pairwise.complete.obs"
)
|
COIN |
A COIN or a data frame containing only numerical columns of data. |
dset |
The data set to check the consistency of. |
icodes |
Indicator codes if a subset of |
aglev |
The aggregation level to take |
use |
Argument to pass to stats::cor to calculate the covariance matrix. Default |
This function simply returns Cronbach's alpha. If you want a lot more details on reliability, the 'psych' package has a much more detailed analysis.
Cronbach alpha as a numerical value.
1 2 3 4 | # build ASEM COIN
ASEM <- assemble(IndData = ASEMIndData, IndMeta = ASEMIndMeta, AggMeta = ASEMAggMeta)
# get Cronbach of indicators in Physical pillar
getCronbach(ASEM, dset = "Raw", icodes = "Physical", aglev = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.