tests/testthat/_snaps/hl2_test.md

hl2_test works correctly

    Exact permutation test based on HL2-estimator

data:  x[1:5] and y[1:5]
D = 0.4821, p-value = 0.3333
alternative hypothesis: true location shift is not equal to 0
sample estimates:
HL2 of x and y 
     0.1932608
    Exact permutation test based on HL2-estimator

data:  x[1:5] and y[1:5]
D = 0.24926, p-value = 0.4048
alternative hypothesis: true location shift is not equal to 0
sample estimates:
HL2 of x and y 
     0.1932608
    Exact permutation test based on HL2-estimator

data:  x[1:5] and y[1:5]
S = -1.6143, p-value = 0.04762
alternative hypothesis: true ratio of squared scale parameters is not equal to 1
sample estimates:
HL2 of log(x^2) and log(y^2) 
                   -4.623997
    Exact permutation test based on HL2-estimator

data:  x[1:5] and y[1:5]
S = -1.6207, p-value = 0.06349
alternative hypothesis: true ratio of squared scale parameters is not equal to 1
sample estimates:
HL2 of log(x^2) and log(y^2) 
                   -4.623997
    Randomization test based on HL2-estimator (10000 random permutations)

data:  x[1:10] and y[1:10]
D = 0.90794, p-value = 0.05849
alternative hypothesis: true location shift is not equal to 0
sample estimates:
HL2 of x and y 
     0.6350023
    Randomization test based on HL2-estimator (10000 random permutations)

data:  x[1:10] and y[1:10]
D = 0.88651, p-value = 0.07779
alternative hypothesis: true location shift is not equal to 0
sample estimates:
HL2 of x and y 
     0.6350023
    Randomization test based on HL2-estimator (10000 random permutations)

data:  x[1:10] and y[1:10]
S = -0.75847, p-value = 0.128
alternative hypothesis: true ratio of squared scale parameters is not equal to 1
sample estimates:
HL2 of log(x^2) and log(y^2) 
                   -2.170979
    Randomization test based on HL2-estimator (10000 random permutations)

data:  x[1:10] and y[1:10]
S = -0.76733, p-value = 0.1301
alternative hypothesis: true ratio of squared scale parameters is not equal to 1
sample estimates:
HL2 of log(x^2) and log(y^2) 
                   -2.170979
    Asymptotic test based on HL2-estimator

data:  x and y
D = 1.7672, p-value = 0.07719
alternative hypothesis: true location shift is not equal to 0
sample estimates:
HL2 of x and y 
     0.3994309
    Asymptotic test based on HL2-estimator

data:  x and y
S = -1.32, p-value = 0.1868
alternative hypothesis: true ratio of squared scale parameters is not equal to 1
sample estimates:
HL2 of log(x^2) and log(y^2) 
                  -0.7145174


Try the robnptests package in your browser

Any scripts or data that you put into this service are public.

robnptests documentation built on Feb. 16, 2023, 7:10 p.m.