plot.emc | R Documentation |
Makes trace plots for model parameters.
## S3 method for class 'emc'
plot(
x,
stage = "sample",
selection = c("mu", "sigma2", "alpha"),
layout = NA,
...
)
x |
An object of class |
stage |
A character string indicating the sampling stage to be summarized.
Can be |
selection |
A character vector indicating the parameter group(s).
Defaults to |
layout |
A vector indicating which layout to use as in par(mfrow = layout). If NA, will automatically generate an appropriate layout. |
... |
Optional arguments that can be passed to |
If an emc object that has not been run with fit
yet is supplied
prior plots will be returned.
A trace/acf plot of the selected MCMC chains
plot(samples_LNR)
# Or trace autocorrelation for the second subject:
plot(samples_LNR, subject = 2, selection = "alpha")
# Can also plot the trace of for example the group-level correlation:
plot(samples_LNR, selection = "correlation", col = c("green", "purple", "orange"), lwd = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.