Wdensities.crude {wevid} | R Documentation |
Calculate the crude smoothed densities of W in cases and in controls
Description
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.
Usage
Wdensities.crude(y, W, xseq, adjust.bw = 1)
Wdensities.mix(y, W, xseq, mixcomponent)
Arguments
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 |
Value
List of crude densities for controls and cases sampled at each point in the range provided.
[Package wevid version 0.6.2 Index]