Learn R Programming

missalpha (version 0.2.0)

display_all: Display All Possible Parameter Combinations for Cronbach's Alpha

Description

This function computes and displays all possible combinations of Cronbach's alpha bounds for various parameter settings, including combinations of optimization methods, rough approximation, random sampling, and enumeration.

Usage

display_all(
  scores_mat,
  score_max,
  tol = 0.001,
  num_random = 1000,
  num_opt = 1,
  methods = c("GA", "DEoptim", "nloptr"),
  enum_all = FALSE,
  rough = TRUE
)

Value

A list where each element is a result of the cronbachs_alpha function for a unique parameter combination, including computation time.

Arguments

scores_mat

A matrix where rows represent persons and columns represent tests (or items), providing the performance of a person on a test. NA should be used for missing values.

score_max

An integer indicating the largest possible score of the test.

tol

A numeric value representing the desired accuracy in computing the lower and upper bound of Cronbach's alpha.

num_random

An integer specifying the number of random samples used in estimating the lower and upper bound. Default is 1000.

num_opt

An integer specifying the number of times to run the optimization algorithm. Default is 1.

methods

A character vector specifying the optimization methods to be used (e.g., 'GA', 'DEoptim', 'nloptr'). Default is c('GA').

enum_all

Logical, whether to include enumeration in the parameter combinations. Default is FALSE.

rough

Logical, whether to include rough approximation in the parameter combinations. Default is TRUE.