group member

For questions regarding programming in the EViews programming language.

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

maxchen
Posts: 191
Joined: Fri Oct 10, 2008 4:03 pm

group member

Postby maxchen » Sun Jun 27, 2010 6:25 pm

Code: Select all

wfcreate u 4 genr x = @obsid genr y = x+3 group g x y genr z = 0 z = g(1)*2 'genr x1 = g(1)(-1) 'error g(2) = g(2)*2
The last line is working. However, not consistent with the doc in "EViews 7 Users Guide I.pdf", (ver April 2, 2010) P151

Code: Select all

We can also use the individual group members as part of expressions in generating new series: series realgdp = macrolist(1)/price series y = 2*log(macrolist(3)) or in modifying the original series: series macrolist(2) = macrolist(2)/price Note that in this latter example the series keyword is required, despite the fact that the INVEST series already exists.
If g(2) is treated as a series object, it is supposed to be used in lead/lag expressions, but it is not.

Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests