poissonconsulting / mcmcr

An R package to manipulate MCMC samples
https://poissonconsulting.github.io/mcmcr/
Other
17 stars 2 forks source link

Is it possible to ignore NAs by default? #42

Closed zywhy9 closed 4 years ago

zywhy9 commented 4 years ago

Hi,

In JAGS code, I set a parameter as a matrix with several NAs inside. And rhat function gives NA for this parameter. I'm wondering if it is possible to ignore NAs by default.

Thanks!

joethorley commented 4 years ago

By default it doesn't ignore them but if you set na_rm = TRUE in the function call it should.