Plot predicted Ct distribution fits from model

plot_distribution_fits(
  chain,
  obs_dat,
  MODEL_FUNC,
  nsamps = 100,
  pos_only = TRUE
)

Arguments

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.

Value

Returns two stacked ggplots.

See also

Author

James Hay, jhay@hsph.harvard.edu

Examples