M2.select | R Documentation |
Determine the number of factors based on the covariance or correlation matrix
M2.select(
X,
scale = F,
rmax = 8,
method = c("ER", "GR", "BN-IC3", "BN-PC3", "BIC3", "ON", "ACT"),
modified = F,
...
)
X |
A matrix or data frame with t rows (samples) and n columns (variables). |
scale |
logical. If |
rmax |
The maximum number of factors. |
method |
Method to use: " |
modified |
logical. Only available for " |
... |
Any other parameters. |
The number of factors determined by selected approach and the eigenvalues of the covariance matrix.
n = 100
t = 200
k = 2
par_f = list(rep(1,k),rep(0.8,k),rep(1,k),rep(Inf,k))
par_e = list(1,0,2,Inf)
rho_f = c(0.5,0.2)
par_cove = list(beta = 0.2,J = n/10,rho = 0.2,msig_e = c(1,5))
data = hofa.DGP2(n,t,k,par_f,par_e,par_cove,rho_f)$X
M2.select(data,method = "ER")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.