Hello! I am programming on Eviews and need to compute long run variance in my program at some point. Could anybody tell me what I should write in my code to get "long run variance" of a variable? Thank you so much for your help
Best
Selin
long runvariance
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: long runvariance
Look up lrcov in the object reference.
Re: long runvariance
Thank you so much! :) I just looked up lrcov, but I am still a bit confused. Basically I am generating a new series x and I want to estimate its long run variance. I typed lrcov(x) but it tells me illegal command. How can I fix this? Thanks a lot again.
Re: long runvariance
You have two alternatives in this case. The following should yield identical results (with default options):
Code: Select all
wfcreate u 100
series y = nrnd
group g.add y
y.lrvar
g.lrcovRe: long runvariance
Thank you so much, that was so helpful! :) Now I am able to compute long run variance, but I still cant use it in my formula. My code is as follows:
wfcreate u 276
scalar SC
series x=nrnd
x.lrvar
SC=276/x.lrvar*x.lrvar
However, that gives a syntax error. How can I make and use the long-run variance as a scalar value?
Thanks so much again! :)
Selin
wfcreate u 276
scalar SC
series x=nrnd
x.lrvar
SC=276/x.lrvar*x.lrvar
However, that gives a syntax error. How can I make and use the long-run variance as a scalar value?
Thanks so much again! :)
Selin
Re: long runvariance
Code: Select all
wfcreate u 276
scalar SC
series x=nrnd
x.lrvar(out=lv)
SC=276/(lv(1)*lv(1))Re: long runvariance
Thank you so much! It works great now! I appreciate it :)
Who is online
Users browsing this forum: No registered users and 1 guest
