help cumuldur

Title

cumuldur -- Calculate cumulated duration in states of a sequence

Syntax

cumuldur varlist , cdstub(string) nstates(int)

Description

cumuldur creates variables holding the cumulative duration
in each state in a sequence described by the varlist. The
cdstub option gives the prefix of the new variables, and
nstates enumerates how many states there are. States must be
numbered from 1 up. A warning is issued if the total duration is less
than the sequence length (e.g., if the number of states is actually
larger than that given in the option, or if there are missing values or
values less than or equal to zero).

Author

Brendan Halpin, brendan.halpin@ul.ie

Examples

. cumuldur m1-m40, cd(dur) nstates(3)