View source: R/terpstrapower.R
terpstrapower | R Documentation |
terpstrapower
approximates power for the one-sided Terpstra test,
using a normal approximation with expectations under the null and alternative, and using the null standard deviation.
terpstrapower(
nreps,
shifts,
distname = c("normal", "logistic"),
level = 0.025,
mc = 0
)
nreps |
The numbers in each group. |
shifts |
The offsets for the various populations, under the alternative hypothesis. |
distname |
The distribution of the underlying observations; normal and logistic are currently supported. |
level |
The test level. |
mc |
Zero indicates asymptotic calculation. Positive for MC calculation. |
The standard normal-theory power formula is used.
A list with components power, giving the power approximation, expect, giving null and alternative expectations, var, giving the null variance, probs, giving the intermediate output from pairwiseprobability, and level.
terpstrapower(rep(10,3),c(0,1,2),"normal")
terpstrapower(c(10,10,10),0:2,"normal",mc=1000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.