generate_prediction_intervals: Generate prediction intervals from MCMC chain

Description Usage Arguments

View source: R/plots.R

Description

Produces a data frame of lower 2.5

Usage

1
2
3
generate_prediction_intervals(chain, samp_no = 1000, ts = seq(0, 70, by
  = 1), ts_obs = ts, MODEL_FUNCTION, nstrains = 3, ngroups = 5,
  calc_obs = TRUE)

Arguments

chain

the MCMC chain to sample from

samp_no

the number of random samples to take from the MCMC chain

ts

the times over which to solve the model

ts_obs

times at which observations were made

MODEL_FUNCTION

pointer to the model solving function that takes two arguments: pars and ts. This should return a matrix of trajectories with times across columns

nstrains

the number of strains for which measurements are available

ngroups

the number of exposure groups

calc_obs

if TRUE, also calculates predicted observations


jameshay218/antibodyKinetics documentation built on Nov. 8, 2019, 11 a.m.