Failed to retrieve DIC

I am using runjags and trying to get DIC for my model.

I know that if I print the runjags object, it will return a model summary that will include the DIC, but there are many variables in my model, so calculating the final statistics takes a lot of time. When I use summarise=FALSE , the DIC is not returned.

I tried using: extract(runJagsObj, what='dic')

But he returns this error message: "Error: Please supply column name"

Is there a way to see the DIC in the summary without calculating the summary statistics for each variable? Or why does the extract not work?

I use method=parallel if this is useful information.

+4
source share
1 answer

I finally found out the error "Error: Please supply column name" .

I used ggmcmc to build, which requires tidyr. Tidyr has a name match for extract . I managed to resolve the name conflict by loading runjags after ggmcmc, which resolved the error.

+2
source

All Articles