Hello,
I have a large set of data eg 1 2 3....100 101 etc and i want to categories the data into 3 different categories such as "Less than 25" "25-50" and "More than 50". Im using the the following code recode var (1=1 "less than 25") (2=2 "25-50") (3=3 "more than 50"),gen(new_var) however this would be very tedious if i enter each number in specific bracket and im wondering if i can use operators such as "<" ">" etc
Related Posts with Use of Operators in recoding
how to investigate whether the values of a variable in a group are the sameI have an unbalanced panel data about mutual funds. The variables are listed below: yrm: the date va…
Using (nested) loops to conditionally sumHello, thank you in advance for any advice you are able to provide me with. I am a rather novice whe…
area specific linear time trendI have 2012-2018(Aug) monthly data, there are 80 (6*12+8) time periods. 52 areas in the data set I …
Difference-in-Difference, with IVHello everyone, I would like to ask one question that I am struggling on. I would like to estimate …
filling missing valuesDear All, I find this question here (in Chinese). The raw data is Code: * Example generated by -da…
Subscribe to:
Post Comments (Atom)
0 Response to Use of Operators in recoding
Post a Comment