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 Dec. 25, 2024, 10:11 a.m.