bandwidth_nrd0(x, ...) bandwidth_nrd(x, ...) bandwidth_ucv(x, ...) bandwidth_bcv(x, ...) bandwidth_SJ(x, ...) bandwidth_dpi(x, ...)
A numeric vector giving a sample.
Arguments passed on to
number of bins to use.
range over which to minimize. The default is
almost always satisfactory.
hmax is calculated internally
from a normal reference bandwidth.
"ste" ("solve-the-equation") or
"dpi" ("direct plug-in"). Can be abbreviated.
"ste", the convergence tolerance for
uniroot. The default leads to bandwidth estimates
with only slightly more than one digit accuracy, which is sufficient
for practical density estimation, but possibly not for theoretical
A single number giving the bandwidth
These are loose wrappers around the corresponding
in stats. See, for example,
bandwidth_dpi(), which is the default bandwidth estimator in ggdist,
is the Sheather-Jones direct plug-in estimator, i.e.
bw.SJ(..., method = "dpi").