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
how do I get an overall p value for independent factor variables in linear regressionHi, I am running a backwards stepwise linear model with factor and continuous predictor variables. M…
Need advice on recoding categorical variables into continuous variables and vice versaI am new to data analysis and Stata, so I apologise if I have not explained this very well. I have …
Monthly Unemployment Rate Calculation for Two Groups of StatesHi, I am working on a project in which I have data from the CPS. I also have data that tells me when…
Consolidating two line graphs and editing X and Y axis labels and title on Line GraphHi, I am working with a dataset of 14 observations, and I am trying to make a line graph using these…
testing difference between coefficients in different equationsI would like to run the following regressions: xtreg a x y z i.mth_seq, fe vce(robust) *equation 1 …
Subscribe to:
Post Comments (Atom)
0 Response to Creating new variable with counts
Post a Comment