Diagnose goodness-of-fit for JAGS state-space model
diagnoseGofJagsSsm.Rd
This function runs basic posterior predictive checks for a JAGS SSM
Arguments
- fit
A JAGS state-space model fitted to CWAC data
- counts
A dataframe with CWAC counts ready for model fit. See
ppl_create_data_ssm
- linear
Logical. If TRUE (default) then posterior predictive checks are made on the data scale, otherwise they are done in the model (log) scale.