- data
A numeric matrix or data frame containing the time series data. Rows represent time points; columns represent observed variables.
- blocks
Integer. The number of blocks into which the data is divided.
- block_ind
A vector of integers indicating the end index of each block. Must be of length blocks and in increasing order. Required if blocks > 1.
- global
Integer. Number of global factors extracted from the entire dataset.
- local
Integer vector of length blocks. Specifies the number of local factors for each block.
- middle_layer
Named list. Each name is a string specifying a group of blocks (e.g., "1-3" or "2-3"), and each value is the number of factors to extract.
- method
Integer. The method used to initialize the factors: 0 for Canonical Correlation Analysis (CCA), 1 for Principal Component Analysis (PCA).
- tol
Numeric. The tolerance level for the residual sum of squares (RSS) minimization process. Used as a convergence criterion.
- max_iter
Integer. The maximum number of iterations allowed for the RSS minimization process.
- center
Logical. If TRUE (default) center data columns.
- scale
Logical. If TRUE (default) scale data columns.
- n_samples
Number of subsamples to generate.
- sample_size
Proportion of the original sample to retain (e.g., 0.9 for 90%).
- seed
Optional integer. Seed for reproducibility of the subsampling process. If NULL, random draws will differ each run.