rjmethods {rjmcmc}R Documentation

Methods for the rj Class

Description

An object of class rj is returned from the functions rjmcmcpost or defaultpost. The following methods can be applied to an object of this class. See Details for more information.

Usage

## S3 method for class 'rj'
print(x, ...)

## S3 method for class 'rj'
plot(x, legend = TRUE, col = "maroon4", ylim = c(0, 1),
  lwd = 2, lty = c(1, 1, 1), ...)

## S3 method for class 'rj'
summary(object, quantiles = c(0.025, 0.25, 0.5, 0.75,
  0.975), ...)

Arguments

x, object

An object of class rj.

...

Further arguments to the generic method.

legend, col, ylim, lwd, lty

Some useful graphical arguments to the generic plot method.

quantiles

The desired density quantiles for summary to find.

Details

The print method prints the point estimates obtained from the algorithm, including the transition matrix, posterior model probabilities and Bayes factors.

The plot method plots how the estimates of the posterior probabilities changed as the algorithm progressed, illustrating convergence.

The summary method returns quantiles of the posterior densities for each model (as well as likelihoods and prior densities). The point estimates as in print are also returned. Note that this requires save.all must be TRUE in the rjmcmcpost call.


[Package rjmcmc version 0.4.5 Index]