Measures the skewness (a measure of the asymmetry of the probability distribution) and the kurtosis (measure of the "tailedness" of the probability distribution). Standardized versions are the skewness and kurtosis normalized by the mean resultant length (Mardia 1972).
Arguments
- x
numeric vector. Values in degrees.
- w
(optional) Weights. A vector of positive numbers and of the same length as
x.- axial
logical. Whether the data are axial, i.e. pi-periodical (
TRUE, the default) or directional, i.e. \(2 \pi\)-periodical (FALSE).- na.rm
logical value indicating whether
NAvalues inxshould be stripped before the computation proceeds.
Value
list containing
skewnesssecond central sine momentum, i.e. the skewness
std_skewnessstandardized skewness
kurtosissecond central cosine momentum, i.e. the kurtosis
std_kurtosisstandardized kurtosis
Details
Negative values of skewness indicate skewed data in counterclockwise direction.
Large kurtosis values indicate tailed, values close to 0 indicate packed
data.
Examples
data("nuvel1")
PoR <- subset(nuvel1, nuvel1$plate.rot == "na")
sa.por <- PoR_shmax(san_andreas, PoR, "right")
second_central_moment(sa.por$azi.PoR)
#> $skewness
#> [1] -0.02661796
#>
#> $std_skewness
#> [1] -0.1758456
#>
#> $kurtosis
#> [1] 0.3800558
#>
#> $std_kurtosis
#> [1] 1.453805
#>
second_central_moment(sa.por$azi.PoR, w = weighting(san_andreas$unc))
#> $skewness
#> [1] -0.04106606
#>
#> $std_skewness
#> [1] -0.2712938
#>
#> $kurtosis
#> [1] 0.3998642
#>
#> $std_kurtosis
#> [1] 1.699345
#>
