I am performing mixed effect modeling using lme4. But as you would expect, I can get positive and negative fixed and random effects as coefficients. How do I put bounds on my final coefficients such that I get only positive coefficients?
I am also trying to use stan_lmer for Bayesian modeling.
Example: lmer equation
If I check coef(fm1), I get the following output:
lmer output
I want to restrict the coefficients to be only positive. Please help.