Hi everyone,
Just wondering if there's a way to convert the results of tabulate command into a dataset? I want my dataset to look like the table below (generated from the command "tab week randomization":
week | 0 1 2 | Total
-----------+---------------------------------+----------
Week 1 | 0 0 3 | 3
Week 2 | 5 4 7 | 16
Week 3 | 3 4 4 | 11
-----------+---------------------------------+----------
Total | 8 8 14 | 30
Any help on this will be appreciated.
Just wondering if there's a way to convert the results of tabulate command into a dataset? I want my dataset to look like the table below (generated from the command "tab week randomization":
week | 0 1 2 | Total
-----------+---------------------------------+----------
Week 1 | 0 0 3 | 3
Week 2 | 5 4 7 | 16
Week 3 | 3 4 4 | 11
-----------+---------------------------------+----------
Total | 8 8 14 | 30
Any help on this will be appreciated.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float week byte randomization 3 1 2 2 3 1 2 1 2 0 3 2 3 1 3 2 2 0 2 1 1 2 2 2 2 2 2 2 3 0 1 2 3 0 1 2 2 2 3 1 3 2 2 0 2 0 3 2 3 0 2 1 2 2 2 1 2 2 2 0 end label values week week label def week 1 "Week 1", modify label def week 2 "Week 2", modify label def week 3 "Week 3", modify
Comment