new;
/* calling the gauss procedure of pairwise test */

/*** Data loading example of Excel file (from QJE, Imbs, J., Mumtaz, H., Ravn, M.O., Rey, H., 2005. 
PPP strikes back: Aggregation and the real exchange rate. Quarterly Journal of Economics 120, 143.**/
x_mat=xlsreadm("z:\\ty509\\Gauss6.0\\0myproc\\PairWise\\q_ict.xls","b2:m181",1,"");
case=2;/** intercept no trend **/
maxp=4;/** maximum lag-order for AIC and SBC **/

{fracmat,frac_kpss}=pairwise(x_mat,maxp,case);/** compute pairwise test **/

#include z:\\ty509\\Gauss6.0\\0myproc\\PairWise\\Pairwise.prc;


end;
