Description Usage Arguments Value See Also
View source: R/helper_functions.R
Generates data and prediction intervals that are used to plot model fits with prediction intervals and original data from provided MCMC chain file and parameters. Calls a second helper function, generate_prediction_intervals_1.2
| 1 2 | generate_prediction_intervals_1.1(results_MCMC, burnin, param_table, all_data,
  MODEL_FUNCTION)
 | 
| results_MCMC | a full, valid file path for a .csv file containing the full MCMC chain | 
| burnin | numeric value for the number of MCMC chain iterations to be discarded as burn in | 
| param_table | a correctly formatted parameter table as loaded by  | 
| all_data | a data frame containing all of the original data | 
| MODEL_FUNCTION | a pointer to an existing R function that is used to calculate the model trajectories | 
a list containing the following items:
model_data: a data frame with the original data (ie. fitted) for use by a plotting function
prediction_data: a data frame with the best fitting model's data for use by a plotting function
lower_prediction_bounds: a data frame with the necessary information required to plot the lower prediction bound
upper_prediction_bounds: a data frame with the necessary information required to plot the upper prediction bound
generate_prediction_intervals_1.2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.