modecontin: Mode of Continuous Variable

Description Usage Arguments Value References Examples

View source: R/modecontin.R

Description

Estimates the mode of a continuous variable.

Usage

1

Arguments

x

A numeric vector.

plot

A logical scalar indicating whether to plot the results, default FALSE.

...

Additional arguments to the density function.

Value

The estimated mode of x.

References

Based on a method posted by Peter Dalgaard on 29 Aug 2008 on r-help.

Examples

1
2
x <- rnorm(100)
modecontin(x, TRUE)

JVAdams/jvamisc documentation built on Aug. 11, 2021, 6:43 a.m.