kernel.g.density: Gaussian kernel density estimation

View source: R/kernel.g.density.R

kernel.g.densityR Documentation

Gaussian kernel density estimation

Description

Estimates the density function using the Gaussian kernel

Usage

kernel.g.density(data, points, h)

Arguments

data

vector of observations

points

in which the function is evaluated

h

bandwidth

Value

density estimation

Examples

x = rnorm(100,1,2)
gridd = seq(-5,5,length.out=1000)
h = (4/3)^(1/5)*sd(x)*length(x)^(-1/5)
kernel.g.density (x,gridd,h)

OVL.CI documentation built on Nov. 14, 2023, 1:06 a.m.