0

I am modeling a response Y against a predictor X, which is a product of two variables X1 and X2. I am interested in the coefficient of X.

Mathematically which way of modeling is correct?:

  1. Y ~ X
  2. Y ~ X1 + X2
  3. Y ~ X + X1 + X2

Thanks, maverik

maverik
  • 101
  • 2
  • 1
    Would you simultaneously have values of $X_1$, $X_2$, and $X$, or will you only have $X$ for predictions? – whuber Jul 01 '15 at 20:34
  • Is there some theoretical reason to consider $X$ in isolation as the only important quantity? Where did the idea to compute the product of $X_1\times X_2$ & consider that as a predictor come from? – gung - Reinstate Monica Jul 01 '15 at 20:41
  • @whuber I know the values of X1 and X2 (and hence X). I just don't know whether to include all 3 terms in the regression. – maverik Jul 01 '15 at 20:42
  • 1
    @gung Purpose of this regression model is to assess the impact of marketing on test cities. There are 4 test cities, 6 control cities, and I know on a daily basis, Y = sales from each of 10 cities. I have defined a variable X1 = exposure = 1 if test city, 0 if control city and a variable X2 = period = 1 when campaign was going on and 0 when it is over. X = X1*X2 is the variable I am interested in since it takes into account the time period when there was marketing, and where it was carried out. There are actually more variables like account type Z which I didn't mention for simplicity. – maverik Jul 01 '15 at 20:49
  • 1
    I see. This is a FAQ. You are asking if the 'main effects' need to be included in a model w/ an interaction term. Here are a couple of threads that address the issue: [Including the interaction but not the main effects in a model](http://stats.stackexchange.com/q/11009/7290), & [Do all interactions terms need their individual terms in regression model?](http://stats.stackexchange.com/q/27724/7290). – gung - Reinstate Monica Jul 01 '15 at 20:58
  • 1
    Please read these threads. If you still have a question afterwards, come back here & edit your Q to state what you have learned & what you still need to know. Then we can provide the information you need w/o simply duplicating material elsewhere that already didn't help you. – gung - Reinstate Monica Jul 01 '15 at 20:59

0 Answers0