Learn R Programming

spikeSlabGAM (version 0.9-6)

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

Description

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

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

Details

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$.

Examples

Run this code
#see help for spikeSlabGAM}

Run the code above in your browser using DataLab