rStats.js v1.3.0
    Preparing search index...

    Function cronbachAlpha

    • Cronbach's alpha of a set of items, standardized alpha, Guttman's lambda 6 and the mean inter-item correlation, and alpha with each item dropped. Equivalent to psych::alpha() in R. It gives the total row and alpha.drop$raw_alpha of alpha(x) with its defaults (no missing values, no reversed items).

      As psych, warnings has "Item = had no variance and was deleted but still is counted in the score" for a constant item (an unnamed matrix's column has no name) and "Some items were negatively correlated with the first principal component and probably should be reversed. ..." (with psych's line breaks) where a loading of the first principal component of the correlations is negative. The warnings of the functions psych calls are not included.

      Parameters

      • x: readonly (readonly number[])[]

        An n × k matrix (array of rows): k ≥ 2 items observed on n ≥ 2 subjects.

      Returns CronbachAlphaResult

      cronbachAlpha([[1, 2, 2], [2, 3, 3], [3, 3, 4], [4, 5, 4], [2, 2, 3]]).rawAlpha; // 0.935483870967742