Create sideways bar graph for a panel made up of dummy vars

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

David Clark
Posts: 7
Joined: Tue Jun 30, 2015 11:54 am

Create sideways bar graph for a panel made up of dummy vars

Postby David Clark » Thu Sep 24, 2015 9:00 am

Hello,

I'm trying to create a a bar graph in Eviews 9. Along the y axis would be series names (in my case countries) and the x axis shows time. All values for all series are either 1 or 0, so there is a line/bar when the series takes a value of 1 or blank when it does not. The idea is that I can compare across multiple countries where the dummy values tend to have a value of 1. I have included an attached image as an example from a research paper.

I have tried many of the graph options in Eviews but have not even come close to succeeding. Please can you advise me on how this can be achieved?

Many thanks in advance,

David
Attachments
example chart.jpg
example chart.jpg (72.56 KiB) Viewed 3865 times

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

Re: Create sideways bar graph for a panel made up of dummy v

Postby EViews Glenn » Thu Sep 24, 2015 11:20 am

Interesting graph. Can't think of an easy way to do it. There may be someone more clever than I who can figure it out. The tricky part is that you are drawing bars connecting dates in time on the basis of the 0,1 dummy. That's a pretty custom operation and I can't think of an easy way to draw that.

David Clark
Posts: 7
Joined: Tue Jun 30, 2015 11:54 am

Re: Create sideways bar graph for a panel made up of dummy v

Postby David Clark » Fri Sep 25, 2015 10:30 am

Thank you for your response Glenn. Is there a way of doing this in a more simplified manner? For example, points instead of drawing bars connecting dates?

Thank you for your advice,

David

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

Re: Create sideways bar graph for a panel made up of dummy v

Postby EViews Glenn » Fri Sep 25, 2015 1:45 pm

The problem is still the connecting dates in time. I'll have to think about it, but nothing easy comes to mind.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 0 guests