I have a variable, income, that details some respondents' incomes. I now want to create a new variable, income_group, which has a value of 1 if the respondent's income is less than the 50th percentile, 2 if the respondent's income is between the 50th and 90th percentile, and 3 if it's greater than the 90th percentile. How would I go about doing this? Any help is appreciated. Thanks!
How to Find and Use Percentiles in Stata
127 Views Asked by Toxinator At
1
There are 1 best solutions below
Related Questions in STATA
- How to only estimate neonatal mortality using syncmrates in Stata?
- Stata + ODBC driver requires login too often
- The \def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi} problem (Stata - Beamer)
- i have run the pvar model, but i am not able to run the irf plot, it is giving me error that it is not positive semi definite
- In Stata: how to evaluate a string stored in a macro as a variable name?
- r(101): trying to advance in my thesis and I have encountered this error while doing a loop
- Stata interaction term is zero or there is no number
- Vietnamese font
- Stata foreach loop says tabulate is not a valid command name?
- using stata svy subpopulation option for running regression
- How to export means from ttest
- Using encode command to convert string variable to numeric
- How to do calculation using local macros
- How to transform a Dofile to PDF
- Double selection lasso in and NA's handling
Related Questions in PERCENTILE
- Issue with Quantile Regression at the 75th Percentile in R
- percentitles aggregation in Elastic Search just gives percentile value as whatever is given in missing parameter
- Python - Pandas - What is the exact formula for percentile calculation by describe() method?
- Colouring background of dataframe cells using percentiles
- Calculating percentile of values from separate grouped dataframes
- How can I calculate percentile for every single data inside an xarray dataset
- How to Find and Use Percentiles in Stata
- Getting the right behaviour of Excel's PERCENTRANK.EXC on mySQL
- Percentile formula in Excel
- Add an aggregate over full table outside the buckets to every bucket row
- What is the mathematical way of calculating PERCENTILE_DISC() in oracle
- How to get highest and average 95th percentile over a period of time in Prometheus Query Language
- Query for calculating percentile based on average
- Aggregation-Percentile Clickhouse
- A neat way in R to get mean and 5 and 95 percentiles given a probability distribution in a string format?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Here is a reproducible example that shows how to do this: