# How to extract pvalue?

**URL:** <https://discourse.julialang.org/t/how-to-extract-pvalue/103327>\
**Category:** New to Julia\
**Tags:** question, statistics\
**Created:** [August 29, 2023, 12:24pm UTC](https://discourse.julialang.org/t/how-to-extract-pvalue/103327 "2023-08-29T12:24:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sahil\_Khan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sahil_khan/32/47573_2.png) [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Post date:** [August 29, 2023, 12:24pm UTC](https://discourse.julialang.org/t/how-to-extract-pvalue/103327/1 "2023-08-29T12:24:19Z")

</div>

Hello i’m using ` EqualVarianceTTest()` from HypothesisTests.jl. I did test and it gives a summary report but i don’t know how can i extract some specific values from summary? such as p-value in case i want to do several tests and store just p-values or something else.

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [August 29, 2023, 12:33pm UTC](https://discourse.julialang.org/t/how-to-extract-pvalue/103327/2 "2023-08-29T12:33:24Z")

</div>

Pretty straightforward:

```julia
julia> using HypothesisTests

julia> evtt = EqualVarianceTTest(rand(20), rand(20))
Two sample t-test (equal variance)
----------------------------------
Population details:
    parameter of interest: Mean difference
    value under h_0: 0
    point estimate: 0.0843648
    95% confidence interval: (-0.1181, 0.2868)

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

Details:
    number of observations: [20,20]
    t-statistic: 0.8435071535633514
    degrees of freedom: 38
    empirical standard error: 0.10001670523306273

julia> pvalue(evtt)
0.4042235257003738

```
