BaiIPC | R Documentation |
Calculates the Integrated Panel Criteria (IPC) to estimate the total number of common trends in a nonstationary panel as proposed by Bai (2004).
BaiIPC(X, r_max = 10)
X |
a |
r_max |
the maximum number of factors to consider. Default is 10. |
For further details on the three criteria and their respective differences, I refer to Bai (2004, sec. 3).
A vector of the estimated number of factors for each of the three criteria.
Paul Haimerl
Bai, J. (2004). Estimating cross-section common stochastic trends in nonstationary panel data. Journal of Econometrics, 122(1), 137-183. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.jeconom.2003.10.022")}
# Simulate a nonstationary panel
X <- sim_DGP(N = 100, n_Periods = 200)
# Obtain the estimated number of common factors pre criterion
BaiIPC(X = X, r_max = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.