This function is specifically designed for PERCH data, e.g., (NB: dealing with NoA, multiple-pathogen causes, other continuous covariates? also there this function only plots the first slice - so generalization may be useful - give users an option to choose slice s; currently default to the first slice.)
plot_case_study(
DIR_NPLCM,
stratum_bool = stratum_bool,
bugs.dat = NULL,
slice = 1,
RES_NPLCM = NULL,
do_plot = TRUE,
do_rug = FALSE,
return_metric = TRUE
)A figure of etiology regression curves and some marginal positive rate assessment of model fit; See example for the legends.
File path to the folder containing posterior samples
integer; for this function, indicates which strata to plot
The posterior samples (loaded into the environment to save time) -> default is NULL
integer; specifies which slice of bronze-standard data to visualize; Default to 1.
pre-read res_nplcm; default to NULL.
TRUE for plotting
TRUE for plotting
TRUE for showing overall mean etiology, quantiles, s.d., and if truth$Eti is supplied,
coverage, bias, truth and integrated mean squared errors (IMSE).