View source: R/testStatistics.R
rob_perm_statistic | R Documentation |
rob_perm_statistic
calculates test statistics for robust
permutation/randomization tests based on the sample median, the one-sample
Hodges-Lehmann estimator, or the two-sample Hodges-Lehmann estimator.
rob_perm_statistic( x, y, type = c("HL11", "HL12", "HL21", "HL22", "MED1", "MED2"), na.rm = FALSE )
x |
a (non-empty) numeric vector of data values. |
y |
a (non-empty) numeric vector of data values. |
type |
a character string specifying the desired test statistic. It must
be one of |
na.rm |
a logical value indicating whether NA values in |
The test statistics returned by rob_perm_statistic
are of the
form
D_i/S_j
where the D_i, i = 1,...,3, are different
estimators of location and the S_j, j = 1,...,4, are estimates for
the mutual sample scale. See \insertCiteFriDeh11robu;textualrobnptests
or the vignette vignette("robnptests")
for details.
A named list containing the following components:
statistic |
the selected test statistic. |
estimates |
estimate of location for each sample if available. |
FriDeh11roburobnptests
# Generate random samples set.seed(108) x <- rnorm(20); y <- rnorm(20) # Compute HL21-statistic rob_perm_statistic(x, y, type = "HL21")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.