estimate_mode: Estimate mode of a distribution based on Kernel Density...

View source: R/utils.R

estimate_modeR Documentation

Estimate mode of a distribution based on Kernel Density Estimation

Description

The function estimates the mode of a distribution based on Kernel Density Estimation.

Usage

estimate_mode(x, na_rm = TRUE, ...)

Arguments

x

Numeric vector.

na_rm

Logical value. If TRUE, missing values are dropped.

...

Further arguments passed to stats::densitiy().

Value

mode Numeric value. The mode of the distribution.


ahaeusser/tscv documentation built on July 26, 2023, 3:18 p.m.