get_direct_bias: Obtain direct bias that measure the discrepancy of a...

View source: R/utils.R

get_direct_biasR Documentation

Obtain direct bias that measure the discrepancy of a posterior distribution of pie and a true pie.

Description

Obtain direct bias that measure the discrepancy of a posterior distribution of pie and a true pie.

Usage

get_direct_bias(DIR_list, truth = NULL, silent = FALSE)

Arguments

DIR_list

The list of where Bayesian results are stored

truth

True etiologic fraction vector (must sum to 1) used to generate data; Default is NULL. If a vector is supplied, then only the first path in DIR_LIST is used.

silent

Default is FALSE. To suppress printing messages, set to TRUE.

Value

a list of length two. diff is the direct differences; prb is the percent relative bias.


zhenkewu/baker documentation built on March 17, 2022, 9:54 p.m.