Hi,
I am working with panel data of over 3500 observations.
I want to create a table that shows the mean values of the explanatory variables for all countries grouped according to their income group (I already have created a variable called "income_group" and sorted the countries to their income groups accordingly). I tried to do this by typing the following:
by income_group, sort : table cname if inrange(year, 1996, 2007), contents(mean vdem_libdem mean mad_gdppc mean gini mean wdi_gert mean wdi_unempilo )
This gives me four tables, each one for the respective income groups (which are three) and one for countries that lack values on income group. Now what I want to get instead, is something that looks like the picture below. Is there a way to do this in Stata?
Many thanks,
Uendi
Array
Related Posts with One table of means sorted by groups of countries
How to make a unique combinationHi everyone, I have a question about cleaning my dataset, so I get for each cz (czone) the totals i…
Bar chart with intervalsI'm plotting the following bar chart where "date" contains around 100 observations thus I would like…
Formatting dates in a bar chart.Hi! When I plot Code: graph bar (count) variable, over(date) being date the product of Code: gen …
Rolling problems: get decomposed R2, also called Shapley valueDear all I have time-series data. I want to run rolling regressions and obtain the decomposed R2 (a…
Standard errors and 95% Confidence Intervals for Proportions - Differences between different Stata versionsDear community: I am having doubts about how Stata calculates standard errors and 95% confidence in…
Subscribe to:
Post Comments (Atom)
0 Response to One table of means sorted by groups of countries
Post a Comment