Description Usage Arguments Value See Also
View source: R/helper_functions.R
This function is called by a wrapper function, generate_prediction_intervals_1.1 to generate plottable prediction intervals for a model plot.
| 1 2 | generate_prediction_intervals_1.2(mcmc_chains, burnin = NULL, times,
  runs = 100, level = 0.95, smoothing = 0, MODEL_FUNCTION)
 | 
| mcmc_chains | a matrix containing the whole MCMC chain (ie. parameter values at each iteration) | 
| burnin | optional parameter specifying the number of iterations from the MCMC chain that should be discarded as burn in | 
| times | a vector of time points to calculate the model trajectory over | 
| runs | number of random draws from the multivariate posterior with which to calculate the prediction intervals. Defaults to 100 | 
| level | desired prediction interval size. Defaults to 0.95 ie. 95 percent prediction intervals | 
| smoothing | uses smoothing splines to give smoother prediction intervals where these might be aethsetically spikey. Defaults to 0 | 
| MODEL_FUNCTION | a pointer to an existing R function that is used to calculate the model trajectories | 
a list of the lower and upper prediction lines
generate_prediction_intervals_1.1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.