Hello, I am analyzing a hospital dataset which provides demographic, diagnostic, and procedural data for each discharged patient.
There are 15 procedure code variables for each patient (but not all patients had 15 procedures). These are labeled cpt1, cpt2, cpt3, etc. I would like to identify the most common procedure codes, but do not know how to look at each variable simultaneously. For example, I don't want to just know what is the most common cpt1 code, but rather the most common code out of all CPT variables.
I am using Stata/SE 14.2.
I appreciate any help!
Related Posts with Prevalence with multiple variables
Aggregate data by TWO groupsHey everyone, I'm new to Stata and have a question. I need to aggregate the data by year and compan…
robvar to excelAny idea on how I can get the results of robvar command to excel? …
forvalues acting strangelyI am having a confusing experience with "forvalues." Using local macros, I need to define lower and …
Creating new variables by combining others on a Likert-scaleI'm wondering if I did this correct. I have 26 variables that are on a likert scale but only score f…
Post-hoc fisher's exact test to determine which level is significantDear STATA community, I have a dataset that looks at result 1 versus result 2 and which surgical di…
Subscribe to:
Post Comments (Atom)
0 Response to Prevalence with multiple variables
Post a Comment