Page 1 of 1

Add vertical line in histogram

Posted: Sat Jan 02, 2016 2:17 pm
by Zero
Hello Eviews-Support Team,

I make am Monte-Carlo-Simulation with 10.000 observation and my workfile has about 78 mb.
Therefore I can only attach the program-code.
In the histogram, I can“t add a vertical line, with the dist option it works like it should.
Adding a horizontal line to a histogram works too.
My program-code is attached.
Thanks for your help.

P.S. I use Eviews 8.1 with the newest patch.

Re: Add vertical line in histogram

Posted: Mon Jan 04, 2016 4:36 am
by Zero
Here is one page with a histogram and a distplot-graph. But to draw the vertical line only works in the distplot and not in the histgram.

Re: Add vertical line in histogram

Posted: Mon Jan 04, 2016 9:43 am
by EViews Jason
In the histogram case, the position must be specified by observation number and not value.

The below line will add a vertical line at the 10th observation:

Code: Select all

GRA_GDP1960_HAT_hist.draw(line, bot) 10

Re: Add vertical line in histogram

Posted: Mon Jan 04, 2016 1:08 pm
by Zero
First, I want to thank you for your request, Jason.
Is there no opportunity to set it by value, because I want to illustrate the case of a biased estimation
and the line should be the value from the data generating process.

Re: Add vertical line in histogram

Posted: Tue Jan 05, 2016 11:18 am
by EViews Jason
Unfortunately not.

Re: Add vertical line in histogram

Posted: Wed Jan 06, 2016 1:26 pm
by EViews Glenn
Actually, for the histogram, Jason's code will draw by value

Code: Select all

graph01.draw(line, bottom) 824
will draw the vertical line at a value of 824.

Re: Add vertical line in histogram

Posted: Wed Jan 06, 2016 2:31 pm
by EViews Jason
Both Glenn and I are giving you conflicting answers. We are actually both right.

You cannot specify by value if from your series, you created the histogram by selecting view->descriptive stats & tests->histogram and stats.

You can if you create your histogram by selecting View->Graph, then selecting Distribution from the Specific: box and additionally selecting Histogram from the Distribution: box in the Details box.