by Anna » Tue Oct 06, 2009 8:55 pm
Hey Tom,
I am trying to compute the quadratic spectral density estimator to get the long run variance of a certain process. In one of the procedures (I think it was KPSS), you used mcov for this. My problem is that my cognitive abilities are strongly limited so that I don't get what I have to do (and I am not very familiar with the spectral stuff...).
In that procedure, you wrote something like:
mcov(lwindow=name) start end resids
# constant
mcov generates %cmom and you seemingly used %cmom(1,1) as the long run variance estimator.
Could you please make some thinks clear for me:
You only used a constant. Seemingly, this does not have to be altered if the deterministic components of the regression that formed the resids include more than a constant, for instance a trend. Is this correct? Is there any case where more than just a constant has to be taken?
You used cmom(1,1) which is quite natural since its dimension is 1x1. However, assume the answer to my first question was negative and I have to include a trend if resids were created in a regression where a trend was used. cmon would be 2x2, then. The long run variance on the trend would be cmom(2,2), then?
Sorry for these stupid questions. Your help is, again, highly appreciated!
Best wishes
Anna