aggregateModel | R Documentation |
This function is useful to convert the mcmc results into aggregated results, such as mean, variance etc.
aggregateModel(func, batch, aggregate, ...)
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 |
aggregate |
The aggragation function (i.e. mean, var etc). If the function returns a list, then the names are used in the return value |
... |
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.