Usage
sen(d, mm = NULL, gamma = 1, alternative = c("greater", "less"),
approx.method = c("normal", "permutation"),
score.method = c("approximate", "exact"), tau = 0, num.perms = 10000)Arguments
d
a vector of treatment-minus-control differences
mm
a vector (m, munder, mover) or a matrix, each column a vector (m, munder, mover) that indicates the U-statistic.s NULL means Wilcoxon's signed rank test.
gamma
a vector of sensitivity parameters (must be >= 1).
alternative
report p-value corresponds to the maximum ("upper") or minimum ("lower") bound
approx.method
how to compute the $p$-value upper bound? either "normal" approximation or random "permutations".
score.method
either approximate score or exact score
tau
a scalar, null hypothesis is the additive effect is tau (default 0)
num.perms
number of Monte-Carlo simulations used to compute the sensivitiy value, if approx.method is "permutations".