get_reliability: Get reliability estimates of index variables

View source: R/reliability.R

get_reliabilityR Documentation

Get reliability estimates of index variables

Description

Get reliability estimates of index variables created with add_index.

Usage

get_reliability(
  data,
  ...,
  type = "alpha",
  interval.type = NULL,
  bootstrap.samples = NULL,
  conf.level = NULL,
  progress = FALSE
)

Arguments

data

a tibble or a tdcmm model

...

Index variables created with add_index. Leave empty to get reliability estimates for all index variables.

type

Type of reliability estimate. See ci.reliability

interval.type

Type of reliability estimate confidence interval. See ci.reliability

bootstrap.samples

Number of bootstrap samples for CI calculation. See ci.reliability

conf.level

Confidence level for estimate CI. See ci.reliability

progress

Show progress for reliability estimate computation. Useful if using computationally intense computations (e. g., many bootstrapping samples) and many index variables.

Value

a tdcmm model

See Also

add_index() to create index variables

Examples

WoJ %>%
  add_index(ethical_flexibility, ethics_1, ethics_2, ethics_3, ethics_4) %>%
  get_reliability()


joon-e/tidycomm documentation built on Feb. 24, 2024, 8:58 a.m.