plot_three_panel: Plot three-panel figures for nested partially-latent model...

Description Usage Arguments Value

View source: R/plot-three-panel.R

Description

Visualize the model outputs for communicating how does data inform final etiology. Current code only works for single etiologies. Multiple etiology has not been coded, because we need special handling of pathogen ordering. Also, because multiple etiology has a different formula for model-based observed rate. DN: 1. current implementation: nplcm, BrS and SS. "Jfull" here is not the same as in other functions: it refers to the number of pathogens even if there are pathogens with only silver-standard data; in other functions, "Jfull" refers to the number of pathogens that have BrS data. 2. Missing data for BrS or SS are dropped when calculating observed measurement prevalences

Usage

1
plot_three_panel(DIR_NPLCM, SS_upperlimit = 1, eti_upperlimit = 1)

Arguments

DIR_NPLCM

File path to the folder containing posterior samples

SS_upperlimit

The upper limit of horizontal bar for the silver-standard subpanel (the middle panel). The default value is .25.

eti_upperlimit

The upper limit of horizontal bar for the etiology posterior subpanel (the rightmost panel). The default value is .4

Value

A figure with two or three columns


zhenkewu/nplcm documentation built on May 28, 2017, 1:43 p.m.