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
Merging DataHello all, I have two datasets: one has a column of geographic identifiers and one has a column of …
Looping over many valuesDear Statalist, I've came across a problem I couldn't solve. I have a dataset indicting informatio…
directions of endogenous coefficients are the opposite in simultaneous equation modelHi everyone, I'm running simultaneous equation model (2 equations) but getting a weird result. My a…
How not to do xtdpdgmmThe title of this post is deliberately provocative: it echoes slides and tweets by Sebastian Kripfga…
inquire about ORDERED LOGISTIC REGRESSIONI am studying people's financial stress. I have a set of 10 items to measure financial stress (1-4 L…
Subscribe to:
Post Comments (Atom)
0 Response to Define 2 groups based in a numeric variable
Post a Comment