powered by
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
kurtosis_vec(.x)
The kurtosis of a vector
A numeric vector of length four or more.
Steven P. Sanderson II, MPH
A function to return the kurtosis of a vector.
https://en.wikipedia.org/wiki/Kurtosis
Other Vector Function: cgmean(), chmean(), ckurtosis(), cmean(), cmedian(), crange(), csd(), cskewness(), cvar(), euclidean_distance(), rw_range(), skewness_vec()
cgmean()
chmean()
ckurtosis()
cmean()
cmedian()
crange()
csd()
cskewness()
cvar()
euclidean_distance()
rw_range()
skewness_vec()
set.seed(123) kurtosis_vec(rnorm(100, 3, 2))
Run the code above in your browser using DataLab