sim_function function

Empirical p-value for cointegration test