# Variables in _pline

User ForumVariables in _pline

I'm doing some statistical programming in GAUSS 13, and I'm using it to, among other things, graph histogram plots of several large data series' distributions. I compute these distributions' "95% CI," and I want to draw vertical lines representing the 2.5 and 97.5 percentiles, i.e. the lower and upper bounds of these confidence intervals. I thought the natural way to do this would be to use _pline and just use the 2.5 and 97.5 percentile variable names as my x-coordinate starting and ending values; however, I discovered that when I use these variable names in _pline, _pline interprets them as denormal numbers (i.e. +DEN) rather than their actual values (which are all between -2 and 6--and are all significantly different from zero--which I checked many, many times in the command prompt). Why on Earth isn't this working?

aptech Staff answered 3 years ago

I am not certain that I understand what you are doing. Please forgive me if my interpretation is in error. It sounds like you might be assigning a string value to the _pline global variable. However, the _pline global variable only takes numerical input.

Here is an example that draws a percentage histogram and adds a vertical line at -2:

```library pgraph;

_pline = { 1 6 -2 0 -2 15 0 3 10 };

x = rndn(1e4, 1);
histp(x, 20);
```

But, since you have GAUSS 13 you could use the new graphics and just do this:

```x = rndn(1e4, 1);
line_x = { -2, -2 };
line_y = { 0, 0.18 };

//draw histogram
plotHistP(x, 20);

```

Then you could also use the interactive graphics editing to add annotations, arrows, change colors, etc.

• ### Aptech Systems, Inc. Worldwide Headquarters

Aptech Systems, Inc.
2350 East Germann Road, Suite #21
Chandler, AZ 85286

Phone: 360.886.7100
FAX: 360.886.8922

• ### Training & Events

Want more guidance while learning about the full functionality of GAUSS and its capabilities? Get in touch for in-person training or browse additional references below.

• ### Tutorials

Step-by-step, informative lessons for those who want to dive into GAUSS and achieve their goals, fast.

• ### Have a Specific Question?

Get a real answer from a real person

• Need Support?
• ### Support Plans

Premier Support and Platinum Premier Support are annually renewable membership programs that provide you with important benefits including technical support, product maintenance, and substantial cost-saving features for your GAUSS System or the GAUSS Engine.

• ### User Forums

Join our community to see why our users are considered some of the most active and helpful in the industry!