calc_p_apply function

Calculate intercepts and associated p-value