A Sequence Plot in Stata

A sequence plot is for a very specific type of dataset, one where there are many sequences all made up of the same elements but in different orders. The sequence plot is one way of visualising the many different sequences together. The best example of a sequence dataset is one which contains many different DNA or RNA sequences. In this example, for ease of generating a random dataset, we look at the different periods to do with work in a large dataset on a number of peoples' lives. These periods include unemployment, employment, inactivity, and tertiary study.

To create sequence plots in Stata, you first need to download the set of sequence commands from the SSC, which you do in Stata with the following command:

To generate this graph in Stata, use the following commands:

255 views0 comments

Recent Posts

See All