PC {GCCfactor} | R Documentation |
Principal component (PC) estimation of the approximate factor model
Description
Perform PC estimation of the (2D) approximate factor model:
or in matrix notation:
The factors is estimated as
times the
eigenvectors of
the matrix
corresponding to the
largest eigenvalues in descending order, and the loading matrix is estimated by
.
See e.g. Bai and Ng (2002).
Usage
PC(Y, r)
Arguments
Y |
A |
r |
= the number of factors. |
Value
A list containing the factors and factor loadings:
factor = a
matrix of the estimated factors.
loading = a
matrix of the estimated factor loadings.
References
Bai, J. and Ng, S., 2002. Determining the number of factors in approximate factor models. Econometrica, 70(1), pp.191-221.
Examples
# simulate data
T <- 100
N <- 50
r <- 2
F <- matrix(stats::rnorm(T * r, 0, 1), nrow = T)
Lambda <- matrix(stats::rnorm(N * r, 0, 1), nrow = N)
err <- matrix(stats::rnorm(T * N, 0, 1), nrow = T)
Y <- F %*% t(Lambda) + err
# estimation
est_PC <- PC(Y, r)
[Package GCCfactor version 1.0.1 Index]