plot_distribution_fits.RdPlot predicted Ct distribution fits from model
plot_distribution_fits(
chain,
obs_dat,
MODEL_FUNC,
nsamps = 100,
pos_only = TRUE
)| chain | A dataframe containing the MCMC samples |
|---|---|
| obs_dat | A dataframe containing observed Ct values and time of sample collection. NULL by default. |
| MODEL_FUNC | Function that expects a vector of model parameters with names corresponding to the parameter control table and returns a single log posterior probability |
| nsamps | Number of samples. Defaults to 100. |
| pos_only | pos_only flag uses only Ct values below the limit of detection. Defaults to TRUE. |
Returns two stacked ggplots.
Other plots:
plot_prob_infection(),
predicted_distribution_fits()
James Hay, jhay@hsph.harvard.edu