Hello! I am a new stata user.
I want to define 2 groups (c4dnegative and c4dpositive) based on a numeric variable (c4d whose values are 0 or 1) and reshape the data from another variable mvi. Do you know a command to do so?
Ex :
c4d mvi
0 1
0 3
0 4
1 1
0 3
1 4
Thanj you very much
Related Posts with Define 2 groups based in a numeric variable
Adding quantity of particular product from all importers and one particular exporterDear all, I have a dataset with information about products (numeric), their quantity, the importer …
Finding values that are two standard deviations above the meanI need to find values of a variable that are two standard devotions above the mean. I want to create…
change label in y-axis/x-axis?Dear All, I have the following code (please ssc install coefplot) and graph: Code: webuse grunfeld,…
Latent profile analysis with continuous indicators and local independenceHello Stata users! I am doing a Latent Profile Analysis with continuous indicators (gsem, lclass op…
Regression discontinuity of binary outcomes with rdplot/rdrobust/rdbwselect and/or rd*Hi I’m using Stata/SE 15.1 and am able to run all example do files included in the rdplot/rdrobust/r…
Subscribe to:
Post Comments (Atom)
0 Response to Define 2 groups based in a numeric variable
Post a Comment