qb.coda {qtlbim} | R Documentation

## Coerce to an MCMC object for use with the coda package.

### Description

This function creates an object of class `mcmc` from an object of class `qb` produced by the package `R/qb`.

### Usage

    qb.coda( object, element, variables)

### Arguments

`object` | An object of class `qb` returned by calling the function `qb.mcmc`.
`element` | A character string which has to one of `"iterdiag"`, `"mainloci"`, `"pairloci"`, `"covariates"`, or `"gbye"`; default is `"iterdiag"`.
`variables` | A vector of integers specifying the columns or column names of `element` to be considered. Details about the columns can be found in `qb.mcmc`

### Details

This package requires the package `coda`.

### Value

An object of class `mcmc`. This object could be used to analyze the MCMC output using R/coda.

### Author(s)

Dr. Nengjun Yi, et al., nyi@ms.ssg.uab.edu

### References

http://www.qtlbim.org

### See Also

`mcmc`, `qb.mcmc`, `plot.qb`

### Examples

    ## Default plots for iteration diagnostics "iterdiag".
    temp <- qb.coda(qbExample)
    plot(temp)

    ## Summaries for some "mainloci" elements.
    temp <- qb.coda(qbExample, "mainloci")
    plot(temp)

[Package qtlbim version 1.6.5 Index]