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
name conflict in identifying a matrixHi, I need to compare parameters of equation coming from SUR and GLM estimations. So I need to code…
missing values when mergeHi, I have a dataset similar to the following table where I want to calculate the mean values of x1,…
Do file display problemI am using Stata 17 on Monterey on a 4K Retina iMac monitor. Recently the .do file editor started to…
Headings for coefplot graph but want to exclude ref category for categorical variablesHi all, I am using coefplot to create a graph of ORs for odds of contraceptive discontinuation by me…
Metan - how to calculate 95% CI intervals transforming _ES and _seES?Dear David Fisher and metan community, I have seen a question, ask a while ago by Jawdat Abdulla on…
Subscribe to:
Post Comments (Atom)
0 Response to One table of means sorted by groups of countries
Post a Comment