| gendata | R Documentation |
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
)
seed |
The seed used in |
T |
The number of time points. Default is 50. |
N |
A vector representing the number of variables in each group. Default is |
r0 |
The number of global factors. Default is 2. |
r |
A vector representing the number of the local factors. Notice, the length of |
Phi_G |
Hyperparameter of the global factors (AR(1) coefficient). Default is 0.5. The value should be between 0 and 1. |
Phi_F |
Hyperparameter of the local factors (AR(1) coefficient). Default is 0.5. The value should be between 0 and 1. |
Phi_e |
Hyperparameter of the errors. Default is 0.5. The value should be between 0 and 1. |
W_F |
Hyperparameter of the correlation of local factors. Only applicable when |
beta |
Hyperparameter of the errors (spatial correlation). Default is 0.2. |
kappa |
Hyperparameter of signal to noise ratio. Default is 1. |
case |
The case of the data-generating process. Default is 1. It can also be 2 or 3. |
An object of class "GFD" containing:
y |
A list of the generated data matrices. |
G |
The global factors matrix. |
F |
A list of the local factors. |
loading_G |
A list of the global factor loadings. |
loading_F |
A list of the local factor loadings. |
T |
The number of time points. |
N |
The vector of variables per group. |
M |
The number of groups. |
r0 |
The number of global factors. |
r |
The vector of local factors. |
case |
The generation case used. |
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
dat <- gendata()
print(dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.