Specify a discrete weibull distribution in JAGS or BUGS for R
问题 I am fitting a weibull model to discrete values using JAGS in R. I have no problem fitting a weibull to continuous data, but I run in to trouble when I switch to discrete values. Here is some data, and code to fit a weibull model in JAGS: #draw data from a weibull distribution y <- rweibull(200, shape = 1, scale = 0.9) #y <- round(y) #load jags, specify a jags model. library(runjags) j.model =" model{ for (i in 1:N){ y[i] ~ dweib(shape[i], scale[i]) shape[i] <- b1 scale[i] <- b2 } #priors b1