I need to create a linear mixed model in R but parameter estimates have to be non negative. (beta1 and beta2 and beta3 > 0)The model is:
VOLUME SALES = beta1 * morning + beta2 * afternoon + beta3 * evening + (1|Brand)
being Brand the random effect.
I have been using lmer package:
model <- lmer(Volume ~ morning + afternoon + evening + (1 | Brand), data=df)
summary(model)
This works very well, but fixed effects estimates (beta1, beta2 and beta3) can be both negative or positive. I need them to be always positive. Because we assume there is no way something can diminish volume sales.
Do you know a way to "control" the linear mixed model by adding constrains in which beta>0?