
Normality and lognormality tests (UNE-EN 689)
Source:R/une689_estadistica.R
une689_normality_test.RdApplies the Shapiro-Wilk test to the ED values (to test normality) and to their logarithm (to test lognormality).
Arguments
- ed
Numeric vector. Daily exposure (ED) values, all strictly positive. At least 3 values are required (minimum required by
stats::shapiro.test()); UNE-EN 689 additionally requires a minimum of 6 for the full statistical assessment.
Examples
une689_normality_test(c(5, 6, 7, 8, 9, 10))
#> $W_normal
#> [1] 0.9818894
#>
#> $pval_normal
#> [1] 0.960555
#>
#> $W_lognormal
#> [1] 0.9751017
#>
#> $pval_lognormal
#> [1] 0.9247816
#>