Rescaling axis

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

Martinnyg
Posts: 8
Joined: Tue Mar 19, 2013 6:57 am

Rescaling axis

Postby Martinnyg » Tue Apr 09, 2013 5:37 am

Hey

I have made a recursive augmented Dickey Fuller test on a time series dataset of 170 observations. In my worksheet the obs. range goes from 1970Q1 to 2012Q1. My first subset has 25 observations, so that the series og ADF tests start in 1976Q1 and ends in 2012Q1

My problem is that currently the graph for the series of ADF-tests starts in 1 and ends in 146, whereas I would like it to start in 1976Q1 and end in 2012Q1.

Anyone who can help me?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Rescaling axis

Postby EViews Gareth » Tue Apr 09, 2013 7:50 am

Without knowing how you made the graph, it is hard to say how to change it.

Martinnyg
Posts: 8
Joined: Tue Mar 19, 2013 6:57 am

Re: Rescaling axis

Postby Martinnyg » Tue Apr 09, 2013 8:19 am

I used the following code to make the ADF-statistics:
!width = 25
!lastfirst = @obsrange-!width+1
matrix(!lastfirst, 1) uroot

for !i=1 to !lastfirst
smpl @first @first+!i-1+!width-1

freeze(bb) "variable".uroot(const, info=tstat, lagpval=0.05)
uroot(!i, 1) = @val(bb(7, 4))
if (@isobject("bb")) then
delete bb
endif

next

Then I opened the graph of the series --> view-->graph-->Line & Symbol.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Rescaling axis

Postby EViews Gareth » Tue Apr 09, 2013 8:37 am

Because you are storing them in a matrix object, rather than a series, the labeling will be non-informative. If you want proper date labeling, you're best off storing them in a series.

You could use the MTOS command to convert your matrix into a series.

Martinnyg
Posts: 8
Joined: Tue Mar 19, 2013 6:57 am

Re: Rescaling axis

Postby Martinnyg » Tue Apr 09, 2013 9:14 am

Thanks. I think I've made the series now. The problem is that the series start in 1970Q1 like the rest of the series in my workfile. But this particular series is suppose to start 25 quarters after, that is 1976Q1

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Rescaling axis

Postby EViews Gareth » Tue Apr 09, 2013 9:39 am

mtos has an optional sample argument that lets you set the observations that will be filled in in the resultant series.

Martinnyg
Posts: 8
Joined: Tue Mar 19, 2013 6:57 am

Re: Rescaling axis

Postby Martinnyg » Tue Apr 09, 2013 12:55 pm

Thanks that was really helpful.:-D


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 0 guests