Description Usage Arguments Value
View source: R/plot-etiology-side-by-side.R
get etiology samples by names (no regression)
1 2 3 4 5 6 7 8 9 10 |
DIR_NPLCM |
File path to the folder containing posterior samples |
model_options |
See |
stratum_bool |
a vector of TRUE/FALSE with TRUE indicating the rows of subjects to include |
pEti_subject |
TRUE for getting individual specific samples; Default to |
reg_param |
TRUE for getting regression parameters; Default to |
truth |
a list of truths computed from true parameters in simulations; elements:
Eti, FPR, PR_case,TPR; All default to
|
return_metric |
TRUE for showing overall mean etiology, quantiles, s.d., and if |
RES_NPLCM |
pre-read res_nplcm; default to NULL to save time. |
A list:
pEti_mat
: a matrix of posterior samples (iteration by cause); overall etiology
latent_nm
: a vector of character strings representing the names of the causes
pEti_subject
: an array of individual specific etiology; cause by subject by iteration
betaEti
: an array of samples of the etiology regression parameters; coefficient by cause by iteration
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.