Histogram Data

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

jjussa
Posts: 8
Joined: Wed Apr 20, 2011 3:30 pm

Histogram Data

Postby jjussa » Wed Feb 15, 2012 1:12 pm

I have created a histogram using View/Descriptive Stats and Test/Histogram and Stats...

Eviews produced a nice histogram and a summary stat table... Is there a way to extract the data from the histogram so that i can build the chart in excel. Essentially i want the individual histogram bin data. Thanks...

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

Re: Histogram Data

Postby EViews Gareth » Wed Feb 15, 2012 2:19 pm

Proc->Make Distribution Plot Data

jjussa
Posts: 8
Joined: Wed Apr 20, 2011 3:30 pm

Re: Histogram Data

Postby jjussa » Tue Feb 28, 2012 6:32 am

I have created a histogram using View/Descriptive Stats and Test/Histogram and Stats. I want to create 2 histograms based on 2 samples of data ...i.e. smpl @all if condition =1 1 & smpl @all if condition = 2. My questions: Is there a way to extract the histogram bin data for each sample but to have both samples on the same scale. Currently, i can extract the data but the bin sizes are different depending upon the sample. Essentially i want to fix the bin size for each sample...

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

Re: Histogram Data

Postby EViews Glenn » Tue Feb 28, 2012 10:18 am

You can fix the bin identities in histograms by providing a starting point and a user-specified bin width.

jjussa
Posts: 8
Joined: Wed Apr 20, 2011 3:30 pm

Re: Histogram Data

Postby jjussa » Tue Feb 28, 2012 4:05 pm

Thank you. And how do you create a "user specified" bin width. Currenly I go to: View/Descriptive Statistics & Stats/Histogram & Stats. And let me provide a bit more clarity...So i want the bin sizes to be the same (i.e. for a profit distribution approximately 10%) and I also want the bin range to be the same (i.e -100% to 100%). What is currenlty happening is that depending on the distribution of each sample, the bin range changes. I want a fixed bin width and bin range so that i can compare various samples on the same distribution chart.

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

Re: Histogram Data

Postby EViews Glenn » Tue Feb 28, 2012 6:10 pm

You'll have to use the more general engine for computing histograms, not the summary view:

Graph/Distribution/Histogram

NurfatimaD
Posts: 20
Joined: Wed May 23, 2012 10:04 pm
Location: Almaty, Kazakhstan

Re: Histogram Data

Postby NurfatimaD » Sun Sep 16, 2012 11:56 pm

Could anyone say how is it possible to write in the programming language of eviews to create a histogram with STATISTICS. For the moment, I am able to create a histogram, but without stats.

Thank you in advance

P.S. The line I use is as following:

Code: Select all

freeze(name) series.distplot

trubador
Did you use forum search?
Posts: 1520
Joined: Thu Nov 20, 2008 12:04 pm

Re: Histogram Data

Postby trubador » Mon Sep 17, 2012 12:42 am

Code: Select all

series.hist

NurfatimaD
Posts: 20
Joined: Wed May 23, 2012 10:04 pm
Location: Almaty, Kazakhstan

Re: Histogram Data

Postby NurfatimaD » Mon Sep 17, 2012 8:07 pm

Code: Select all

series.hist
Thanks a lot!


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests