Announcement

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

  • Correlation plot

    Hello,

    I am working with panel data and I can't figure out how to do the correlation plot of the coefficients within the series with the correlation coefficient included on the graph - can anyone help me with this?

    My data look like this:

    Code:
    * Example generated by -dataex-. For more info, type help dataex
    clear
    input str13 name double b float year
    "JACK"      -.075937 .   1991 
    "JACK"      .1501285   .1992
    "JACK"      .3293718   .1993  
    "JACK"       .161559 .   1994  
    "JACK"      .2093327 .  1995 
    "JOHN"      -.0827775  1991 
    "JOHN"       .1437437  1992  
    "JOHN"       .3541014  1993  
    "JOHN"       .1606005  1994  
    "JOHN"       .0737792  1995
    Thank you for your help!

  • #2
    Code:
    line b year , by(name)
    is legal with your example. How useful that is for your real dataset only you can say. With many panels you may or may not prefer plotting several traces in one graph..

    Comment

    Working...
    X