Group dummy variables
Posted: Fri Mar 11, 2016 6:41 am
Hey there,
I have a bunch of dummy variables, say d_1_a, d_1_b,...,d_2_a, d_2_b etc. I would like to group them with something like:
It doesnt really work, as the values of the group dummy variable are strings. I believe I mixed something up regarding the reference to the elements I want to group.
I have a bunch of dummy variables, say d_1_a, d_1_b,...,d_2_a, d_2_b etc. I would like to group them with something like:
Code: Select all
smpl @all
for %j 1 2 3 4
for %k a b c d
smpl @all
string q = %j
string r = %k
group group_d_1_b "d_"+q+"_"+r
next
next