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
Multiple treatmentsHi I have a panel of roughly 1000 firms across 10 years (2004-2013) in 2 states in the US (CA and PA…
Testing for parallel trendHello statalists! I have a very beginner question, I am working on a panel dataset trying to estim…
How to import large mdb fileHi, I have to import large .mdb files and transfer into stata file. As the databases are saved in 3…
period to period changeDear Stata users, The dataset I am working on is repeated measures data and it looks as below. I wa…
How to create a dummy within a categorical variable.Hello everyone, i am working on Mergers and Acquisition. I have a variable named "Acquirer Name" whi…
Subscribe to:
Post Comments (Atom)
0 Response to Define 2 groups based in a numeric variable
Post a Comment