View source: R/paired_equivalence_generic.R
paired_equivalence_test.data.frame | R Documentation |
Perform equivalence testing on paired samples
## S3 method for class 'data.frame' paired_equivalence_test( x, y, y_type = c("both", "criterion", "comparison"), alpha = 0.05, na.rm = TRUE, scale = c("relative", "absolute"), absolute_region_width = NULL, relative_region_width = NULL, ... ) ## Default S3 method: paired_equivalence_test( x, y, y_type = c("both", "criterion", "comparison"), alpha = 0.05, na.rm = TRUE, scale = c("relative", "absolute"), absolute_region_width = NULL, relative_region_width = NULL, ... ) paired_equivalence_test( x, y, y_type = c("both", "criterion", "comparison"), alpha = 0.05, na.rm = TRUE, scale = c("relative", "absolute"), absolute_region_width = NULL, relative_region_width = NULL, ... )
x |
numeric vector representing the (possibly surrogate) sample |
y |
numeric vector representing the (possibly criterion) sample. Index
paired with |
y_type |
classification of |
alpha |
the alpha level for the test |
na.rm |
logical. Omit mean values for mean calculations? |
scale |
character specifying whether the test should occur on an
absolute or relative scale. Must be one of |
absolute_region_width |
the region width for use when |
relative_region_width |
the region width for use when |
... |
further arguments passed to methods. Currently unused. |
a 'paired_equivalence' object summarizing the test input and results
If a value is not specified for the region width that corresponds with
scale
, a default value will be assigned with a warning.
set.seed(1544) x <- data.frame( var1 = rnorm(500, 15, 4), var2 = rnorm(500, 23, 7.3) ) y <- rnorm(500, 17.4, 9) test_result <- paired_equivalence_test( x, y, relative_region_width = 0.25 ) lapply(test_result, head)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.