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
Storing marginal effects in a loop of regressionsI would like to run several regression via a foreach-loop, calculate marginal effects, store and com…
Displaying all numbers in outputHi all, I need help changing the format of an output. I have tried all the options in help format an…
Predict out of sample daily time seriesDear all I have data on the number of daily infections by COVID-19 and I would like to make predicti…
Is there a way to decrease the distance between bars in tabplot?Hello there any help would be greatly appreciated. My data looks something like this and I would be…
Generating a table for correlations obtained by groupHello, I would like to generate the correlations between two dependent variables for a large set of…
Subscribe to:
Post Comments (Atom)
0 Response to Use of Operators in recoding
Post a Comment