{smcl} {* Copyright 2007 Brendan Halpin brendan.halpin@ul.ie Distribution is permitted under the terms of the GNU General Public Licence } {* 16July2007}{...} {cmd:help degenne} {hline} {title:Title} {p2colset 5 17 23 2}{...} {p2col:{hi:degenne} {hline 2}}Calculate inter-sequence distances using Degenne distance{p_end} {p2colreset}{...} {title:Syntax} {p 8 17 2} {cmd:degenne} {it: varlist} {cmd:,} {it:options} [option] {synoptset 22 tabbed}{...} {synopthdr:options} {synoptline} {syntab:Sequence structure} {synopt :{opt len:gth(varname)}} sequence length {p_end} {synopt :{opt nst:ates(#)}} number of categories in state variable {p_end} {synoptline} {syntab:Distances} {synopt :{opt pwd:ist(matname)}} store the pairwise distances in {it:matname}, as a symmetric matrix. Will be created or overwritten. {p_end} {syntab:Measure type} {synopt :{opt deg:type(string)}} Defaults to angle. Argument "w {p_end} {synoptline} {p2colreset}{...} {title:Description} {pstd}{cmd:degenne} calculates distances between all pairs of sequences in the data, using methods based on those proposed by Degenne et al. (1995), where {it:varlist} is a consecutive set of variables describing the elements of the sequence. Degenne distances compare sequences element by element by summing the angle between the vectors of cumulated duration at each time point. {pstd} {title:Author} {pstd}Brendan Halpin, brendan.halpin@ul.ie{p_end} {title:Examples} {phang}{cmd:. matrix scost = (0,1,2,3\1,0,1,2\2,1,0,1\3,2,1,0)}{p_end} {phang}{cmd:. degenne mon1-mon36, subsmat(scost) pwdist(dist)}{p_end} {phang}{cmd:. matrix list dist}{p_end} {phang}{cmd:. degenne mon1-mon72, subsmat(scost) pwdist(dist)}{p_end} {phang}{cmd:. matrix list dist}{p_end}