Monte-Carlo power of the Wilcoxon signed-rank test (Gibbons Ch 5.7.3)
Source:R/wsrpw.R
morie_wilcoxon_power.RdSimulates samples of size length(x) from Normal(effect_size, 1)
and reports the rejection rate of two-sided wilcox.test at level
alpha.
Examples
morie_wilcoxon_power(x = rnorm(50))
#> $statistic
#> [1] 0.919
#>
#> $n
#> [1] 50
#>
#> $effect_size
#> [1] 0.5
#>
#> $alpha
#> [1] 0.05
#>
#> $nsim
#> [1] 2000
#>
#> $se
#> [1] 0.006100779
#>
#> $method
#> [1] "Wilcoxon signed-rank power (Monte Carlo)"
#>