FindECOFF: ECOFF Finder

Description Usage Arguments Details Examples

View source: R/ecoff.R

Description

This function calculates the ECOFF for the wild type of an 'TheBayesteApproach' object

Usage

1
FindECOFF(obj, pi.level = 0.3, quantile = 0.01)

Arguments

obj

object of class TheBayesteApproach

pi.level

The level of summed up component probabilities from the distributions coming from the "right" side that needs to be exceeded (default is 0.3)

quantile

The quantile from the component where the pi.level is exceeded (default is 0.01)

Details

This function takes an object of the class TheBayesteApproach and calculates the ECOFF. The ECOFF is the epidemiological cut-off value that separates bacteria without (wild type) and with acquired resistance mechanisms (non-wild type) to the antibiotics in question. In order to calculate the ECOFF, first the wild type component is selected by finding the component where the sum of its π_k and the π's of all components with a higher μ_k exceed a certain threshold (by default: 0.3). Once this component is found a certain quantile is taken as the ECOFF value (by default: 0.01)

Examples

1
2
3
4
data("Antibiotics")
bayes.density <- TheBayesteApproach(Antibiotics)
FindECOFF(bayes.density, pi.level = 0.3, quantile = 0.02)
plot(bayes.density, ECOFF = TRUE)

sp2019-antibiotics/ECOFFBayes documentation built on Aug. 28, 2019, 6:06 p.m.