BagHistfp | R Documentation |
Estimate the density of a univariate data vector using BagHistFP. First, obtain bootstrap samples of the input vector data. For each sample, a histogram is computed using an optimized number of break points. On top of it, a frequency polygon is obtained. The BagHistFP estimation is the mean of the individual frequency polygons.
BagHistfp(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 BagHistFP
x <- rnorm(100) BagHistfp(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.