<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Logical Check of Classes</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body>

<table width="100%" summary="page for is.class"><tr><td>is.class</td><td style="text-align: right;">R Documentation</td></tr></table>

<h2>Logical Check of Classes</h2>

<h3>Description</h3>

<p>These functions each provide a logical test of the class of an object.
</p>


<h3>Usage</h3>

<pre>
is.bayesfactor(x)
is.blocks(x)
is.bmk(x)
is.demonoid(x)
is.demonoid.hpc(x)
is.demonoid.ppc(x)
is.demonoid.val(x)
is.hangartner(x)
is.heidelberger(x)
is.importance(x)
is.iterquad(x)
is.iterquad.ppc(x)
is.juxtapose(x)
is.laplace(x)
is.laplace.ppc(x)
is.miss(x)
is.pmc(x)
is.pmc.ppc(x)
is.pmc.val(x)
is.posteriorchecks(x)
is.raftery(x)
is.rejection(x)
is.sensitivity(x)
is.vb(x)
is.vb.ppc(x)
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>x</code></td>
<td>
<p>This is an object that will be subjected to a logical test of
its class.</p>
</td></tr>
</table>


<h3>Details</h3>

<p>Functions in Laplace's Demon often assigns a class to an output
object. For example, after updating a model with the
<code>LaplacesDemon</code> or <code>LaplacesDemon.hpc</code>
function, an output object is created. The output object is of class
<code>demonoid</code> or <code>demonoid.hpc</code>, respectively. Likewise, after
passing a model to the <code>LaplaceApproximation</code> function, an
output object is created, and it is of class <code>laplace</code>. The class
of these and other objects may be logically tested.
</p>
<p>By assigning a class to an output object, the package is able to
discern which other functions are appropriate for it. For example,
after updating a model with <code>LaplacesDemon</code>, which creates
an object of class <code>demonoid</code>, the user may desire to plot its
output. Since it is assigned a class, the user may use the generic
<code>plot</code> function, which internally selects the
<code>plot.demonoid</code> function, which differs from
<code>plot.laplace</code> for objects of class <code>laplace</code>.
</p>
<p>For more information on object classes, see the <code>class</code>
function.
</p>


<h3>Value</h3>

<p>The <code>is.bayesfactor</code> function returns a logical value indicating
whether or not the supplied object is of class <code>bayesfactor</code>.
</p>
<p>The <code>is.blocks</code> function returns a logical value indicating
whether or not the supplied object is of class <code>blocks</code>.
</p>
<p>The <code>is.bmk</code> function returns a logical value indicating
whether or not the supplied object is of class <code>bmk</code>.
</p>
<p>The <code>is.demonoid</code> function returns a logical value indicating
whether or not the supplied object is of class <code>demonoid</code>.
</p>
<p>The <code>is.demonoid.hpc</code> function returns a logical value indicating
whether or not the supplied object is of class <code>demonoid.hpc</code>.
</p>
<p>The <code>is.demonoid.ppc</code> function returns a logical value indicating
whether or not the supplied object is of class <code>demonoid.ppc</code>.
</p>
<p>The <code>is.demonoid.val</code> function returns a logical value indicating
whether or not the supplied object is of class <code>demonoid.val</code>.
</p>
<p>The <code>is.hangartner</code> function returns a logical value indicating
whether or not the supplied object is of class <code>hangartner</code>.
</p>
<p>The <code>is.heidelberger</code> function returns a logical value indicating
whether or not the supplied object is of class <code>heidelberger</code>.
</p>
<p>The <code>is.importance</code> function returns a logical value indicating
whether or not the supplied object is of class <code>importance</code>.
</p>
<p>The <code>is.iterquad</code> function returns a logical value indicating
whether or not the supplied object is of class <code>iterquad</code>.
</p>
<p>The <code>is.iterquad.ppc</code> function returns a logical value indicating
whether or not the supplied object is of class <code>iterquad.ppc</code>.
</p>
<p>The <code>is.juxtapose</code> function returns a logical value indicating
whether or not the supplied object is of class <code>juxtapose</code>.
</p>
<p>The <code>is.laplace</code> function returns a logical value indicating
whether or not the supplied object is of class <code>laplace</code>.
</p>
<p>The <code>is.laplace.ppc</code> function returns a logical value indicating
whether or not the supplied object is of class <code>laplace.ppc</code>.
</p>
<p>The <code>is.miss</code> function returns a logical value indicating
whether or not the supplied object is of class <code>miss</code>.
</p>
<p>The <code>is.pmc</code> function returns a logical value indicating
whether or not the supplied object is of class <code>pmc</code>.
</p>
<p>The <code>is.pmc.ppc</code> function returns a logical value indicating
whether or not the supplied object is of class <code>pmc.ppc</code>.
</p>
<p>The <code>is.pmc.val</code> function returns a logical value indicating
whether or not the supplied object is of class <code>pmc.val</code>.
</p>
<p>The <code>is.posteriorchecks</code> function returns a logical value
indicating whether or not the supplied object is of class
<code>posteriorchecks</code>.
</p>
<p>The <code>is.raftery</code> function returns a logical value indicating
whether or not the supplied object is of class <code>raftery</code>.
</p>
<p>The <code>is.rejection</code> function returns a logical value indicating
whether or not the supplied object is of class <code>rejection</code>.
</p>
<p>The <code>is.sensitivity</code> function returns a logical value indicating
whether or not the supplied object is of class <code>sensitivity</code>.
</p>
<p>The <code>is.vb</code> function returns a logical value indicating
whether or not the supplied object is of class <code>vb</code>.
</p>
<p>The <code>is.vb.ppc</code> function returns a logical value indicating
whether or not the supplied object is of class <code>vb.ppc</code>.
</p>


<h3>Author(s)</h3>

<p>Statisticat, LLC. <a href="mailto:software@bayesian-inference.com">software@bayesian-inference.com</a></p>


<h3>See Also</h3>

<p><code>BayesFactor</code>,
<code>Blocks</code>,
<code>BMK.Diagnostic</code>,
<code>class</code>,
<code>Hangartner.Diagnostic</code>,
<code>Heidelberger.Diagnostic</code>,
<code>Importance</code>,
<code>IterativeQuadrature</code>,
<code>Juxtapose</code>,
<code>LaplaceApproximation</code>,
<code>LaplacesDemon</code>,
<code>LaplacesDemon.hpc</code>,
<code>MISS</code>,
<code>PMC</code>,
<code>PosteriorChecks</code>,
<code>predict.demonoid</code>,
<code>predict.laplace</code>,
<code>predict.pmc</code>,
<code>predict.vb</code>,
<code>Raftery.Diagnostic</code>,
<code>RejectionSampling</code>,
<code>SensitivityAnalysis</code>,
<code>Validate</code>, and
<code>VariationalBayes</code>.
</p>


</body></html>
