residualsFAMT function

Calculation of residual under null hypothesis