I'm using a dataset with 6 variables measuring different complications a participant could have had. (For example, wound_complication 0=no, 1=yes; cardiac_complication 0=no, 1=yes; etc.).
I want to group the participants by number of complications (0, 1, or >=2). How can I use my complication variables to create this grouping?
I use Stata 16.0 SE
Thank you,
Katie
Related Posts with Creating new variable with counts
String to Numeric-Need UNIQUE values---Encode/Destring/Real is not workingHi all, I am working with the following dataset: Code: * Example generated by -dataex-. To inst…
how to realize the LMtest and wald test of spatial panel data in stata?hey everyone, do you know how to realize the LMtest and wald test of spatial panel data in stata? an…
dividing variable with lagged variableI am getting back to STATA after a very long time and is having some difficulties. I want to create …
Having problem correctly estimating a 3sls system of equation with Instrumental variables.Hello I'm currently doing my dissertation in Economics and chose from a topics list at my universit…
Estout: How to get rid of "Main" on top of the variable list when using esttab?Hi all, I want to get rid of the "main" writing on top of my list of variables in the regression tab…
Subscribe to:
Post Comments (Atom)
0 Response to Creating new variable with counts
Post a Comment