help turbulence

Title

turbulence -- Calculate sequence turbulence

Syntax

turbulence, GEN(newvarname) STAtevars(string) LENgthvars(string) NSPells(string) NSTates(real)

options

Required
gen(varname) names the variable in which to store the number of distinct subsequences

statevars(varlist) the variables holding the spell state information

lengthvars(varlist) the variables holding the spell duration information

nspells(varname) the variable holding the number of spells in each sequence

nstates(real) the number of distinct states

Description

turbulence Calculates Elzinga's turbulence measure of
sequence complexity. It takes spell information, where each spell has a
state variable and a length variable, and calculates an index based on
the number of distinct subsequences (see ndsub) and the variance of the durations.

Note: Assumes sequences are represented by consecutive variables containing numeric values.

Author

Brendan Halpin, brendan.halpin@ul.ie

Examples

. turbulence, gen(turb) sta(spell*) len(len*) nsp(nspells) nst(5)