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
Cross sectional_PanelHi statalist community For cross-section data analysis, I have learned two ways of running regressi…
Sorting ID’sHello, My data looks like this: Code: * Example generated by -dataex-. To install: ssc install da…
Yearly Cumulative DistributionDear Statalist, I want to construct the cumulative-distribution column. I tried below-two commands b…
Creating Attrition (Non-response) Weights for Balanced PanelHi everyone, I am working with panel data which consists of three waves (3, 4, and 5) as below. I wa…
Variable not found when running loop even though it existsHello all, This is my first time asking a question on here, so please excuse me if I am describing …
Subscribe to:
Post Comments (Atom)
0 Response to Tab two string variables
Post a Comment