| mldfm | R Documentation |
Estimates a Multi-Level Dynamic Factor Modelfrom time series data. Supports both Single-bBlock (DFM) and hierarchical Multi-Block (MLDFM) structures with customizable factor extraction settings.
mldfm(
data,
blocks = 1,
block_ind = NULL,
global = 1,
local = NULL,
middle_layer = NULL,
method = 0,
tol = 1e-06,
max_iter = 1000,
center = TRUE,
scale = TRUE,
verbose = TRUE
)
data |
A numeric matrix or data frame containing the time series data. Rows represent time points; columns represent observed variables. |
blocks |
Integer. Number of blocks into which the data is divided. |
block_ind |
Integer vector. End column indices for each block. Must be of length |
global |
Integer. Number of global factors extracted from the entire dataset. |
local |
Integer vector of length |
middle_layer |
Named list. Each name is a string specifying a group of blocks (e.g., |
method |
Integer. Method used to initialize the factors: |
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 |
scale |
Logical. If |
verbose |
Logical. If |
An object of class mldfm, which is a list containing:
Matrix of estimated factors.
Matrix of factor loadings.
Matrix of residuals.
Matrix of fitted values.
Initialization method used (CCA or PCA).
Number of iterations before convergence.
List of estimated factors for each node.
Function call.
mldfm_result <- mldfm(data = matrix(rnorm(100 * 5), 100, 5), blocks = 1, global = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.