tests/testthat/_snaps/trimmed_test.md

trimmed_test works correctly

    Exact permutation test based on trimmed means

data:  x[1:5] and y[1:5]
trimmed t = 1.091, df = 4, p-value = 0.3333
alternative hypothesis: true location shift is not equal to 0
sample estimates:
Trimmed mean of x Trimmed mean of y 
      -0.06750796       -0.49828396
    Exact permutation test based on trimmed means

data:  x[1:5] and y[1:5]
trimmed t = -2.834, df = 4, p-value = 0.04762
alternative hypothesis: true ratio of squared scale parameters is not equal to 1
sample estimates:
Trimmed mean of log(x^2) Trimmed mean of log(y^2) 
              -5.2624179               -0.7411241
    Randomization test based on trimmed means (1000 random permutations)

data:  x[1:10] and y[1:10]
trimmed t = -1.7147, df = 10, p-value = 0.1179
alternative hypothesis: true ratio of squared scale parameters is not equal to 1
sample estimates:
Trimmed mean of log(x^2) Trimmed mean of log(y^2) 
              -3.3877856               -0.9432663
    Randomization test based on trimmed means (10000 random permutations)

data:  x[1:10] and y[1:10]
trimmed t = -1.7147, df = 10, p-value = 0.1161
alternative hypothesis: true ratio of squared scale parameters is not equal to 1
sample estimates:
Trimmed mean of log(x^2) Trimmed mean of log(y^2) 
              -3.3877856               -0.9432663
    Yuen's t-test

data:  x and y
trimmed t = 1.9678, df = 34, p-value = 0.05729
alternative hypothesis: true location shift is not equal to 0
sample estimates:
Trimmed mean of x Trimmed mean of y 
        0.1326185        -0.3042663
    Yuen's t-test

data:  x and y
trimmed t = -0.7517, df = 34, p-value = 0.4574
alternative hypothesis: true ratio of squared scale parameters is not equal to 1
sample estimates:
Trimmed mean of log(x^2) Trimmed mean of log(y^2) 
               -1.545421                -1.101256


s-abbas/robTests documentation built on Feb. 20, 2023, 10:14 a.m.