Learn R Programming

blmeco (version 1.4)

historyplot: Function to plot history (trace) plots of the Markov chains obtained by STAN or by WinBUGS.

Description

Draws history (trace) plots for the Markov chains in a STAN- or WinBUGS-object

Usage

historyplot(fit, parameter)

Arguments

fit

a model fit obtained by STAN or WinBUGS

parameter

the name, a character, of the parameter for which the history plot should be drawn

Value

gives a plot

Details

can only handly one or two dimensional parameters up to now.

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
fit <- stan(....)
historyplot(fit, parameter="alpha")
# }

Run the code above in your browser using DataLab