View source: R/RI_Quantile_20220919.R
pval_quantile | R Documentation |
Obtain the p-value for testing the null hypothesis H0:
\tau_{(k)} \leq c
, or H0: \tau_{(k)} \geq c
, or
H0: \tau_{(k)} = c
, where \tau_{(k)}
denotes individual
treatment effect at rank k.
pval_quantile(
Z,
Y,
k,
c,
alternative = "greater",
method.list = list(name = "Stephenson", s = 10),
score = NULL,
stat.null = NULL,
nperm = 10^6,
Z.perm = NULL,
switch = TRUE
)
Z |
An |
Y |
An |
k |
An integer between 1 and n specifying which quantile of individual effect is of interest. |
c |
A numerical object specifying the threshold for the null hypothesis. |
alternative |
A character takes value "greater", "less" and "two.sided", indicating the alternative hypothesis. |
method.list |
A list specifies the choice of the rank sum test statistic. For example, list(name="Wilcoxon") means the Wilcoxon rank sum statistic, and list(name = "Stephenson", s = 10) means the Stephenson rank sum statistic with parameter s=10. |
score |
An |
stat.null |
An vector whose empirical distribution approximates the randomization distribution of the rank sum statistic. |
nperm |
A positive integer representing the number of permutations for approximating the randomization distribution of the rank sum statistic. |
Z.perm |
A |
switch |
A logical object indicating whether performing treatment label switching to make the treated group have larger size. |
The p-value for testing the specified null hypothesis of interest.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.