Page 1 of 1

Show Date in Scattergraph

Posted: Mon Nov 16, 2015 5:14 am
by mariomarionette
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?

Re: Show Date in Scattergraph

Posted: Mon Nov 16, 2015 9:04 am
by EViews Gareth
I can't think of a way to do that. :(

Re: Show Date in Scattergraph

Posted: Mon Nov 16, 2015 9:27 am
by mariomarionette
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?

Re: Show Date in Scattergraph

Posted: Mon Nov 16, 2015 9:37 am
by EViews Glenn
Could you post the workfile?

Re: Show Date in Scattergraph

Posted: Mon Nov 16, 2015 10:16 am
by mariomarionette
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?

Re: Show Date in Scattergraph

Posted: Mon Nov 16, 2015 10:24 am
by EViews Gareth
You just have year of birth? Or do you want full date?

Re: Show Date in Scattergraph

Posted: Mon Nov 16, 2015 10:31 am
by mariomarionette
I would be totally satisfied with the year

Re: Show Date in Scattergraph

Posted: Mon Nov 16, 2015 10:52 am
by EViews Gareth
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.

Re: Show Date in Scattergraph

Posted: Mon Nov 16, 2015 3:54 pm
by mariomarionette
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.

Re: Show Date in Scattergraph

Posted: Mon Nov 16, 2015 4:24 pm
by EViews Gareth
The command window (the white pane at the top of EViews).
http://www.eviews.com/help/helpintro.ht ... ect_header

Re: Show Date in Scattergraph

Posted: Tue Nov 17, 2015 5:04 am
by mariomarionette
Thank you! All works fine now!