binning.Rd
The function performs a binning in 1D, 2D or 3D.
binning(x, y, nbins, xrange = NULL)
x | design matrix, dimension n x d, |
---|---|
y | either a response vector of length n or NULL |
nbins | vector of length d containing number of bins for each dimension, may be set to NULL |
xrange | range for endpoints of bins for each dimension, either matrix
of dimension 2 x d or NULL. |
A list with components
matrix of coordinates of non-empty bin centers
number of observations in nonempty bins
Bin centers in dimension 1
if d>1
Bin centers in dimension 2
if d>2
Bin centers in dimension 3
Break points dimension 1
if d>1
Break points dimension 2
if d>2
Break points dimension 3
number of observations per bin
if !is.null(y)
mean of y in non-empty bins
if !is.null(y)
standard deviations of y in non-empty bins
Joerg Polzehl, polzehl@wias-berlin.de
This function has been adapted from the code of function binning in package sm.
See Also as aws.irreg