Revision a9ad709c106fcaa6c21d03edad7c83fa02a3fbf0 authored by Javier Barbero on 14 September 2022, 17:40:23 UTC, committed by GitHub on 14 September 2022, 17:40:23 UTC
1 parent 63f7300
Raw File
deartstest.jl
# Tests for BootstrapRadial DEA Returns To Scale Test
@testset "BootstrapRadialDEAModel" begin

    X = [2, 4, 3, 5, 6]
    Y = [1, 2, 3, 4, 5]

    # Input oriented
    rtstest = deartstest(X, Y, orient = :Input, rng = StableRNG(1234567))

    @test rtstest.S ≈ 0.802947 atol = 1e-5
    @test rtstest.p ≈ 0.335 atol = 1e-2
    @test rtstest.h ≈ 0.309757 atol = 1e-5
    @test criticalvalue(rtstest, 0.05) ≈ 0.674615 atol = 1e-5

    # Output oriented
    rtstest = deartstest(X, Y, orient = :Output, rng = StableRNG(1234567))

    @test rtstest.S ≈ 0.813093 atol = 1e-5
    @test rtstest.p ≈ 0.235 atol = 1e-2
    @test rtstest.h ≈ 0.259230 atol = 1e-5
    @test criticalvalue(rtstest, 0.05) ≈ 0.724159 atol = 1e-5

    # Print
    show(IOBuffer(), rtstest)
    
end

back to top