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
Beginner question, loop command for net returns, error code r(198) "`var' invalid name"Hi everyone, I have a time series set of monthly currency spot rates from multiple countries. I als…
Merging on the basis of Date for CRSP stocks dataHello, I am merging the CRSP stock prices dataset with the CRSP value-weighted index on the basis o…
Using Local in a LoopHello everyone, I'm having a problem commanding a local to do a function. The idea of the whole loo…
Beginner's question on datasetI have data on online competitions that are held weekly. I have data from 2001 all the way up to 201…
Struggling to convert latitude and longitude to x and y coordinates (geo2xy)Hello I have a dataset of latitude and longitude points that I need to convert to X and Y coordinate…
Subscribe to:
Post Comments (Atom)
0 Response to Calculations based on rank
Post a Comment