Hi everyone,
This might be an easy question, but I just can't get to the right command.
I have two string variables that I need to get an overview of. In one variable I have around 150 unique treatment codes (on ~100,000 patients) and in the other variable I have the label for each treatment code.
What I need is an output containing two columns with each treatment code appearing only once in the left column and the label for that treatment code in the right column. If the frequency and percentage for each of the codes could be included that would be great (just like in a regular tab command with only one variable).
I can't install additional programs.
Thank you for your help.
Related Posts with Tab two string variables
Using value labels in graphs through loopsHi all, I am trying to create a graph of weekly_count_visittype (Y axis) and week_num (X axis) separ…
Inclusion of both Age and Time Indicators in Panel Data AnalysisDear Colleagues, I am analyzing a panel data that collects information on children every two years …
Time specification Dear colleagues, I am working on 15 years of repeated cross-sectional data. I was wondering whethe…
How to reset a loop with a continues set of codes?Hi everyone, I hope you are doing well. I'm posting here because I have a doubt regarding a loop I'…
Fillin/expand with panel and different datesHi All, please, could someone help me? I have the data below: Code: * Example generated by -dataex-…
Subscribe to:
Post Comments (Atom)
0 Response to Tab two string variables
Post a Comment