powered by
Proportions of cases and controls below a threshold of weight of evidence
prop.belowthreshold(densities, w.threshold)
Densities object produced by Wdensities.
Wdensities
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.
# NOT RUN { 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) # }
Run the code above in your browser using DataLab