prop.belowthreshold | R Documentation |
Proportions of cases and controls below a threshold of weight of evidence
prop.belowthreshold(densities, w.threshold)
densities |
Densities object produced by |
w.threshold |
Threshold value of weight of evidence (natural logs). |
Numeric vector of length 2 listing the proportions of controls and cases with weight of evidence below the given threshold.
data(cleveland) densities <- with(cleveland, Wdensities(y, posterior.p, prior.p)) w.threshold <- log(4) # threshold Bayes factor of 4 prop.belowthreshold(densities, w.threshold)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.