Circularly Projected Estimation for Group Factor Model.
CP(y, rmax = 8, r0 = NULL, r = NULL, localfactor = FALSE, type = "IC3")An object of class "GFA" containing:
The estimated number of global factors.
The estimated number of local factors (if localfactor = TRUE).
The eigenvalues of the circular projection matrix.
The estimated global factors.
The estimated local factors (if localfactor = TRUE).
A list consisting of the estimated global factor loadings.
A list consisting of the estimated local factor loadings (if localfactor = TRUE).
A list consisting of the residuals (if localfactor = TRUE).
A list of the observation data, each element is a data matrix of each group with dimension \(T \times N_m\).
The maximum factor numbers of all groups. Default is 8.
The number of global factors. Default is NULL, the algorithm will automatically estimate the number of global factors.
If you have prior information about the true number of global factors, you can set it manually.
The number of local factors in each group. Default is NULL, the algorithm will automatically estimate the number of local factors.
If you have prior information, set it manually as an integer vector of length \(M\) (the number of groups).
Logical. If FALSE (default), local factors are not estimated. If TRUE, local factors will be estimated.
The method used in estimating the local factor numbers in each group after projecting out the global factors. Default is "IC3".
Chen, M. (2023). Circularly Projected Common Factors for Grouped Data. Journal of Business & Economic Statistics, 41(2), 636-649.
dat <- GrFA::gendata()
CP(dat$y, rmax = 8, localfactor = TRUE)
Run the code above in your browser using DataLab