Learn R Programming

PANICr (version 0.0.0.5)

pc: Principle Component Analysis for PANIC (2004)

Description

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
A NxT matrix containing the data
nfac
An integer specifying the maximum number of factors allowed while estimating the factor model.

Value

ehat The Idiosyncratic component of the factor modelfhat The approximate factors of the approximate factor modellambda The factor loadings of the factor model