heatmap.compress: Collapse a large data set for 'heatmap.fit'

Description Usage Arguments Value Author(s)

View source: R/heatmap.compress.R

Description

Reduces the size of large binary data sets by binning them according to their predicted probability [0, 1].

Usage

1
heatmap.compress(y, pred, init.grid)

Arguments

y

A vector of observations of the dependent variable (in {0,1}).

pred

A vector of predicted Pr(y = 1) corresponding to each element of y.

init.grid

The number of bins on the interval [0, 1] to use for compression of pred.

Value

A list with the elements:

y.out

The value of y, 0 or 1.

pred.out

The (binned) predicted Pr(y = 1) matching each observation.

weight.out

A weight parameter indicating the proportion of observations in the bin; sums to one.

pred.total.out

A vector of unique Pr(y = 1) bin values.

n.out

The number of observations (non-empty bins) after the data are collapsed.

retained.obs

A vector of indices for non-empty candidate bins (for internal use by heatmap.fit).

Author(s)

Justin Esarey <justin@justinesarey.com>



heatmapFit documentation built on May 19, 2017, 3:56 p.m.
Search within the heatmapFit package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.