Learn R Programming

spikeSlabGAM (version 1.1-19)

ssGAM2Bugs: Convert samples from a model fitted with spikeSlabGAM into a bugs-object

Description

Use plot and print on the returned bugs object for convergence diagnostics. Lack of convergence for \(\alpha\) or \(\xi\) does not necessarily mean that the sampler has not converged for \(\beta\).

Usage

ssGAM2Bugs(m, rm = c("alpha", "ksi", "gamma"))

Arguments

m

a model fitted with spikeSlabGAM

rm

which parameter blocks to omit from the conversion. Defaults to omission of \(\alpha, \xi\), and \(\gamma\). Set to NULL to keep all MCMC samples.

Value

a bugs object which has convenience functions for assessing convergence based on parallel MCMC runs

Examples

Run this code
# NOT RUN {
#see help for spikeSlabGAM
# }

Run the code above in your browser using DataLab