BaiIPC {BTtest}R Documentation

Bai (2004) IPC

Description

Calculates the Integrated Panel Criteria (IPC) to estimate the total number of common trends in a nonstationary panel as proposed by Bai (2004).

Usage

BaiIPC(X, r_max = 10)

Arguments

X

a T \times N matrix of observations.

r_max

the maximum number of factors to consider. Default is 10.

Details

For further details on the three criteria and their respective differences, I refer to Bai (2004, sec. 3).

Value

A vector of the estimated number of factors for each of the three criteria.

Author(s)

Paul Haimerl

References

Bai, J. (2004). Estimating cross-section common stochastic trends in nonstationary panel data. Journal of Econometrics, 122(1), 137-183. doi:10.1016/j.jeconom.2003.10.022

Examples

# 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)

[Package BTtest version 0.10.1 Index]