Dear All, I found this question here (in Chinese). The dataset is:
and the desired result is:
Within each `id', use the elements in `x' to form different combinations in `x1' and `x2'. Any suggestions are highly appreciated.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float id str4 x 1 "a" 1 "b" 1 "c" 2 "a" 2 "b" end
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float id1 str4(x1 x2) 1 "a" "b" 1 "a" "c" 1 "b" "c" 2 "a" "b" end
Comment