tidy_kurtosis_vec {TidyDensity}R Documentation

Compute Kurtosis of a Vector

Description

This function takes in a vector as it's input and will return the kurtosis of that vector. The length of this vector must be at least four numbers. The kurtosis explains the sharpness of the peak of a distribution of data.

⁠((1/n) * sum(x - mu})^4) / ((()1/n) * sum(x - mu)^2)^2⁠

Usage

tidy_kurtosis_vec(.x)

Arguments

.x

A numeric vector of length four or more.

Details

A function to return the kurtosis of a vector.

Value

The kurtosis of a vector

Author(s)

Steven P. Sanderson II, MPH

See Also

https://en.wikipedia.org/wiki/Kurtosis

Other Vector Function: bootstrap_p_vec(), bootstrap_q_vec(), cgmean(), chmean(), ckurtosis(), cmean(), cmedian(), csd(), cskewness(), cvar(), tidy_scale_zero_one_vec(), tidy_skewness_vec()

Other Statistic: ci_hi(), ci_lo(), tidy_range_statistic(), tidy_skewness_vec(), tidy_stat_tbl()

Other Vector Function: bootstrap_p_vec(), bootstrap_q_vec(), cgmean(), chmean(), ckurtosis(), cmean(), cmedian(), csd(), cskewness(), cvar(), tidy_scale_zero_one_vec(), tidy_skewness_vec()

Examples

tidy_kurtosis_vec(rnorm(100, 3, 2))


[Package TidyDensity version 1.5.0 Index]