| vieu {modeest} | R Documentation |
Vieu's mode estimator is the value at which the kernel density derivative estimate is null.
vieu(x,
bw = NULL,
kernel = "gaussian",
abc = FALSE,
...)
x |
numeric. Vector of observations. |
bw |
numeric. The smoothing bandwidth to be used. |
kernel |
character. The kernel to be used. Available kernels are
|
abc |
logical. If |
... |
if |
vieu returns a numeric value, the mode estimate. If abc = TRUE,
the x value at which the density derivative estimate is null is returned. Otherwise,
the uniroot method is used.
The user should preferentially call vieu through
mlv(x, method = "vieu", ...).
This returns an object of class mlv.
Presently, vieu is quite slow.
P. Poncet
Vieu P. (1996). A note on density mode estimation. Statistics \& Probability Letters, 26:297–307.
# Unimodal distribution x <- rlnorm(10000, meanlog = 3.4, sdlog = 0.2) ## True mode lnormMode(meanlog = 3.4, sdlog = 0.2) ## Estimate of the mode M <- mlv(x, method = "vieu", kernel = "gaussian") print(M) plot(M)