help sdchronoplot

Title

sdchronoplot -- Graph the time-dependent state distribution

Syntax

sdchronoplot varlist (min=2) [if] [in] , options [options]

options

Optional
by(string) Graph by varlist, allows options.

proportional Graph proportional distribution (useful with by).

ydf(real) Improve appearance when using proportional.

* Accepts many graph options.

Description

sdchronoplot takes a set of sequences described by varlist in
wide format and graphs the time-dependent distribution of the state variable. This is sometimes called a
chronogram or chronoplot, or the transversal state distribution.

The state variable must be enumerated from 1 upwards. Cases with
missing values on any of the state or by variables are dropped.

The proportional option shows the percentage distribution
within groups using by. If the group sizes differ a lot, the
smaller groups may be printed with gaps: experiment with the
ydf(#) option, where # is a number a little greater than 1.0 (this
feeds into the ydiscrete option of the heatplot command; high values overstate the size of the top
category, so numbers near 1.0 are preferred).

sdchronoplot is built on Ben Jann's heatplot. You can install this by
ssc install heatplot. The command thus has access to the power of heatplot and the related packages palettes and colrspace.

Author

Brendan Halpin, brendan.halpin@ul.ie

Examples

. sdchronoplot state1-state72, by(male, legend(off))

. sdchronoplot state1-state72, by(male) color(tableau)