This function calculates the cumulative explanatory power of the
leading row factors, in terms of the explained variance, under a
two-way factor structure.
Usage
var.exp(Y, k = 2, type = "proj", kmax = 4, plot = 0)
Value
a vector with k entries, corresponding to the cumulative explanatory power
of the leading k factors.
Arguments
Y
data, a \(T\times p1\times p2\) array.
k
a positive integer indicating the number of factors investigated, should be
smaller than p1.
type
indicates how to calculate the sample covariance. "flat" for the
flat version, while others for the projected version.
kmax
a positive integer smaller than p2, indicating the
upper bound for the factor numbers, and the dimension of projection matrix.
plot
a logical value. When plot=1, a figure of the
cumulative explanatory power will be plotted, with x axis being the number of
factors, and y axis being the cumulative explained variance.