demean function

Centers a set of variables around a set of factors