Hi all, while trying to generate some frequencies and percentages with -tab-, it seems like Stata's default is to provide a table where the vars are ordered alphabetically, even if I have it sorted the way I'd like it ahead of time. Is there any way to get it to use a custom sorted order within the -tab- command?
Code:
gen order = . replace order = 1 if group == "yes" replace order = 2 if group == "no" replace order = 3 if group == "maybe" replace order = 4 if group == "test" replace order = 5 if group == "not_test" replace order = 6 if group == "local" replace order = 7 if group == "external" sort order tab group fail_by50 [fw=frequency], row
Comment