Wdensities.crude: Calculate the crude smoothed densities of W in cases and in...

Description Usage Arguments Value

View source: R/wdists.R

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

1
2
3
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 y, coded 1 or 2. Typically set by Wdensities which calls this function.

Value

List of crude densities for controls and cases sampled at each point in the range provided.


wevid documentation built on Sept. 12, 2019, 5:04 p.m.