I'm building a hierarchical bayesian linear regression model using RJAGS, and I want to constrain the sum of the values of three parameters to be normally distributed with mean 1.3. That is:
The model is:
Y = B1 * X1 + B2 * X2 + B3 * X3 + ... + BN* XN
And,
B1 + B2 + B3 ~ dnorm(1.3, 1/(0.2)^2)
Is it possible to do that? Using a line of code to distribute the sum of parameters as in the previous line doesn't seem to work.
A second best alternative would be to fully constrain the parameters (B1 + B2 + B3 = 1.3), but I don't know how to do it.
Thanks in advance for your help!
Cheers!
B2
andB3
in terms ofB1
? This would make it easier to constrain values, as onlyB1
would need to be constrained, and perhaps another splitting parameter. – colin