This is a short version of define_object_for_initial_clustering() which only contains implementations for robust macropca case and classical case.
define_object_for_initial_clustering_macropca(
Y,
k,
kg,
comfactor,
robust,
method_estimate_beta = "individual",
method_estimate_factors = "macro",
verbose = FALSE
)matrix with N rows and 10 columns
Y: NxT dataframe with the panel data of interest
number of common factors to be estimated
number of group specific factors to be estimated
estimated common factors
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".
specifies the robust algorithm to estimate factors: default is "macro". The value is not used when robust is set to FALSE.
when TRUE, it prints messages