is.pmwgs: Test whether object is a pmwgs

View source: R/particle_sampler.R

is.pmwgsR Documentation

Test whether object is a pmwgs

Description

Checks whether object is a Particle Metropolis with Gibbs sampler

Usage

is.pmwgs(x)

Arguments

x

An object to test

Value

logical, whether object inherits from pmwgs

Examples

if (is.pmwgs(sampled_forstmann)) {
  print("sampled_forstmann object is a pmwgs")
}

pmwg documentation built on May 29, 2024, 12:09 p.m.