column_alpha: column_alpha

View source: R/column_alpha.R

column_alphaR Documentation

column_alpha

Description

Estimates Cronbach's Alpha–an indicator of internal consistency–using only columns that have names that match a pattern. The analysis relies on 'psych::alpha'.

Usage

column_alpha(
  pattern,
  data,
  full = FALSE,
  verbose = FALSE,
  message = TRUE,
  na.rm = TRUE,
  return = "alpha",
  ci = FALSE,
  spround = FALSE
)

column_rij(pattern, data, ...)

column_all(pattern, data, ...)

column_o_h(pattern, data, ...)

column_o_t(pattern, data, ...)

Arguments

pattern

a character string that is used to find the columns of interest. It can be a regular expression.

data

a data frame.

full

if TRUE, the full results of the reliability analysis produced by the 'psych' package is returned. If FALSE, only the raw alpha value is returned.

verbose

specifies whether all column names used should be listed in the message, regardless of length.

message

if TRUE, messages are generated telling the user which columns were used to calculate Cronbach's Alpha.

na.rm

a logical value indicating whether 'NA' values should be removed prior to computation.

return

a string indicating whether column_alpha should return Cronbach's alpha ('"alpha"'), the average correlation between the items ('"rij"'), omega hierarchical ('"o_h"'), omega total ('"o_t"'), or all four ('"all"'). Defaults to '"alpha"'.

ci

a logical value indicating whether Cronbach's alpha should be returned with Feldt et al. (1987) confidence intervals. Defaults to 'FALSE'.

spround

a logical value indicating whether values should be rounded for printing. Defaults to FALSE.

...

additional arguments passed to 'column_alpha'.


camkay/panoply documentation built on Jan. 17, 2025, 6:31 a.m.