Learn R Programming

alR (version 2.2.0)

kdeGaussMom: Non-central Gaussian KDE moments.

Description

Calculate the non-central moments for a univariate Gaussian kernel density estimator.

Usage

kdeGaussMom(n, mu, h)

Arguments

n

The highest order of non-central moments saught.

mu

A vector of data points on which the kernel density estimator is based.

h

The kernel density estimator bandwidth.

Value

A vector of length n of non-central moments requested for a Gaussian kernel density estimator.

Examples

Run this code
# NOT RUN {
library(alR)
x <- rnorm(100)
h_x <- bw(x, type=-1)
kdeGaussMom(3, x, h_x)

# }

Run the code above in your browser using DataLab