How do I extract more than a pvalue HypothesisTests.jl?

Hi,
I’m using HypothesisTests.jl to do a series of 2 Sample Kolmogorov Smirnov tests. This means I’m looping through a large series of data sets and applying the test KS_object = ApproximateTwoSampleKSTest(data_set1, data_set2) . I need to be able to store the KS statistic as I loop through the datasets but I can’t see how to do this. If I look at fieldnames(typeof(KS_object)) , the KS stat is not stored in the fieldnames. I also can’t use the pvalue function as this is not what I want to extract. Any advice appreciated, the docs don’t have any examples for this test.

You can see what the test is showing you here:

To see:

julia> x = ApproximateTwoSampleKSTest(rand(10), rand(10))
Approximate two sample Kolmogorov-Smirnov test
----------------------------------------------
Population details:
    parameter of interest:   Supremum of CDF differences
    value under h_0:         0.0
    point estimate:          0.5

Test summary:
    outcome with 95% confidence: fail to reject h_0
    two-sided p-value:           0.1641

Details:
    number of observations:   [10,10]
    KS-statistic:              1.118033988749895


julia> n = x.n_x*x.n_y/(x.n_x+x.n_y)
5.0

julia> √(n)*x.δ
1.118033988749895