| CCA | R Documentation |
Canonical Correlation Estimation for Group Factor Model.
CCA(
y,
rmax = 8,
r0 = NULL,
r = NULL,
localfactor = FALSE,
method = "CCD",
type = "IC3"
)
y |
A list of the observation data, each element is a data matrix of each group with dimension |
rmax |
The maximum factor numbers of all groups. Default is 8. |
r0 |
The number of global factors. Default is |
r |
The number of local factors in each group. Default is |
localfactor |
Logical. If |
method |
The method used in the algorithm. Default is |
type |
The method used in estimating the factor numbers in each group initially. Default is |
An object of class "GFA" containing:
r0hat |
The estimated number of global factors. |
rhat |
The estimated number of local factors (if |
rho |
The vector of average canonical correlations (eigenvalues). |
Ghat |
The estimated global factors. |
Fhat |
The estimated local factors (if |
loading_G |
A list consisting of the estimated global factor loadings. |
loading_F |
A list consisting of the estimated local factor loadings (if |
residual |
A list consisting of the residuals (if |
threshold |
The threshold used in determining the number of global factors (only for |
Choi, I., Lin, R., & Shin, Y. (2021). Canonical correlation-based model selection for the multilevel factors. Journal of Econometrics.
dat <- GrFA::gendata()
CCA(dat$y, rmax = 8, localfactor = TRUE, method = "CCD")
CCA(dat$y, rmax = 8, localfactor = TRUE, method = "MCC")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.