Learn R Programming

pmwg (version 0.2.7)

is.pmwgs: Test whether object is a pmwgs

Description

Checks whether object is a Particle Metropolis with Gibbs sampler

Usage

is.pmwgs(x)

Value

logical, whether object inherits from pmwgs

Arguments

x

An object to test

Examples

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

Run the code above in your browser using DataLab