Generate panel data Y for simulations.
generate_Y(
NN,
TT,
k_true,
kg_true,
g_true,
beta_true,
lambda_group_true,
factor_group_true,
lambda_true,
comfactor_true,
eps,
X
)NN x TT matrix
number of time series
length of time series
true number of common factors
Vector of length the number of groups. Each element contains the true number of group factors for that group.
vector of length NN with true group memberships
true coefficients of the observable variables
loadings of the true group specific factors
true group specific factors
loadings of the true common factors
true common factors
NN x TT-matrix containing the error term
dataframe with the observed variables