Description Usage Arguments Details Examples
This function calculates the ECOFF for the wild type of an 'TheBayesteApproach' object
1 |
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) |
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)
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.