rjmethods: Methods for the rj Class

Description Usage Arguments Details

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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.


rjmcmc documentation built on July 9, 2019, 5:03 p.m.