traces | R Documentation |
Plots traces of samples corresponding to one or more Markov chains during the sampling procedure with
Stan
. This is a generic version of the method plot.trace()
for the PMXStanFit
class.
traces(fit, pars = NULL)
fit |
a |
pars |
specifies names of parameters whose traces will be plotted. When it is not specified,
the function by default plots all the |
No return value, called for side effects
PMXStanFit
for the method plot.trace()
; traceplot
for a similar
implementation of plotting traces in rstan
.
m1 <- PMXStanModel(path = tempfile("pk_m1"), pk.struct = "1-cmpt", compile=TRUE) data("examples_data") dat <- prepareInputData(data.source = d1_nm_poppk, model = m1) fit <- PMXStanFit(m1, dat, iter=100, chains=1) fit$plot.trace() traces(fit) fit$plot.trace(pars = c("CL", "V", "sigma")) traces(fit, pars = c("CL", "V", "sigma"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.