Page 1 of 1

specify prior

Posted: November 28 2017
by Nishanth Sasankan
I am trying to choose a prior with the following property , say variable A has uniform prior over center = 3
min =1
max= 5
and
A not equal 2
How can I specify the not equal part?


Thanks
Nishanth

Re: specify prior

Posted: November 28 2017
by Antony Lewis
You'd have to modify the code, though for a continuous variable the probability of hitting exactly 2 is zero anyway, so this probably isn't what you want (you can't sample integers directly).