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
reghdfe, clustering and crit. values -> adjusted?Dear all, I am using reghdfe and have few clusters. Throughout, I Wild-Cluster bottstrap my p-value…
Splitting up survival analyses by follow-up timeHi all, I have a dataset I am analysing using survival analyses, with multiple records per patient.…
Dropping variables based on date availabilityHello, I am struggling with cleaning my data. Array I have panel data regarding banks. I would li…
Multiple imputations: Predicting missing for selected categoriesHi I'm currently trying to use multiple imputation for a register based cohort analysis on maternal…
Combining/Merging Duplicate ObservationsHi all, I have a dataset containing over 300'000 observations and have identified a few (1'725) dupl…
Subscribe to:
Post Comments (Atom)
0 Response to Use of Operators in recoding
Post a Comment