denspr(x, n.interval = NULL, df = 5, knots.mode = TRUE, type.nclass = c("wand", "scott", "FD"), addx=FALSE)NULL, n.interval is estimated by the method specified by
type.nclass.TRUE the df - 1 knots are centered around the
mode and not the median of the density, where the mode is estimated by the
midpoint of the cell of the histogram that contains the largest number of
observations. If FALSE, the default knots are used in the function ns.
Thus, if FALSE the basis matrix will be generated by ns(x, df = 5).n.interval is specified.
By default, the method of Wand (1994) with
level = 1 (see the help page of dpih in the package KernSmooth) is used.
For the other choices, see nclass.scott.x be added to the output? Necessary when the estimated density
should be plotted by plot(out) or lines(out), where out is
the output of denspr.denspr consisting of
x containing the estimated density
for each of the observationscenter composed of the number
of observations of the corresponding cellsnsx if addx = TRUE; otherwise, NULL.Wand, M.P. (1997). Data-based choice of histogram bin width. American Statistician, 51, 59--64.
cat.ebam