I am able to do pairwise regressions between variables. I thought the same logic would work for variables in groups if I just want to do a simple subtraction between variables in groups. But, it doesn't.
For example, I have groups A, B, A1 and B1 with 3 variables in each group. I want to subtract the value of variables in A1 from A, B1 from B.
Code: Select all
for %g A B
for !i=1 to {%g}.@count
for %w A1 B1
for !j=1 to {%w}.@count
%iname = {%g}.@seriesname(!i)
%jname = {%w}.@seriesname(!j)
series X{%iname} = {%iname} - {%jname}
next
next
next
nextThanks!
