The function performing the Alternating Least Square (ALS) Algorithm.
ALS(DATA, n_R, family, opt = opt, max_ite = max_ite, tol = tol)A list. See tensorReg2D.
A list. The input data. DATA$y is the dependent variable.
DATA$X is the 3-D tensor independent variables.
DATA$W is other independent variables.
A numerical constant. A predefined value determines the rank of the approximate matrix
Family of generalized linear model. Provide three options for model.(see more details in Details)
Optimization options. Provide two options for optimization stopping criterion. opt = 1 or 2. (see more details in Details)
Maximum iteration. The value of maximum iterations for the algorithm.
Tolerance. The value of tolerance with respect to optimization.