# Is a Phillips-Peron Test Available?

**URL:** <https://discourse.julialang.org/t/is-a-phillips-peron-test-available/58793>\
**Category:** General Usage\
**Tags:** question\
**Created:** [April 7, 2021, 9:27pm UTC](https://discourse.julialang.org/t/is-a-phillips-peron-test-available/58793 "2021-04-07T21:27:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RalphH](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@RalphH](https://discourse.julialang.org/u/RalphH)\
**Post date:** [April 7, 2021, 9:27pm UTC](https://discourse.julialang.org/t/is-a-phillips-peron-test-available/58793/1 "2021-04-07T21:27:35Z")

</div>

Hello everyone, is a Phillips-Peron test available in Julia? If not, when will one be available? I have searched but can’t find one.

I’m working with heteroskedastic data, so the ADF test isn’t adequate, and replacing Julia’s ADF test with RCall for R’s PP.test makes execution time much too slow (it increased my function’s runtime by a whopping factor of 13, which I timed using the BenchmarkTools package).

---

<div class="post-metadata">

**Author:** ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Post date:** [April 7, 2021, 9:56pm UTC](https://discourse.julialang.org/t/is-a-phillips-peron-test-available/58793/2 "2021-04-07T21:56:02Z")

</div>

I don’t know anything about this, unfortunately, but if you find it it should probably be in / be added to [HypothesisTests package · HypothesisTests.jl](https://juliastats.org/HypothesisTests.jl/stable/) (which I assume you’re aware of).

---

<div class="post-metadata">

**Author:** ![RalphH](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@RalphH](https://discourse.julialang.org/u/RalphH)\
**Post date:** [April 7, 2021, 10:51pm UTC](https://discourse.julialang.org/t/is-a-phillips-peron-test-available/58793/3 "2021-04-07T22:51:46Z")

</div>

@ crstnbr Thank you for responsding. That package is where the ADF test lives, but no PP test that I could find, there or elsewhere.

---

<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:** [April 8, 2021, 4:37am UTC](https://discourse.julialang.org/t/is-a-phillips-peron-test-available/58793/4 "2021-04-08T04:37:39Z")

</div>

To answer the question “when will one be available”: whenever someone steps up to write an implementation - this seems like a good opportunity to contribute to HypothesisTests!

---

<div class="post-metadata">

**Author:** ![amrods](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/amrods/32/2543_2.png) [@amrods](https://discourse.julialang.org/u/amrods)\
**Post date:** [April 8, 2021, 4:47am UTC](https://discourse.julialang.org/t/is-a-phillips-peron-test-available/58793/5 "2021-04-08T04:47:49Z")

</div>

Adding to that, it seems to be a low hanging fruit. Just follow the approach in the ADF test already in there.

---

<div class="post-metadata">

**Author:** ![RalphH](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@RalphH](https://discourse.julialang.org/u/RalphH)\
**Post date:** [April 8, 2021, 7:57pm UTC](https://discourse.julialang.org/t/is-a-phillips-peron-test-available/58793/6 "2021-04-08T19:57:12Z")

</div>

Thank you for your responses.

I appreciate the DIY attitude of a new language, so I’ll take a shot at it. But I’m brand new to Julia, so it might take a while.
