Announcement

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

  • Graph time series problem

    Dear statalist,

    I am trying to look at each pair of countries individually in my dataset. My command is "twoway (tsline bilateralpair), ytitle(flow) ttitle(Time)" but the graph has plenty of lines as I have multiple pairs.
    How should I proceed to look at each bilateral flows one by one?
    Thanks!

    Best regards,

    Luka

  • #2
    It isn't completely clear what outcome you are seeking and/or what is undesirable about your current attempt. For example, you could generate a two layer graph where the first layer shows all the time series except that of interest as blue lines and the second layer shows only the time series of interest as an orange line. Or you could use xtline and use the options that allow you to create sub panels (like a lattice type graph) for each of the ith units over j periods of time.

    Comment


    • #3
      In the spirit of William (Billy)'s suggestion, you might check out subsetplot (SSC).

      For more, including examples, see

      http://www.statalist.org/forums/foru...ailable-on-ssc

      http://www.statalist.org/forums/foru...panel-per-date

      http://www.statalist.org/forums/foru...gle-data-point

      Comment


      • #4
        Hello

        I have a similar problem, I am looking at the marks of multiple students over a certain period of time and I would like to obtain a graph for only one student ID . Also when I do xtline marks it says marks is a string varible but with numbers so I am a bit confused how to proceed

        best,

        joseph

        Comment


        • #5
          You likely need to recast your student IDs to a numeric variable in order to xtset the data correctly. There isn't any real way to consistently map string data to a two dimensional numeric space without making assumptions that may not hold true in all cases.

          Comment

          Working...
          X