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
Making foreach go through multiple variables but stops when one criteria is metHi, I am trying to program a code that goes through variables pr1-25 (procedure codes) to create a n…
Using Interaction terms of independent variables and estimated values in fixed-effects regression using xtregGood evening, I am trying to estimate a fixed-effects model using xtreg command in stata 17.0. My …
Merge security daily data and fundamental anualDear Statalist members, I am using a dataset from the WRDS database. I have annual data for my firm …
Variable already Defined in a loopGoodmorning everyone, as reported by the title, when I start my code I get this "Variable already De…
Oaxaca Blinder Decomposition InsignificantHello, I have the results of oaxaca blinder decomposition like this. Code: Blinder-Oaxaca decomposi…
Subscribe to:
Post Comments (Atom)
0 Response to Prevalence with multiple variables
Post a Comment