IQR_FN | R Documentation |
This function is to estimate factor numbers via rank minimization corresponding to Iterative Quantile Regression (IQR).
IQR_FN(X, rmax, tau, threshold = NULL, L_init = NULL, F_init = NULL,
max_iter = 100, eps = 10^(-6))
X |
Input matrix, of dimension |
rmax |
The user-supplied maximum factor numbers. |
tau |
The user-supplied quantile level. |
threshold |
The threshold of rank minimization; default is NULL. |
L_init |
User-supplied inital value of loadings in the IQR; default is the PCA estimator. |
F_init |
User-supplied inital value of factors in the IQR; default is the PCA estimator. |
max_iter |
The maximum number of iterations. The default is |
eps |
The stopping critetion parameter of the IQR method. The default is 1e-06. |
See Chen et al. (2021) for more details.
rhat |
The estimated factor number. |
Yong He, Lingxiao Li, Dong Liu, Wenxin Zhou.
Chen, L., Dolado, J.J., Gonzalo, J., 2021. Quantile factor models. Econometrica 89, 875–910.
set.seed(1)
T=50;N=50;r=3
L=matrix(rnorm(N*r,0,1),N,r);F=matrix(rnorm(T*r,0,1),T,r)
E=matrix(rnorm(T*N,0,1),T,N)
X=F%*%t(L)+E
tau=0.5
IQR_FN(X,8,tau)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.