[R] Diebold Mariano

2010-06-25 Thread Brajkovic J.
Hello, I am trying to calculate Diebold Mariano test statistic (DM) using dm.test module. I also try to do the same thing with STATA and I get vastly different results (4.5 vs 25). Does someone have experience with this module? I tried to calculate the DM statistic manually. If by ā€œdā€ I

[R] Unit root

2009-03-24 Thread Brajkovic J.
I am confused by obtaining different results when testing for unit root when using different packages. I have 2625 price entries for which I want to determine whether they exhibit unit root. First I test using adf.test from tseries package by running: adf.test(P, k=30) Augmented Dickey-Fuller

[R] GARCH variance equation with dummy variables

2009-03-12 Thread Brajkovic J.
I am estimating daily electricity prices using GARCH (1,1). What I would like to see is whether there is some kind of daily or seasonal effect in variance of the price series. For instance, variance of electricity prices might be different (higher) during weekdays as opposed to during weekend.

[R] (no subject)

2009-03-02 Thread Brajkovic J.
Greetings, I am using fGarch package to estimate and simulate GARCH models. What I would like to do is to perform Monte Carlo simulation. Unfortunately I cannot figure how to modify the code to achieve this. I use the following code to run a single simulation: spec=garchSpec(model=list(ar=