Compute smoothed densities for a spike-slab mixture distribution
1 | Wdensities.mix(y, W, in.spike, range.xseq = c(-25, 25), x.stepsize = 0.01)
|
y |
Binary outcome label (0 for controls, 1 for cases). |
W |
Weight of evidence. |
in.spike |
logical vector same length as y, TRUE if in spike component, FALSE otherwise. Typically used where high proportion of values of the predictor are zero |
range.xseq |
Range of points where the curves should be sampled. |
x.stepsize |
Distance between each point. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.