Extracts first principal component and standardizes using training period.
compute_common_factor(Mz, T_train, use_train_loadings = FALSE, verbose = FALSE)Numeric vector of factor scores (length T)
Standardized matrix (T x S)
Number of training observations
Logical. If TRUE, compute loadings only from training data. Default FALSE.
Logical. Print progress messages. Default FALSE.