stata-sankey

A Stata package for Sankey diagrams (by asjadnaqvi)

Stata-sankey Alternatives

Similar projects and alternatives to stata-sankey

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better stata-sankey alternative or higher similarity.

stata-sankey reviews and mentions

Posts with mentions or reviews of stata-sankey. We have used some of these posts to build our list of alternatives and similar projects.
  • Anyone know how I can make a similar figure to this? basically describes the temporal trends for pt's with a certain heart condition over three timepoints.
    1 project | /r/stata | 27 Feb 2023
    /* run once: net install sankey, from("https://raw.githubusercontent.com/asjadnaqvi/stata-sankey/main/installation/") replace ssc install palettes, replace ssc install colrspace, replace ado update, update // example dataset, if interested: use "https://github.com/asjadnaqvi/stata-sankey/blob/main/data/sankey2.dta?raw=true", clear */ clear all input str20 source str20 destination layer value // layer 1, the number moving from 1st node to 2nd "D. Severe" "D. Severe" 1 0 "D. Severe" "C. Moderate" 1 3 "D. Severe" "B. Mild" 1 2 "D. Severe" "A. None/Trivial" 1 1 "C. Moderate" "D. Severe" 1 0 "C. Moderate" "C. Moderate" 1 7 "C. Moderate" "B. Mild" 1 6 "C. Moderate" "A. None/Trivial" 1 11 "B. Mild" "D. Severe" 1 0 "B. Mild" "C. Moderate" 1 0 "B. Mild" "B. Mild" 1 0 "B. Mild" "A. None/Trivial" 1 0 "A. None/Trivial" "D. Severe" 1 0 "A. None/Trivial" "C. Moderate" 1 0 "A. None/Trivial" "B. Mild" 1 0 "A. None/Trivial" "A. None/Trivial" 1 0 // layer 2, the number moving from 2nd node to 3rd "D. Severe" "D. Severe" 2 0 "D. Severe" "C. Moderate" 2 0 "D. Severe" "B. Mild" 2 0 "D. Severe" "A. None/Trivial" 2 0 "C. Moderate" "D. Severe" 2 2 "C. Moderate" "C. Moderate" 2 1 "C. Moderate" "B. Mild" 2 5 "C. Moderate" "A. None/Trivial" 2 2 "B. Mild" "D. Severe" 2 4 "B. Mild" "C. Moderate" 2 1 "B. Mild" "B. Mild" 2 3 "B. Mild" "A. None/Trivial" 2 0 "A. None/Trivial" "D. Severe" 2 1 "A. None/Trivial" "C. Moderate" 2 1 "A. None/Trivial" "B. Mild" 2 5 "A. None/Trivial" "A. None/Trivial" 2 5 end drop if value==0 sankey value, from(source) to(destination) by(layer) /// sortby(name) showtotal colorby(level) labangle(0)

Stats

Basic stata-sankey repo stats
1
19
6.1
about 1 month ago

asjadnaqvi/stata-sankey is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of stata-sankey is Stata.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com