Description Usage Arguments Value Examples
This function takes the results from an inference function, and plots the trace plot of all the accepted samples, with a red line to represent the true value if it falls within the limits. If a parameter was fixed it will plot a straight line.
1 | Plot_trace(res, params, burnin = NA)
|
res |
The results matrix from the MCMC functions. |
params |
A named vector of the parameters, with names "beta1", "beta2", "gamma", "d", "p", and "llh". |
burnin |
The ammount of burnin that wants to be removed (defaults to NA to plot the full trace plots). |
A description of the average acceptance probabilities.
1 | Plot_trace(res, params, burnin = NA)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.