eda.stats.Rd
Generates summary statistics of mean, median, skew, kurtosis, min, max and quartiles.
eda.stats(x)
numeric array
requires timeDate library
Named list with the following items:
min, 1st quartile, median, mean, 3rd quartile, max
skewness
kurtosis
require(timeDate)
#> Loading required package: timeDate
# summary statistics for random normal data
# mean of 1. sd = 0.3
ndata<-rnorm(25,1,.3)
eda.stats(ndata)
#> $summary
#> Min. 1st Qu. Median Mean 3rd Qu. Max.
#> 0.07754 0.83495 0.99457 0.98143 1.15563 1.43282
#>
#> $skew
#> [1] -0.9214409
#> attr(,"method")
#> [1] "moment"
#>
#> $kurt
#> [1] 1.331815
#> attr(,"method")
#> [1] "excess"
#>
#summary statistics for right-skewed data
#mean of 1, sd=1
rdata<-rexp(25,rate=1)
eda.stats(rdata)
#> $summary
#> Min. 1st Qu. Median Mean 3rd Qu. Max.
#> 0.05336 0.40794 0.77972 0.97592 1.12564 6.19162
#>
#> $skew
#> [1] 3.495221
#> attr(,"method")
#> [1] "moment"
#>
#> $kurt
#> [1] 13.01585
#> attr(,"method")
#> [1] "excess"
#>