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
Bivariate Kernal Estimation - optimal bandwidth choiceDear all: I am writing to see if anyone knows a Stata command that helps set the optimal bandwidth …
Comparing the seasonal naive method with Holt-Winters' additive seasonal exp. smoothing method using ts cross-validationHello, Can someone help me with using cross-validation to compare the seasonal naive method with Ho…
Interpreting odds ratio in logit modelsFor my xtlogit model (though Stata shows "Random-effects logistic regression" in the table it produc…
Quarterly data, year-fixed effectHi, This is more of an Econometrics than a Stata question, I hope you don't mind. I am trying to i…
Parallel trends assumption in the diff commandI've got a doubt about the diff package. You can check the file about it here. I would like to find…
Subscribe to:
Post Comments (Atom)
0 Response to Calculations based on rank
Post a Comment