powered by
This function takes in a vector as it's input and will return the skewness of that vector. The length of this vector must be at least four numbers. The skewness explains the 'tailedness' of the distribution of data.
((1/n) * sum(x - mu})^3) / ((()1/n) * sum(x - mu)^2)^(3/2)
skewness_vec(.x)
The skewness of a vector
A numeric vector of length four or more.
Steven P. Sanderson II, MPH
A function to return the skewness of a vector.
https://en.wikipedia.org/wiki/Skewness
Other Vector Function: cgmean(), chmean(), ckurtosis(), cmean(), cmedian(), crange(), csd(), cskewness(), cvar(), euclidean_distance(), kurtosis_vec(), rw_range()
cgmean()
chmean()
ckurtosis()
cmean()
cmedian()
crange()
csd()
cskewness()
cvar()
euclidean_distance()
kurtosis_vec()
rw_range()
set.seed(123) skewness_vec(rnorm(100, 3, 2))
Run the code above in your browser using DataLab