I have to estimate a model forecasting the sales (as stock units) for AXE deoderants.I want to apply the multiplier specification on this model. The model should look like this:
log(Sales) = b0 + b1*log(Price) +b2*log(Adertising) + log(b3)*Summer
The last variable is causing the trouble. It is a dummy variable that is set equal to 1 for sales during the summer and 0 elsewhere. I have no idea how a logarithm of a parameter can be taken in R.
Can somebody please help me to model this?
Many thanks in advance!
lmcan deal withfactorvariables and even does the dummy encoding for you. – Roland Oct 22 '14 at 08:49