h_isemixnorm: The ISE-optimal bandwidth in the case when the true density...

Description Usage Arguments Details Value References See Also Examples

View source: R/ICV.R

Description

Computing the ISE-optimal bandwidth in the case when the true density is the specified mixture of normal distributions and the Gaussian kernel is used to compute the ultimate density estimate.

Usage

1
h_isemixnorm(x, w, mu, sdev)

Arguments

x

numerical vector of data,

w

vector of weighs (positive numbers between 0 and 1 that add up to one),

mu

vector of means,

sdev

vector of standard deviations.

Details

Computing the ISE-optimal bandwidth (i.e. the minimizer of the ISE function) in the case when the true density is the mixture of normal distributions defined by the vector of weights w, the vector of means μ, and the vector of standard deviations σ. See expression (2.3) of Marron and Wand (1992). It is assumed that the normals are defined as parsimonious as possible. The normal distributions in the mixture should be ordered such that the means in μ are sorted in a nondecreasing order. The Gaussian kernel is used for computing the ultimate density estimate.

Value

The ISE-optimal bandwidth.

References

Marron, J.S., Wand, M.P. (1992). Exact Mean Integrated Squared Error. The Annals of Statistics, 20(2), 712-736.

See Also

mixnorm, ISE_mixnorm, MISE_mixnorm.

Examples

1
2
3
4
# ISE optimal bandwidth for a random sample of size n=100 generated from a normal mixture defined by
# w=c(1/5,1/5,3/5), mu=(0,1/2,13/12), sdev=c(1,2/3,5/9).
# This corresponds to the skewed unimodal density of Marron and Wand (1992).
h_isemixnorm(rnorm(100),c(1/5,1/5,3/5),c(0,1/2,13/12),c(1,2/3,5/9))

osavchuk/ICV documentation built on May 24, 2019, 3:59 p.m.