apaRegressogram(X, Y, nBins, IsSortedXYOtherwiseY)
Excel
=apaRegressogram(X, Y, nBins, IsSortedXYOtherwiseY)Result
Regressogram, a non-parametric method for estimating a regression function, i.e. the regression analogue of a histogram: the mean of Y within bins of X.
Syntax
X: n x 1 vector of the independent variable
Y: n x 1 vector of the dependent variable
nBins: number of bins to segment the data
IsSortedXYOtherwiseY: TRUE to return the result sorted in ascending order of X, FALSE to retain the original order of X
