Announcement

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

  • Unique line graph by groups

    Hi everybody,

    I have to graph a variable over time referring to different individuals. In particular gdp per capita over 17 years referring to 22 regions.

    What i need is to plot a unique line graph where every line refers to one region's gdp. (one graph with 22 lines).

    I tried to use by command but I obtain several different graphs for each region. I didn't succeed in finding help in Stata manuals so I will appreciate any suggestion.

    Thank you


  • #2
    Try -help xtline-

    Comment


    • #3
      one easy approach will be to use a user written programme "lgraph". Install "lgraph" by typing: ssc install lgraph
      Once the installation complete, code for your graph will be:
      Code:
      lgraph gdp year region
      Roman

      Comment


      • #4
        Thank you both

        Giancarlo

        Comment

        Working...
        X