I have fitted a likelihood function with a dbeta function in WinBUGs as follows
# likelihood
for(i in 1:n){
FC[i] ~ dbeta(a[TREATMENT[i]], b[TREATMENT[i]])
}
FC is an R array with values between 1 and 0 (1 and 0 included). However, my model throws an error and does not work as it seems I cannot include 1s or 0s.
I heard that the Beta distribution works for data 0..1.
Any idea what is going on?