It is used in iterate().
grid_add_variables(
grid,
Y,
X,
beta_est,
g,
lambda,
comfactor,
method_estimate_beta,
vars_est,
S,
limit_est_groups_heterogroups = 15
)data.frame
dataframe containing values for X*beta_est and LF (product of common factor and its loadings)
Y: NxT dataframe with the panel data of interest
X: NxTxp array containing the observable variables
estimated values of beta
Vector with estimated group membership for all individuals
loadings of the estimated common factors
estimated common factors
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".
number of variables that will be included in the algorithm and have their coefficient estimated. This is usually equal to the number of observable variables.
number of estimated groups
maximum amount of groups that can be estimated when method_estimate_beta is set to "group"