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)*2Code: 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.
