calculates factor loadings of common factors
calculate_lambda(
Y,
X,
beta_est,
comfactor,
factor_group,
g,
lgfg_list,
k,
kg,
robust,
method_estimate_beta,
method_estimate_factors,
verbose = FALSE,
initialise = FALSE
)Returns a matrix where each row contains a common factor. If the number of estimated common factors equals zero, it returns a matrix with 1 row, containing zero's.
Y: NxT dataframe with the panel data of interest
X: NxTxp array containing the observable variables
estimated values of beta
common factors
estimated group specific factors
Vector with group membership for all individuals
This is a list (length number of groups) containing FgLg for every group.
number of common factors to be estimated
number of group specific factors to be estimated
TRUE or FALSE: defines using the classical or robust algorithm to estimate beta
defines how beta is estimated. Default case is an estimated beta for each individual. Default value is "individual." Possible values are "homogeneous", "group" or "individual".
defines method of robust estimaton of the factors: "macro", "pertmm" or "cz"
when TRUE, it prints messages
indicator of being in the initialisation phase