I am looking to get a pseudo $R^2$ metric from a beta-regression model fit using JAGS in the runjags
package for R. To do so I have calculated the deviance of the fitted model, and the deviance of a null model. I plan to calculate McFadden's pseudo $R^2$ as
$$1-\frac{\text{Residual Deviance}}{\text{Null Deviance}}$$.
Where residual deviance is the deviance of the fitted model, and null deviance is the deviance of the null model. However, both of my deviance values are negative. Residual deviance = -6622.103
ans null deviance = -5939.539
. So, 1 - (-6622.103/-5939.539) = -0.1149187
. Negative $R^2$ values don't seem right.