compute_results_finite | R Documentation |
compute_results_finite
is a helper function to compute the test
decision for the HL1-, HL2-, and MED-test when method = "randomization"
or method = "permutation"
.
compute_results_finite(x, y, alternative, delta, method, n.rep, type)
x |
a (non-empty) numeric vector of data values. |
y |
a (non-empty) numeric vector of data values. |
alternative |
a character string specifying the alternative hypothesis, must be one of "two.sided", "greater", or "less". |
delta |
a numeric value indicating the true difference in the location or scale parameter, depending on whether the test should be performed for a difference in location or in scale. |
method |
a character string specifying how the p-value is computed with
possible values |
n.rep |
an integer value specifying the number of random splits used to
calculate the randomization distribution if |
type |
a character string specifying the desired test statistic. It must
be one of |
A named list containing the following components:
statistic |
the value of the test statistic. |
estimates |
the location estimates for both samples in case of the HL1- and the MED-tests. The estimate for the location difference in case of the HL2-tests. |
p.value |
the p-value for the test. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.