<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-text-plain" wrap="true" graphical-quote="true"
style="font-family: -moz-fixed; font-size: 14px;" lang="x-unicode">
<pre wrap="">Dear TraMineR users,
I am running into a strange error message when I am using as.clustrange after hclust(... method="ward.D2") with weights. I already wrote a bug report concerning this error. Maybe, there is someone on the mailinglist who has experienced the same error and can give some helpful comments?
The complete error message is:
Error in `row.names<-.data.frame`(`<b class="moz-txt-star"><span class="moz-txt-tag">*</span>tmp<span class="moz-txt-tag">*</span></b>`, value = value) :
duplicate 'row.names' are not allowed
In addition: Warning message:
non-unique value when setting 'row.names': ‘cluster4’
Apparently, the rownames of the sequence object cannot be the cause of the problem as they are no hindrance in other cases: I can do all other stuff with the sequence object like seqplot(... weighted=TRUE). I am using the most current TaMineR version 1.8-9 and I have tried both the stable and the development version of the WeightedCluster package. If I am using agnes(... method="Ward") or forgo weights, the command works just fine. I assume that it has to do with the weights, but I do not know how to find the problem. Seqdef does not produce any errors or warnings and the weights do not seem to have problematic values. Unfortunately, I cannot post a public example from the EU-SILC microdata I am using due to confidentiality issues.
Here is a short description of my weight variable:
describe(mydata[, c("weight")])
mydata[, c("weight")]
n missing unique Info Mean .05 .10 .25 .50 .75 .90 .95
5439 0 4022 1 2987 504.8 766.6 1228.2 2122.4 3861.6 6445.6 8464.7
lowest : 0.00 69.51 71.14 116.27 127.13
highest: 19790.94 21687.61 22317.26 24353.99 46816.19
I would appreciate your thoughts and comments on this error!
Best regards,
Matthias
</pre>
</div>
</body>
</html>