Announcement

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

  • Alluvial Diagram

    Hello Stata World,
    I am struggling to create an alluvial diagram in stata 13. I am interested in the movement of employees between departments. Each department has a location code and each employee has an employee id. I have a file with their location in september of 2012, 2013, 2014 and will have one for 2015 in a few months. What I want to show is the direction of transfers from one department to another. I have played with some web based diagram generators, but want to have a code to run every year that is consistent. Does anyone have any suggestions? Has anyone created a work around to generate Alluvial Diagrams or Sankey Diagrams?

  • #2
    I have not made any headway on this... any thoughts?

    Comment


    • #3
      No news is bad news. In principle you can do this in Stata, but I don't recollect any canned programs.

      Comment


      • #4
        Perhaps showing a transition matrix/matrices could be a better idea.
        http://www.aw-bc.com/greenwell/markov.pdf

        Comment


        • #5
          Hi, Sam-

          I was wondering if you have made any headway since your last post in this thread. I, too, am looking to create an alluvial diagram in Stata.

          Comment


          • #6
            Clicking on his profile shows that Sam Davidson has not been active here since 06 Jul 2015.
            It's the same answer from me.

            Comment


            • #7
              Thank you, Nick. Worth posting in case Sam made a breakthrough in the meantime and had notifications turned on for this thread. Cheers.

              Comment


              • #8
                There eventually come out several packages doing the work. All these packages are coincidentally released in Novermber and December in 2022. They are -alluvial- & -sankeyplot- wrote by Asjad Naqvi, -sankeyplot- wrote by Maik Hamjediers, and -sankey_plot- wrote by FernandoRios. And another one is -sankey- wrote by Michael Crowther to creates sankey (alluvial) plots using plotly in python. The authors discussed here: https://www.statalist.org/forums/for...in-stata/page2 You can check them by
                Code:
                search sankey
                or
                Code:
                ssc describe ...
                Last edited by Chen Samulsion; 31 Dec 2022, 19:03.

                Comment

                Working...
                X