BagHist | R Documentation |
Estimate the density of a univariate data vector using BagHist. First, obtain bootstrap samples of the input vector data. For each sample, a histogram is computed using an optimized number of break points. The BagHist estimation is the mean of the individual histograms.
BagHist(xx, grid, B = 10)
xx |
numeric vector. |
grid |
numeric vector used for evaluation |
B |
number of bootstrap samples. |
numeric vector with the density estimated over the given grid using BagHist
estimation
x <- rnorm(100) BagHist(x, seq(-6, 6, length.out = 100), B = 50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.