Skip to contents

This function runs basic posterior predictive checks for a JAGS SSM

Usage

diagnoseGofJagsSsm(fit, counts, linear = TRUE)

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.

Value

A data frame with Rhat values for the different parameters estimated by the model.