Dear All,
I have a data set with panel data, which covers 27 countries and 100 years. I want to show one variable in one xtline graph for only 8 of those 27 countries. Currently, I am coding:
. xtline var1 if var1 > 5, overlay i(country) t(year)
The result is a graph with 27 countries, which is quite confusing because it uses the same labels and colours for some of them.
I would like to restrict i(country) to show only countries 1, 7, 8, 17, 20, 22, 24 and 27. Is there a way to do that?
Kind regards,
Mark
Related Posts with Panel Data Graphs with xtline - Restricting ID variable
How to calculate mid-year population (i.e., as of 1st July)?Hi All, I am struggling with how to calculate mid-year population (as of 1st July) to calculate crud…
drop in all rangeHi there, I have some difficulties dropping observations. If the ID did not receive subsidy in all…
Putpdf with R2Hi all, I'm trying to save some regression results, and I'm using putpdf: Code: putpdf begin //…
Generating scores using combinations of weighted variables and dividing by the sum of weightsHi all, I would like to create weighted genetic risk scores using a combination of 27 SNPs (variable…
pooled mean group estimationHello. I get errors when I run below command and could not figure out what is the cause. It would be…
Subscribe to:
Post Comments (Atom)
0 Response to Panel Data Graphs with xtline - Restricting ID variable
Post a Comment