Checks whether object is a Particle Metropolis with Gibbs sampler
is.pmwgs(x)
An object to test
logical, whether object inherits from pmwgs
if (is.pmwgs(sampled_forstmann)) {
print("sampled_forstmann object is a pmwgs")
}
#> [1] "sampled_forstmann object is a pmwgs"