[R] DICE Coefficient of similarity measure

Shubha Vishwanath Karanth shubhak at ambaresearch.com
Sat Apr 24 16:23:10 CEST 2010

Just wrote a small piece of code to do so. Thanks.

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
On Behalf Of Shubha Vishwanath Karanth
Sent: Saturday, April 24, 2010 6:28 PM
To: r-help at r-project.org; r-help at stat.math.ethz.ch
Cc: Gabor.Csardi at unil.ch
Subject: [R] DICE Coefficient of similarity measure



I wanted the DICE coefficient (similarity measure for binary variables)
to be calculated in R and found that the "igraph" package has the option
of "similarity.dice" to do this. But, for this command, the input object
should be an igraph object. But, I have a dataframe of columns
containing 1's and 0's. Can I convert this dataframe into an igraph
object, so that the DICE coefficient can be reproduced? Or does any
other packages gives the DICE coefficient?





This e-mail may contain confidential and/or privileged

R-help at r-project.org mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
This e-mail may contain confidential and/or privileged i...{{dropped:10}}

More information about the R-help mailing list