N/A

Discussions of ARCH, GARCH, and related models
IMALX7
Posts: 3
Joined: Mon Mar 19, 2012 5:59 am

N/A

Unread post by IMALX7 »

N/A
Last edited by IMALX7 on Tue Mar 20, 2012 8:01 pm, edited 2 times in total.
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Data Generation

Unread post by TomDoan »

I assume that you mean e(t-1), not e(t), in the evolution of h. This generates 500 data points. A certain number of early ones (maybe 100) should be discarded as burn-in draws.

Code: Select all

all 500
*
* Generate the fundamental shocks
*
set z = %ran(1.0)
set v = %ran(1.0)
*
* Generate the exogenous x
*
set(first=0.0) x = 1.0+.6*x{1}+z
*
* Start with e and h as their unconditional means
*
set e = 0.0
set h = 1.0/(1-.4-.3)
*
* Generate e and h together from entries 2 on
*
set e 2 * = h=1.0+.4*e{1}^2+.3*h{1},v*sqrt(h)
*
* Generate y given x, h and e series
*
set y = 2.0+3.0*x+.8*sqrt(h)+e
IMALX7
Posts: 3
Joined: Mon Mar 19, 2012 5:59 am

Re: Data Generation

Unread post by IMALX7 »

N/A
Last edited by IMALX7 on Tue Mar 20, 2012 8:00 pm, edited 1 time in total.
IMALX7
Posts: 3
Joined: Mon Mar 19, 2012 5:59 am

Re: Data Generation

Unread post by IMALX7 »

N/A
Post Reply