hofa.DGP2 | R Documentation |
Generate panel data from [H]igher-[O]rder multi-cumulant [F]actor [A]nalysis of DGP2
hofa.DGP2(n, t, k, par_f, par_e, par_cove, rho_f, ...)
n |
An integer, the number of variables. |
t |
An integer, the number of observations. |
k |
An integer, the number of factors. |
par_f |
A list of four elements, the parameters of factor distribution, the first list is sig_f = (sig_f1,sig_f2,...), the second list is eta_f = (eta_f1,eta_f2,...), the third list is p_f = (p_f1,p_f2,...), the fourth list is q_f = (q_f1,q_f2,...). |
par_e |
A list of four elements, the parameters of error distribution, par_e = list(sig_e,eta_e,p_e,q_e). |
par_cove |
A list of four elements, the parameters control the covariance structure of the error terms, par_cove = list(beta,J,rho,msig_e). |
rho_f |
A k x 1 vector, the auto-regressive parameters of factors. |
... |
Any other parameters. |
A T x N matrix, generated by DGP2 of hofa.
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))
hofa.DGP2(n,t,k,par_f,par_e,par_cove,rho_f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.