terpstrapower: Power for the nonparametric Terpstra test for an ordered effect.
Description
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.
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.
Arguments
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.