Learn R Programming

missalpha (version 0.2.0)

compute_alpha_max: Compute Maximum Possible Alpha Value

Description

This function calculates the maximum possible value of Cronbach's alpha by using a binary search algorithm with optimization methods. The function iteratively narrows the bounds of alpha until the desired tolerance level is reached.

Usage

compute_alpha_max(
  n_item,
  sigma_x_info,
  sigma_y_info,
  score_max = 1,
  alpha_lb = 0,
  alpha_ub = 1,
  tol = 0.001,
  num_try = 1,
  method = "GA",
  ...
)

Value

A numeric value representing the maximum possible Cronbach's alpha.

Arguments

n_item

An integer specifying the number of items (columns) in the score matrix.

sigma_x_info

A list containing the quadratic function information for sigma_x. It should include:

  • A matrix representing the quadratic coefficients for sigma_x.

  • A vector representing the linear coefficients for sigma_x.

  • A scalar constant term for sigma_x.

sigma_y_info

A list containing the quadratic function information for sigma_y. It should include:

  • A matrix representing the quadratic coefficients for sigma_y.

  • A vector representing the linear coefficients for sigma_y.

  • A scalar constant term for sigma_y.

score_max

An integer specifying the largest possible score for any test item. Default is 1.

alpha_lb

A numeric value specifying the lower bound of alpha, usually set to 0.0.

alpha_ub

A numeric value specifying the upper bound of alpha, usually set to 1.0.

tol

A numeric value representing the desired accuracy for narrowing down the bounds between alpha_lb and alpha_ub. Default is 1e-3.

num_try

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

method

A character string specifying the optimization method to be used. Options are 'GA' (Genetic Algorithm), 'DEoptim' (Differential Evolution), and 'nloptr' (Sequential Least Squares Programming). Default is 'GA'.

...

Additional parameters passed to the optimization algorithm.

Details

This function finds the maximum possible Cronbach's alpha by using an iterative binary search algorithm. It evaluates the feasibility of each midpoint value of alpha by solving the corresponding optimization problem with the chosen method.

The optimization methods can be specified via the method parameter, and additional control parameters for the optimization methods can be passed through the ... argument. The function adjusts the upper and lower bounds of alpha until the tolerance criterion is met.

See Also

compute_alpha_min, examine_alpha_bound