Search found 4 matches
- Wed May 01, 2013 7:01 pm
- Forum: Programming
- Topic: how to do a minimum calculation
- Replies: 6
- Views: 3510
Re: how to do a minimum calculation
Thank you
- Wed May 01, 2013 5:43 pm
- Forum: Programming
- Topic: how to do a minimum calculation
- Replies: 6
- Views: 3510
Re: how to do a minimum calculation
Sorry if I am unable to clearly say but Y and X are both time series. X is the residual error and Y is the calculated variance. this is a bivariate mgarch model and I started by using the TV_garch.prg and modified the logl function.
- Wed May 01, 2013 3:03 pm
- Forum: Programming
- Topic: how to do a minimum calculation
- Replies: 6
- Views: 3510
Re: how to do a minimum calculation
p is the lag value of the residual from the mean equation calculated as
mgarch.append res1= (y1-cons(1) - mu(1)*y1(-1) - mu(2)*y2(-1) - mu(3)*y3(-1))
Which then feeds into a volatility equation as
var_y1=......+rho(1)*(min(res1,0)^2)
mgarch.append res1= (y1-cons(1) - mu(1)*y1(-1) - mu(2)*y2(-1) - mu(3)*y3(-1))
Which then feeds into a volatility equation as
var_y1=......+rho(1)*(min(res1,0)^2)
- Wed May 01, 2013 2:46 pm
- Forum: Programming
- Topic: how to do a minimum calculation
- Replies: 6
- Views: 3510
how to do a minimum calculation
Hi,
I have a logl function for an asymmetric garch estimation. One of the variables is like this
y = ......+ x * min(p,0) + .......
How do i enter this min(p,0) in the logl function? Tried using x*(@min(p,0)) but that i guess is wrong
I have a logl function for an asymmetric garch estimation. One of the variables is like this
y = ......+ x * min(p,0) + .......
How do i enter this min(p,0) in the logl function? Tried using x*(@min(p,0)) but that i guess is wrong
