Learn R Programming

ks (version 1.8.11)

Hns: Normal scale bandwidth

Description

Normal scale bandwidth.

Usage

Hns(x, deriv.order=0)
hns(x, deriv.order=0)

Arguments

x
vector/matrix of data values
deriv.order
derivative order

Value

  • Full normal scale bandwidth matrix.

Details

Hns is equal to (4/(n*(d+2*r+2)))^(2/(d+2*r+4))*var(x), n = sample size, d = dimension of data, r = derivative order. hns is the analogue of Hns for 1-d data.

References

Chacon J.E., Duong, T. & Wand, M.P. (2011). Asymptotics for general multivariate kernel density derivative estimators. Statistica Sinica. 21, 807-840.

Examples

Run this code
x <- rmvnorm.mixt(1000)
Hns(x, deriv.order=1)
hns(x[,1], deriv.order=1)

Run the code above in your browser using DataLab