On Thu, 14 Feb 2013, Pindar wrote:
So now the interaction for bivariate combinations is MUCH shorter!
Thanks for
implementing the operator!
In comparison to my function and the '^' operator result I noticed a slight
difference:
Is it intended that the value in 'grrr_grr_2' is '4' and not '1'?
Yes, it conforms to the documentation: the series grrr_grr_2
should contain the value of grrr at observations for which
grr == 2, zero otherwise.
Allin Cottrell
context:
<hansl>
nulldata 10
matrix g1 = {1;1;1;1;1;1;2;2;2;2}
matrix g2 = {1;1;1;1;1;1;1;1;2;2}
matrix g3 = {1;1;2;2;2;3;3;3;4;4}
series gr = g1
series grr = g2
series grrr = g3
delete --type=matrix # no instantly update of symbols
list G1 = gr grr grrr
list part1 = null
list part2 = G1
list inter = null
loop foreach i G1 -q
part1 = G1.$i
part2 -= G1.$i
inter += part1^part2
endloop
<hansl>