JonasMoss / kdensity

An R package for kernel density estimation with parametric starts and asymmetric kernels.
Other
14 stars 4 forks source link

Overflow in integrate? #24

Closed JonasMoss closed 5 years ago

JonasMoss commented 6 years ago

This code causes problems:

speed = morley$Speed
plot(kdensity(speed, start = "normal"))

But this does not:

speed = morley$Speed/sd(morley$Speed)
plot(kdensity(speed, start = "normal"))

This is probably due to an overflow issue: Should we recenter the data prior to integration?