partialling_out function

partialling_out: partialling out variable of interest and main