Show Date in Scattergraph

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

mariomarionette
Posts: 6
Joined: Mon Nov 16, 2015 5:06 am

Show Date in Scattergraph

Postby mariomarionette » Mon Nov 16, 2015 5:14 am

Hey guys,
i want to run a regression between the income and the birthdate of several obs. The regression is working, but the birthdates are shown numeric ("722,000" instead of 1965), although they are shown in the right way in the spreadsheet. Can someone help me displaying it right in the graph?

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

Re: Show Date in Scattergraph

Postby EViews Gareth » Mon Nov 16, 2015 9:04 am

I can't think of a way to do that. :(

mariomarionette
Posts: 6
Joined: Mon Nov 16, 2015 5:06 am

Re: Show Date in Scattergraph

Postby mariomarionette » Mon Nov 16, 2015 9:27 am

Well, thanks for your answer, Gareth, but in this case, I have to ask another question: how can this be possible? How can I visually describe different obs at different dates with Eviews?

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: Show Date in Scattergraph

Postby EViews Glenn » Mon Nov 16, 2015 9:37 am

Could you post the workfile?

mariomarionette
Posts: 6
Joined: Mon Nov 16, 2015 5:06 am

Re: Show Date in Scattergraph

Postby mariomarionette » Mon Nov 16, 2015 10:16 am

I'm afraid I can't.... but it's like this:
Income in 2014/date of birth
1.000/1960
2.000/1970
3.000/1980
Shouldn't be the hardest task to visualise the axis as a kind of time line, should it?

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

Re: Show Date in Scattergraph

Postby EViews Gareth » Mon Nov 16, 2015 10:24 am

You just have year of birth? Or do you want full date?

mariomarionette
Posts: 6
Joined: Mon Nov 16, 2015 5:06 am

Re: Show Date in Scattergraph

Postby mariomarionette » Mon Nov 16, 2015 10:31 am

I would be totally satisfied with the year

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

Re: Show Date in Scattergraph

Postby EViews Gareth » Mon Nov 16, 2015 10:52 am

Assuming your birtdate series is called "birthdate":

Code: Select all

series birthyear = @datepart(birthdate, "YYYY")
Then use the series birthyear rather than the series birthdate in your scatter.

mariomarionette
Posts: 6
Joined: Mon Nov 16, 2015 5:06 am

Re: Show Date in Scattergraph

Postby mariomarionette » Mon Nov 16, 2015 3:54 pm

seems like we´re getting close, thank you for your patience :)

ok, i didn´t mention before, that i´m new to the programm - i´ve spent about 6 hours with it. So where can i type that line in? Sounds ridiculous, but i need step for step advices - sorry.

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

Re: Show Date in Scattergraph

Postby EViews Gareth » Mon Nov 16, 2015 4:24 pm

The command window (the white pane at the top of EViews).
http://www.eviews.com/help/helpintro.ht ... ect_header

mariomarionette
Posts: 6
Joined: Mon Nov 16, 2015 5:06 am

Re: Show Date in Scattergraph

Postby mariomarionette » Tue Nov 17, 2015 5:04 am

Thank you! All works fine now!


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests