The function estimates beta, group membership and the common and group specific factorstructures for one configuration.
run_config(robust, config, C_candidates, Y, X, choice_pic, maxit = 30)list with the estimators and metrics for this configuration
TRUE or FALSE: defines using the classical or robust algorithm to estimate beta
contains one configuration of groups and factors
candidates for C (parameter in PIC)
Y: NxT dataframe with the panel data of interest
X: NxTxp array containing the observable variables
indicates which PIC to use to estimate the number of groups and factors: options are "pic2017" (uses the PIC of Ando2017;textualRCTS; works better for large N), "pic2016" (Ando2016;textualRCTS; works better for large T) weighs the fourth term with an extra factor relative to the size of the groups, and "pic2022" which shrinks the NT-space where the number of groups and factors would be over- or underestimated compared to pic2016 and pic2017.
maximum limit for the number of iterations