credible.interval.model | R Documentation |
This function is useful to convert the mcmc results into credible intervals, which is needed for plotting your results. Calls aggregateModel to aggregate the results by the passed intervals.
credible.interval.model(func, batch, intervals = c(0, 0.98), ...)
func |
The function that gets called for each set of parameters (e.g. infectionODEs) |
batch |
Posterior parameters samples resulting from mcmc. Each row is a set of parameters |
intervals |
The intervals to calculate (by default 0 (median) and 0.98) |
... |
Extra parameters passed to func |
Returns a data.frame in long format, with for each time point, interval, column.ID the value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.