Learn R Programming

REFA (version 0.2.0)

FA: Principal Component Analysis for Factor Models

Description

Principal Component Analysis for Factor Models

Usage

FA(X, r)

Value

A list containing:

Fhat

The estimated factor matrix.

Lhat

The estimated loading matrix.

Arguments

X

Input matrix, of dimension \(T\times N\). Each row is an observation with \(N\) features at time point \(t\).

r

A positive integer indicating the factor numbers.

Author

Jiaqi Hu

Examples

Run this code
# \donttest{
dat = gendata()
FA(dat$Y, r = 3)
# }

Run the code above in your browser using DataLab