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
Regarding generating year-sum for each variableDear, I have a question. I have a panel data looks like below. Code: country year x y "I…
IV estimates with low mean values of the outcome?Dear all, I am examining the effects of maternal education on low bitrth weights using a fuzzy regr…
Inconsistency between rdrobust and rdplot resultsHi everyone, I use the rdrobust/rdplot package in stata to estimate a simple RD model with time as t…
Combine the panel data with External Covariates.I have DHS data which have hhid(household id), BMI(Body Mass Index), and Year(2005, 2010, 2015. The …
Removing duplicate ID's by creating additional variableHi All, I would like to change this dataset such that each ID only appears one time, with additiona…
Subscribe to:
Post Comments (Atom)
0 Response to Tab two string variables
Post a Comment