Description Usage Arguments Details Value References Examples

Bootstrap and plug-in bandwidth selectors for kernel density estimation with binned data.

1 2 3 4 |

`n` |
Positive integer. Size of the complete sample. |

`y` |
Vector. Observed values. They define the extremes of the sequence of intervals in which data is binned. |

`w` |
Vector. Proportion of observations within each interval. |

`ni` |
Vector. Number of observations within each interval. |

`gboot` |
Positive real number. Pilot bandwidth for the bootstrap bandwidth selector. |

`pilot.type` |
1, 2 or 3. If |

`hn` |
Positive integer. Size of the grid of bandwidths for which MISE will be approximated. Defaults to 100. |

`plugin.type` |
Character. If |

`confband` |
Logical. If TRUE, bootstrap confidence bands are constructed for the density function. Defaults to FALSE. |

`alpha` |
Real number between 0 and 1. Significance level for the bootstrap confidence bands. Defaults to 0.05. |

`B` |
Positive integer. Number of bootstrap resamples used when constructing confidence bands. Defaults to 1000. |

`plot` |
Logical. If TRUE, kernel density estimators are plotted along with (optional) bootstrap confidence bands. Defaults to TRUE. |

`print` |
Logical. If TRUE and confband is TRUE, the percentage of bootstrap resamples already evaluated is printed. Defaults to TRUE. |

`model` |
Character. Name of the parametric family of distributions to be fitted for the grouped sample. Parameters are estimated by maximum likelihood. |

`parallel` |
Logical. If TRUE, confidence bands are estimated using parallel computing with sockets. |

`pars` |
Environment. Needed for the well functioning of the script. DO NOT modify this argument. |

If `pilot.type`

= 1, an heuristic rule is used for calculating the pilot bandwidth. It's not recommended when population's density function is suspected to be highly multimodal.

If `pilot.type`

= 2, the pilot bandwidth is such that the kernel density estimator with bandwidth `gboot`

approximates the histogram of the grouped sample minimizing the residual sum of squares. If `pilot.type`

= 3, a penalty is imposed on the curvature of the kernel density estimator with bandwidth `gboot`

. The penalty parameter is selected as to best approximate the curvature of the true density.

A list with components

`h_boot` |
Bootstrap bandwidth selector. |

`h_plugin` |
Plug-in bandwidth selector. |

TesisMiguel2015binnednp

\insertRefJNS2016binnednp

\insertRefTest2017binnednp

1 2 3 4 5 6 7 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.