Plots MCMC chain trajectories

Description

This function draws trajectories of MCMC chains.

Usage

1
trajectories(object, Range = c(1, 5000), selected = NULL)

Arguments

object

An mlwinfitMCMC-class, mcmc or mcmc.list object, or other object that can be converted to an mcmc object.

Range

An integer vector of length two specifying the first and last iterations of the chains.

selected

A character vector specifying the selected chains to be plotted.

Author(s)

Zhang, Z., Charlton, C.M.J., Parker, R.M.A., Leckie, G., and Browne, W.J. (2016) Centre for Multilevel Modelling, University of Bristol.

See Also

sixway

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
library(R2MLwiN)
# NOTE: if MLwiN not saved in location R2MLwiN defaults to, specify path via:
# options(MLwiN_path = 'path/to/MLwiN vX.XX/')
# If using R2MLwiN via WINE, the path may look like this:
# options(MLwiN_path = '/home/USERNAME/.wine/drive_c/Program Files (x86)/MLwiN vX.XX/')

## Example: tutorial
data(tutorial, package = "R2MLwiN")

(mymodel <- runMLwiN(normexam ~ 1 + standlrt + (1 + standlrt | student),
                     estoptions = list(EstM = 1), data = tutorial))

trajectories(mymodel, Range = c(4501, 5000))

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.