umx_scale_reliabilities: Accumulate scale reliabilities and report them as a table

umx_scale_reliabilitiesR Documentation

Accumulate scale reliabilities and report them as a table

Description

umx_score_scale() with alpha = TRUE prints reliability coefficients. umx_scale_reliabilities() collects these across scales, then reports them together.

Usage

umx_scale_reliabilities(
  action = "show",
  scale_name = NULL,
  reliability = NULL,
  type = NULL,
  report = c("markdown", "html"),
  digits = 2
)

Arguments

action

One of "init" (start or clear the store), "add" (append one row), or "show" (print and return the table). "print" is accepted as an alias of "show". Default "show".

scale_name

Name of the scale (single string, required when action = "add").

reliability

Reliability value (single numeric, required when action = "add").

type

Type of reliability. When action = "add", a single string (required), e.g. "alpha", "omega_t", or "omega_h". When action = "show", an optional filter: one or more types to report (NULL, the default, reports all rows).

report

Format for the printed table: "markdown" or "html".

digits

Decimal places for the printed table (default 2). Display only: stored values keep full precision.

Details

To use, call with "init", score your scales, then call with "show".

Value

  • invisible data.frame with columns scale, reliability, and type

See Also

Other Get and set: umx, umx_detect_cores(), umx_get_checkpoint(), umx_get_options(), umx_set_auto_plot(), umx_set_auto_run(), umx_set_checkpoint(), umx_set_condensed_slots(), umx_set_cores(), umx_set_data_variance_check(), umx_set_dollar_symbol(), umx_set_optimization_options(), umx_set_optimizer(), umx_set_plot_file_suffix(), umx_set_plot_format(), umx_set_separator(), umx_set_silent(), umx_set_table_format()

Examples

umx_scale_reliabilities("init") # start with an empty store
umx_scale_reliabilities("add", scale_name = "Agreeableness", reliability = 0.72, type = "alpha")
umx_scale_reliabilities("add", scale_name = "Agreeableness", reliability = 0.75, type = "omega_t")
umx_scale_reliabilities("show")
umx_scale_reliabilities("show", type = "alpha") # just the alphas
umx_scale_reliabilities("init") # clear the store
## Not run: 
data(bfi, package = "psychTools")
umx_scale_reliabilities("init")
bfi = umx_score_scale("A", pos = 2:5, rev = 1, max = 6, data = bfi, name = "A", alpha = TRUE)
umx_scale_reliabilities("show")

## End(Not run)

umx documentation built on Oct. 11, 2026, 5:07 p.m.