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
Comparing mixlogit results across equationsDear statalist users, I run two separate mixlogit (Arne Hole commend) models and I want to compare c…
Calcule Overlap between two variablesI need to calculate the overlap of two variables (time series). I saw that in R, the command is "cal…
Matching datesHi all, I need the iv_spread value of option expiration date (exdate) closest (during or after) to …
Identifying matched observations in a large databaseDear all, This is relevant to the question I asked some days ago and can be found here: I have enc…
Sample size for cox proportional hazards model with multiple covariatesThis is my first time using power cox, and I would like confirmation of my code. HTML Code: power…
Subscribe to:
Post Comments (Atom)
0 Response to Use of Operators in recoding
Post a Comment