I am working with data on individual trajectories, defined as a categorical state defined for each time period, using R's TraMineR package to visualize and calculate distances between each pair of trajectories for the sake of cluster analysis
One phenomenon I'm seeing is that trajectories like:
1: baaaa
2: abaaa
3: aaaab
all cluster together. For starters, we’re using the OM metric and, of course, each is just a distance of 2 to the other given an indel
parameter of 1. The result is a cluster that is interpreted as "brief 'b'".
However, my hope was to find a metric that would return distances of:
1 between sequence 1 and 2,
4 between sequence 1 and 3, and
3 between sequence 2 and 3.
That is: a distance that is based on swaps of adjacent values. My end goal would be clustering (as warranted by the data) of cases with "brief, and early 'b'" versus "brief, and early 'b'".