Generate the grouped data for simulation studies.
gendata(
seed = 1,
T = 50,
N = rep(30, 5),
r0 = 2,
r = rep(2, 5),
Phi_G = 0.5,
Phi_F = 0.5,
Phi_e = 0.5,
W_F = 0.5,
beta = 0.2,
kappa = 1,
case = 1
)An object of class "GFD" containing:
A list of the generated data matrices.
The global factors matrix.
A list of the local factors.
A list of the global factor loadings.
A list of the local factor loadings.
The number of time points.
The vector of variables per group.
The number of groups.
The number of global factors.
The vector of local factors.
The generation case used.
The seed used in set.seed. Default is 1.
The number of time points. Default is 50.
A vector representing the number of variables in each group. Default is rep(30, 5).
The number of global factors. Default is 2.
A vector representing the number of the local factors. Notice, the length of \(r\) is the same as the length of \(N\) (which implies the number of groups \(M\)). Default is rep(2, 5).
Hyperparameter of the global factors (AR(1) coefficient). Default is 0.5. The value should be between 0 and 1.
Hyperparameter of the local factors (AR(1) coefficient). Default is 0.5. The value should be between 0 and 1.
Hyperparameter of the errors. Default is 0.5. The value should be between 0 and 1.
Hyperparameter of the correlation of local factors. Only applicable when case = 3. The value should be between 0 and 1. Default is 0.5.
Hyperparameter of the errors (spatial correlation). Default is 0.2.
Hyperparameter of signal to noise ratio. Default is 1.
The case of the data-generating process. Default is 1. It can also be 2 or 3.
Aggregated Projection Method: A New Approach for Group Factor Model. Jiaqi Hu, Ting Li, Xueqin Wang (2025). Journal of the American Statistical Association, doi:10.1080/01621459.2025.2491154