Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Panel data: per country charts in one single graph

    Dear all,

    I am struggling a bit to reproduce a panel data chart. Let's say that I have three variable: country, year and interest rate. I would like to plot interest rate for each country in one graph but in the same time I would like all the per country charts in one file. I attached an example of the results I would like to get. Thank you.

    Jean
    Attached Files

  • #2
    We can't see here a data example or what code you tried to comment on what is wrong. But

    Code:
    help xtline
    has all that you need to know.

    Comment


    • #3
      Dear Nick,

      I have a question regarding ploting of elasticities of individual cross sections in a single stata graph.

      reg lnTFP lnEU, robust
      margins, eyex(lnEU)
      marginsplot, xline(0) xtitle("name") ytitle("name")

      This command gives a elasticitiy plot with confidence interval. However, how can I plot the elasticity for each of my cross sections? I have 17 cross-sections. The cross-section variable is named as ID. Further, let's say I divide the cross sections into two categories such as RDE and RDW (both are dummy variables, giving value of 1 to countries that belong to a particular region and zero otherwise). What can be the commands for ploting individual elasticites in a single graph and then dividing the countries plots according to the RDE and RDW?

      Comment

      Working...
      X