Method for detecting significant patterns in panel data analysis