Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, 1 invisible), 583 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
No ADF test in Zorro? #485752
04/19/22 07:53
04/19/22 07:53
Joined: Feb 2022
Posts: 21
T
TrumpLost Offline OP
Newbie
TrumpLost  Offline OP
Newbie
T

Joined: Feb 2022
Posts: 21
I'm surprised there's no ADF test built-in for Zorro. Is there any function in Zorro to test for unit root?

Re: No ADF test in Zorro? [Re: TrumpLost] #485756
04/19/22 10:07
04/19/22 10:07
Joined: Apr 2008
Posts: 586
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 586
Austria
Things are built in when people need them, but it seems no one until now wanted an ADF test. If you have C code you can implement it yourself, or you call it from a R package.

Re: No ADF test in Zorro? [Re: TrumpLost] #485761
04/19/22 11:54
04/19/22 11:54
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
You can use the ADF test from the "tseries" package.

Ex = adf.test(MyDataSeries)
Ex$statistic is the Dickey-Fuller statistic, Ex$parameter is the lag order, and Ex$p.value is the p-value.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1