I am simply looking to get a list of all the different values of a string variable, but some of them are quite long (8-12 words long), as they represent different criminal offense descriptions.
When I -tab- that var, they obviously all show up in a list, but many are cut off (e.g. it will say "Petty theft at.."). Is there a way to either simply print all of them in their entirety (I don't actually need the frequencies that -tab- provides), or to tell Stata to print out the full value in the -tab- output table? I made up some sample data here, if that's helpful.
When I -tab- that var, they obviously all show up in a list, but many are cut off (e.g. it will say "Petty theft at.."). Is there a way to either simply print all of them in their entirety (I don't actually need the frequencies that -tab- provides), or to tell Stata to print out the full value in the -tab- output table? I made up some sample data here, if that's helpful.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str40 chrg_description "THIS DESCRIPTION IS REALLY WAY TOO LONG FOR STATA" "SO HERE IS SOME RANDOM DATA THAT I MADE UP AS AN EXAMPLE" "THIS DESCRIPTION IS REALLY WAY TOO LONG FOR STATA" "SO HERE IS SOME RANDOM DATA THAT I MADE UP AS AN EXAMPLE" end
Comment