View source: R/calc_functions.R
plot_series | R Documentation |
Plots the value of a one-dimensional series against the iteration where it occurred. Useful to see the general pattern of the chain (white noise, random walk, volatility clustering)
plot_series(chain, change = FALSE)
chain |
Vector of n length, where n is the number of trials or sampler iterations |
change |
Boolean. Whether to plot the series of values or the series of changes between values. |
A series plot
set.seed(1)
chain1 <- sampler_mh(1, "norm", c(0,1), diag(1))
plot_series(chain1[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.