Histogram

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

marcounam
Posts: 49
Joined: Tue Jan 11, 2011 10:42 am

Histogram

Postby marcounam » Wed Jan 12, 2011 11:43 am

I have information on an excel page of the same variable. Problem is that i have in matrix form i.e. the information is not in series form. I want to do a histogram of this information but when i load the info, eviews reads it as various series and so i cant do histogram. what do i do?

Thanks so much in advance.

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

Re: Histogram

Postby EViews Gareth » Wed Jan 12, 2011 11:48 am

I'm afraid I don't understand what you're describing. Could you give a more concrete example?

marcounam
Posts: 49
Joined: Tue Jan 11, 2011 10:42 am

Re: Histogram

Postby marcounam » Wed Jan 12, 2011 11:56 am

I have information on some mutual fund returns on an excel page. It contains the returns of various mutual funds per date. So for each date the is a row of the return on that date for each mutual fund. It is a 1173x56 table. I want to do a histogram of the returns of all mutual funds of all dates. The problem is when i load the excel page to excel it reads each column as a series which is ok, but when i open all series as a group and plot the histogram it plots the histogram for each series. What i want is a histogram from all the returns of all dates, so i would like the histogram of the data in all my series treated as one big series containg all the information in my table. I hope i explained myself this time.

Thanks alot for your time.

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

Re: Histogram

Postby EViews Gareth » Wed Jan 12, 2011 12:22 pm

Ah, gotcha. You want to stack all the data into one long series, and then have a histogram of that long series. The only way to do that is by stacking the data in a new workfile page. This is only possible if the series names follow some pattern. Assuming that they are something like return1, return2, return3 etc..., then it is easy:
  • From your workfile page, click on Proc->Reshape Current Page->Stack in New Page
  • In the first box enter the naming pattern, with a "?" for the ID. In my example above I would enter "return?", since the numbers 1,2,3 are the individual ids
  • Hit ok, and you're done.

marcounam
Posts: 49
Joined: Tue Jan 11, 2011 10:42 am

Re: Histogram

Postby marcounam » Wed Jan 12, 2011 12:52 pm

Dear eviewsgareth:

Thanks so much for your answer. Followed your steps. When i hit ok it says "Two or more IDS are required for procedure". I dont see the problem. Could you please help me out?

Many Thanks!

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

Re: Histogram

Postby EViews Gareth » Wed Jan 12, 2011 12:55 pm

Could you post your workfile?

marcounam
Posts: 49
Joined: Tue Jan 11, 2011 10:42 am

Re: Histogram

Postby marcounam » Wed Jan 12, 2011 1:03 pm

Here you go. I appreciate your time. Meanwhile i will check out ReShape Page on the help function.

Thanks.
Attachments
Rendimientos.WF1
(549.58 KiB) Downloaded 241 times

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

Re: Histogram

Postby EViews Gareth » Wed Jan 12, 2011 1:05 pm

Seems to work perfectly for me:
Attachments
stack.png
stack.png (71.61 KiB) Viewed 7333 times

marcounam
Posts: 49
Joined: Tue Jan 11, 2011 10:42 am

Re: Histogram

Postby marcounam » Wed Jan 12, 2011 2:58 pm

ooooohhhhh! It seems i followed your instructions a little to much, i was entering "return?" instead of return?.
I thank you for your time you have helped me alot.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests