| Trace_plot | R Documentation |
Plots the chain across (non-discarded) iterations for a specified observation
Trace_plot(variable = NULL, chain = NULL)
variable |
Indicates the index of the variable |
chain |
MCMC chains generated by a BASSLINE MCMC function |
A ggplot2 object
library(BASSLINE)
# Please note: N=1000 is not enough to reach convergence.
# This is only an illustration. Run longer chains for more accurate
# estimations.
LN <- MCMC_LN(N = 1000, thin = 20, burn = 40, Time = cancer[, 1],
Cens = cancer[, 2], X = cancer[, 3:11])
Trace_plot(1, LN)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.