M3.als | R Documentation |
Estimating the latent factors using Alternating Least Square (ALS) algorithm based on third-order multi-cumulant.
M3.als(X, scale = FALSE, gamma = NULL, rh, rg, eps = 10^-8, ...)
X |
A matrix or data frame with t rows (samples) and n columns (variables). |
scale |
logical. If |
gamma |
A weighted vector, default to (0,1). |
rh |
The number of non-Gaussian factors. |
rg |
The number of Gaussian factors. |
eps |
The iteration error, default to 10^-8. |
... |
Any other parameters. |
Estimated factors, factor loadings and errors.
n = 100
t = 200
k = 2
par_f = list(rep(1,k),rep(0.8,k),rep(1,k),rep(Inf,k))
par_e = list(1,0,2,Inf)
rho_f = c(0.5,0.2)
par_cove = list(beta = 0.2,J = n/10,rho = 0.2,msig_e = c(1,5))
data = hofa.DGP2(n,t,k,par_f,par_e,par_cove,rho_f)$X
M3.als(data,rh = 1, rg = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.