A set of descriptive statistics for circular data

circ_descr(x, w = NULL, d = NULL, na.rm = F)

Arguments

x

vector of angles

w

weights for the values in the vector

d

correction for the bias for data with known spacing

na.rm

a logical value indicating whether NA values should be removed before the computation proceeds

Value

a list with descriptive statistics

  • mu - mean

  • sigma - standard deviation

  • skew_pewsey - skewness as defined by Pewsey

  • skew_fischer - skewness as defined by Fischer

  • rho - mean resultant length

  • skew_rel_to_zero - skewness relative to zero

Examples

x <- c(rnorm(50,0,0.5), rnorm(20,1,0.5))
circ_descr(x)
#> $mu
#> [1] 0.2693059
#> 
#> $sigma
#> [1] 0.6664516
#> 
#> $skew_pewsey
#> [1] -0.04723641
#> 
#> $skew_fischer
#> [1] -2.58665
#> 
#> $rho
#> [1] 0.8008522
#> 
#> $skew_rel_to_zero
#> [1] 0.1487824
#>