The purpose this group of tests is to perform the Panel Analysis of Stationarity in the Idiosyncratic and Common Component (PANIC) Developed by Jushan Bai and Serena Ng from your 2004 and 2010 paper. This repository also contains a function to estimate the number of common factors in an approximate factor model developed in 2002 by Bai and Ng.