I know how to do it in the case where X1, X2, and X3 are all categorical predictors (i.e., if this were a two-way ANOVA where X3 = X1*X2, or a one-way ANOVA on a 4-level factor), but I am not sure how to work it out with continuous predictors... I will think about it a little more though.