Learn R Programming

modeest (version 2.4.0)

asselin: The Asselin de Beauville mode estimator

Description

This mode estimator is based on the algorithm described in Asselin de Beauville (1978).

Usage

asselin(x, bw = NULL, ...)

Arguments

x

numeric. Vector of observations.

bw

numeric. A number in (0, 1]. If bw = 1, the selected 'modal chain' may be too long.

...

further arguments to be passed to the quantile function.

Value

A numeric value is returned, the mode estimate.

References

  • Asselin de Beauville J.-P. (1978). Estimation non parametrique de la densite et du mode, exemple de la distribution Gamma. Revue de Statistique Appliquee, 26(3):47-70.

See Also

mlv for general mode estimation.

Examples

Run this code
# NOT RUN {
x <- rbeta(1000, shape1 = 2, shape2 = 5)

## True mode:
betaMode(shape1 = 2, shape2 = 5)

## Estimation:
asselin(x, bw = 1)
asselin(x, bw = 1/2)
mlv(x, method = "asselin")

# }

Run the code above in your browser using DataLab