Learn R Programming

FARS (version 0.7.1)

single_block: Multi-Level Dynamic Factor Model - Single Block (DFM)

Description

Estimates a Dynamic Factor Model (DFM) when only one block is present, using Principal Component Analysis (PCA).

Usage

single_block(data, r)

Value

A list with elements:

factors

Matrix of estimated factors.

loadings

Matrix of factor loadings.

residuals

Matrix of residuals.

fitted

Matrix of fitted values.

method

Method used for factor extraction ("PCA").

iterations

Number of iterations before convergence (always 0 for single block).

factors_list

List of estimated factors for each node.

Arguments

data

A numeric matrix or data frame containing the time series data (T × N).

r

Integer. Number of factors to extract.