Re: [R] How to setup a multiplicative dummy function in R

2016-12-03 Thread Jeff Newmiller
I think you need an offset term, or maybe I just don't understand your question. A sample data set, particularly if you can show us how your equation could be used to generate the sample data, would be helpful. -- Sent from my phone. Please excuse my brevity. On December 1, 2016 7:22:37 AM P

[R] How to setup a multiplicative dummy function in R

2016-12-01 Thread lolo koko
Hello? Does anyone know how I can implement the below equation in R? I would like to estimate the following equation: y=beta_ij * (1+gamma_j * dummy) * x_ij where y is continuous, and all the x variables (j of them) are i=3 level categorical variables. The intuition is that instead of estimati