Hi everyone,
I'm an undergraduate student studying economics and am having trouble with Stata. I'm doing some computations for a development economics course. I need to calculate the mean, min and max illiteracy rate and infant mortality rate in the 50 richest and poorest countries (based on GDP/capita) in the data set. I'm not sure how to approach this since I haven't done anything like this before. I mainly need help with the coding such that Stata will only look at the top 50 and bottom 50 countries. Someone suggested that I also create a dummy variable equal to 1 if GDP per capita is missing though I'm not sure how to incorporate this in the code.
The variables I presume I will need to use are the illiteracy rate, infant mortality rate and the GDP/capita variables.
Any help would be much appreciated. Thanks!
Related Posts with Calculations based on rank
Understanding/Reading Regression Output With Categorical VariablesHello; I have experience with regression, I just haven't done it in a while and am SUPER confused a…
How to run Stata Codes in Mac nvim?Dear all, I want to run Stata codes in nvim. I have set the init.config file below. Code: call plu…
How to overlay distributions using a pie chart using StataMP 17? (plot distributions on the same graph)Dear Statalist, I hope you are well. Please, I need help on how to overlay distributions using a p…
Collapse all values of one string variable to one cell per groupSay I have the following data set: id var1 1 a 1 b 1 c 2 a 2 d 3 a Is there a way to collapse this…
generating compatible ID variablesDear Stata listers, I'm running Stata 17.0. I have several (7) datasets that I would like to merge…
Subscribe to:
Post Comments (Atom)
0 Response to Calculations based on rank
Post a Comment