Dear StataList,
I am currently working on a sequences analysis (with 6 potential sequence states) and use the -sqom- command for optimal matching.
As a next step I would like to cluster my sqom-results. For this, I am using the command -sqclusterdat- procedure as described in “Sequence analysis with Stata” (Brzinsky-Fay/Kohler/Luniak, 2006, The Stata Journal6(4), 435-460).
My log-file looks like this:
A problem occurs every time I try to produce a dendrogram. I type:
And the Stata output is:
I found a similar question in the old “statalist”, where Uli Kohler answered:
“So I can only add that during verification of -sqclusterdat- I quite regularly encounter the "currently can't handle dendrogram reversals" from cluster tree (and I don't remember whether it arises only with other methods than Ward's). I usually solve the problem by simply changing the cutnumber to something very close.” (22 Mar 2012)
Unfortunately, changing the cutnumber does not work for me. The error message occurs regardless of the cutnumber I specify - I tested cutnumber(1) to cutnumber(50).
What happened? What is wrong and how can I fix it?
I am grateful for any help and feedback!
Thank you!
Best Regards,
Doerthe
[stata version 14.1; windows 10]
I am currently working on a sequences analysis (with 6 potential sequence states) and use the -sqom- command for optimal matching.
As a next step I would like to cluster my sqom-results. For this, I am using the command -sqclusterdat- procedure as described in “Sequence analysis with Stata” (Brzinsky-Fay/Kohler/Luniak, 2006, The Stata Journal6(4), 435-460).
My log-file looks like this:
Code:
. sqom, full k(2) Perform 398278 Comparisons with Needleman-Wunsch Algorithm Running mata function Distance matrix saved as SQdist . matrix dir SQdist[893,893] levels[1,6] . sqclusterdat . clustermat wardslinkage SQdist, name(WARD) add
Code:
. cluster tree WARD, cutnumber(20)
Code:
currently can't handle dendrogram reversals
“So I can only add that during verification of -sqclusterdat- I quite regularly encounter the "currently can't handle dendrogram reversals" from cluster tree (and I don't remember whether it arises only with other methods than Ward's). I usually solve the problem by simply changing the cutnumber to something very close.” (22 Mar 2012)
Unfortunately, changing the cutnumber does not work for me. The error message occurs regardless of the cutnumber I specify - I tested cutnumber(1) to cutnumber(50).
What happened? What is wrong and how can I fix it?
I am grateful for any help and feedback!
Thank you!
Best Regards,
Doerthe
[stata version 14.1; windows 10]