Do a 'scatterplot bin smoothing'
plotBin(
x,
y,
h = NULL,
nbins = NULL,
cutpoint = 0,
plot = TRUE,
type = c("value", "number"),
xlim = range(x, na.rm = TRUE),
cex = 0.9,
main = NULL,
xlab,
ylab,
...
)
Forcing variable
Output
the bandwidth (defaults to 2*sd(runvar)*length(runvar)^(-.5)
)
number of Bins
Cutpoint
Logical. Whether to plot or only returned silently
Whether returns the y averages, or the x frequencies
Usual parameters passed to plot(), see par
further arguments passed to plot.
Returns silently values
McCrary, Justin.