farm.res function

Adjusting a data matrix for underlying factors