Hi,
I am not sure whether this is the right forum.
I have to assign to each object in dataset 'have1' a place of dataset 'have2' such that in the output dataset, the total number of place x group is equal to the variable 'n' in dataset 'have2'.
for each object the assignation should be random within the given constraint.
the output dataset should have the same number of observations of dataset 'have1' and be like:
object group place
172 IF 1
173 IF 5
........
any suggestion, and especially code, is greatly appreciated.
Even more appreciated would be different options (OR, datasetp, IML...)
thank you very much in advance
... View more