auto placing variable value in chart

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

vogelh
Posts: 35
Joined: Mon May 21, 2012 2:27 pm

auto placing variable value in chart

Postby vogelh » Mon May 21, 2012 2:34 pm

Using Eviews 7.2.

I've defined !probcutoff=0.15
this is my name for a given p-value.

Is there a simple way to automatically place this as a string or otherwise as part of or into chart?

thanks.

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

Re: auto placing variable value in chart

Postby EViews Gareth » Mon May 21, 2012 2:41 pm

Use chart.addtext

vogelh
Posts: 35
Joined: Mon May 21, 2012 2:27 pm

Re: auto placing variable value in chart

Postby vogelh » Wed May 23, 2012 4:57 pm

Sorry to bother again. Still having difficulty implementing instructions.

I want to add !probcutoff = 0.15 with
string probval ="pval="
to the line graph generated as shown below.

What would you recommend to get the !probcutoff value into the graph?
thanks

My program works fine in doing the following:
----------------------------
smpl @first @first+!length-2*!ssize
if !v=1 then line wabsigraphts
endif
if !v=2 then line wacsigraphts
endif
-----------------------------

thanks.

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

Re: auto placing variable value in chart

Postby EViews Gareth » Wed May 23, 2012 7:04 pm

Use the:

Code: Select all

freeze(graphname) series.line
method of generating the graph.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests