powered by
Generates one synthetic data set, estimates loadings with the GUL, and evaluates estimation accuracy.
gul_simulation(n, p, m, g_fun)
Named numeric vector with components error_F : Frobenius norm ||hat(Ag) - Ag||_F
Integer: sample size.
Integer: number of observed variables.
Integer: number of latent factors (both layers).
Function: element-wise, smooth transformation applied to the latent factors (e.g. `tanh`, `sin`).
gul_simulation(200, 50, 5, g_fun = tanh)
Run the code above in your browser using DataLab