This function performs the principle component analysis in order to determine
the Common and Idiosyncratic Components of the factor model.
Usage
pc(y,nfac)
Arguments
y
An NxT matrix containing the data
nfac
An integer specifying the maximum number of factors allowed
while estimating the factor model.
Value
ehat A matrix with the Idiosyncratic component of the factor modelfhat A matrix with the factors of the approximate factor modellambda A matrix with the factor loadings of the approximate factor model