Loadings and factors are generated by: factors ~ N(j * fgr_factor_mean, fgr_factor_sd) -> default case will be N(j, 1) loadings ~ N(lgr_factor_mean, j * lgr_factor_sd) -> default case will be N(0, j)
generate_grouped_factorstructure(
S,
kg_true,
TT,
g_true,
lgr_factor_mean = 0,
lgr_factor_sd = 1,
fgr_factor_mean = 1,
fgr_factor_sd = 1
)list: first element contains the true group specific factors and the second element contains the corresponding loadings
true number of groups
vector with as length the number of groups, where each element is the true number of groupfactors of that group.
length of time series
vector of length NN with true group memberships
mean of the normal distribution from which the loadings are generated
sd of the normal distribution from which the loadings are generated (multiplied by a coefficient for each different group)
mean of the normal distribution from which the group specific factors are generated (multiplied by a coefficient for each different group)
sd of the normal distribution from which the group specific factors are generated