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
Panel data: Multiple observations per yearHi, I'm new to STATA and its commands so excuse my inexperience. My dataset contains multiple obser…
Selmlog command (selection bias correction based on multinomial logit)Dear Stata professionals, Even after reading the manual for the implementation of the selmlog comman…
address the endogeneity issueHi all! I want to address the endogeneity issue in my paper. I have panel data (gvkey and fyear). …
How to extract the last seven digits of nine-digits numbers?I'm having problems trying to extract digits from numbers. My dataset has a variable called "munici…
Relative risk ratiohow to interpret relative risk ratio in multinomial logistic regression. Also, what is the differenc…
Subscribe to:
Post Comments (Atom)
0 Response to Define 2 groups based in a numeric variable
Post a Comment