Description Usage Arguments Author(s) See Also Examples
This function produces a running mean plot, that is, a plot of the iterations against the mean of the draws up to each iteration. If the plot is not a near constant line then convergence has not been achieved (e.g., label switching is present).
For examples see
http://faculty.missouri.edu/~micheasa/sppmix/sppmix_all_examples.html#plot_runmean
1 | plot_runmean(chain, open_new_window = FALSE)
|
chain |
An |
open_new_window |
Open a new window for the plot. |
Sakis Micheas
est_mix_damcmc
,
rmixsurf
,
rsppmix
1 2 3 4 5 6 7 | truemix_surf <- rmixsurf(m = 3, lambda=100, xlim = c(-3,3), ylim = c(-3,3))
plot(truemix_surf)
genPPP=rsppmix(intsurf = truemix_surf, truncate = FALSE)
fit <- est_mix_damcmc(pp = genPPP, m = 3)
plot_runmean(fit$genps[,1])
plot_runmean(fit$genps[,2])
plot_runmean(fit$genps[,3])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.