Description Usage Arguments Value
These functions allow to compute the smoothed densities of the weight of
evidence in cases and in controls from the crude probabilities.
Wdensities.crude
is designed for the general case; if the model
probabilities reflect a spike-slab mixture distribution, where a high
proportion of values of the predictor are zero, then Wdensities.mix
will be more appropriate.
1 2 3 | Wdensities.crude(y, W, xseq, adjust.bw = 1)
Wdensities.mix(y, W, xseq, mixcomponent)
|
y |
Binary outcome label (0 for controls, 1 for cases). |
W |
Weight of evidence. |
xseq |
Sequence of points where the curves should be sampled. |
adjust.bw |
Bandwidth adjustment. |
mixcomponent |
integer vector same length as |
List of crude densities for controls and cases sampled at each point in the range provided.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.