I wonder if there is an efficient way to assign values for part of the parameter.
For instance, I have a parameter with 64 values controlled by m. Then I have another parameter with 12 values controlled by n. Now I want to put the latter parameter within the former one. Specifically, I want the part of the former parameter which starts from 13th value and ends with 24th value, to be exactly the latter one. I have an idea for that.
Code: Select all
Set b /1*64/
m /1*12/
Parameter Former(b), Latter(m);
* Give Latter some values
loop(m,
Latter(m) = ord(m);
);
scalar i /1/;
Loop(b$(ord(b)>=13 and ord(b)<=24),
Former(b) = sum(m$(ord(m)=i), Latter(m));
i = i+1;
);
display Former;
Best,
Gabriel