BASiCS_diagHist {BASiCS} | R Documentation

## Create diagnostic plots of MCMC parameters

### Description

Plot a histogram of effective sample size or Geweke's diagnostic z-statistic. See effectiveSize and geweke.diag for more details.

### Usage

    BASiCS_diagHist(object, Param = NULL, na.rm = TRUE)

### Arguments

`object` | an object of class `BASiCS_Summary`
`Param` | Optional name of a chain parameter to restrict the histogram; if not supplied, all parameters will be assessed. Possible values: `'mu'`, `'delta'`, `'phi'`, `'s'`, `'nu'`, `'theta'`, `'beta'`, `'sigma2'` and `'epsilon'`. Default `Param = NULL`.
`na.rm` | Logical value indicating whether NA values should be removed before calculating effective sample size.

### Value

A ggplot object.

### Author(s)

Alan O'Callaghan a.b.ocallaghan@sms.ed.ac.uk

### See Also

`BASiCS_Chain`

### Examples

    # Built-in example chain
    data(ChainSC)

    # See effective sample size distribution across all parameters
    BASiCS_diagHist(ChainSC)
    # For mu only
    BASiCS_diagHist(ChainSC, Param = "mu")

[Package BASiCS version 1.6.0 Index]