[Traminer-users] as.clustrange produces "Error in `row.names" after weighted hclust

Matthias Pohlig mpohlig at bigsss.uni-bremen.de
Tue Feb 24 15:47:40 CET 2015


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`(`*tmp*`, 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/traminer-users/attachments/20150224/b88aac26/attachment.html>


More information about the Traminer-users mailing list