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
IVTOBIT with fixed effectsHello Friends, My name is Goel Miranda, right now im trying to estimate a gravity equation for bila…
Unable to access elements of a local macroHi I wanted to store the unique values of a variable schoolid_2 in a local macro. So ran the follow…
Command "do" does not work although working directory is specifiedDear Statalist Users, I am trying to run multiple do files in a row by using the command "do" (file…
Fixed effects model - comparing the coefficients of two different regressionsDear All, I used a fixed effect regression model through the following equations to evaluate the im…
Margins at() following cmxtmixlogit / cmclogit?Hi all, long time reader first time poster here. I am using StataSE 16.1 on MacOS 11.2.3. I'm analyz…
Subscribe to:
Post Comments (Atom)
0 Response to Prevalence with multiple variables
Post a Comment