getCronbach: Cronbach's alpha

Description Usage Arguments Details Value Examples

View source: R/coin_multivariate.R

Description

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.

Usage

1
2
3
4
5
6
7
getCronbach(
  COIN,
  dset = "Raw",
  icodes = NULL,
  aglev = NULL,
  use = "pairwise.complete.obs"
)

Arguments

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 dset is requested

aglev

The aggregation level to take icodes from (see getIn() for details)

use

Argument to pass to stats::cor to calculate the covariance matrix. Default "pairwise.complete.obs".

Details

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.

Value

Cronbach alpha as a numerical value.

Examples

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)

COINr documentation built on Nov. 30, 2021, 9:06 a.m.