A Lexis Plot in Stata

A Lexis plot is a two-dimensional diagram that represents the events in the lives of different groups of people. These events can be anything from birth up to and including death, depending on what you are trying to represent. This example includes the events of birth and death, as well as the event where one of five drugs was prescribed to the individuals. This example is tracking outcomes for several different drugs on different groups of people.

To create a Lexis plot in Stata you first need to download the evhistplot command from the SSC, which you can do from within Stata with the following command:

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

190 views0 comments

Recent Posts

See All