Hi group, I've been thinking of calculating euclidean distance between each column of a data frames that each consists of standardized numerical columns. However, I don't know if there's a way of summarizing the overall distance by some kind of metrics. If anyone know a proper way of doing so and/or a package I would greatly appreciate your suggestions. Thanks very much! Kel -- View this message in context: http://r.789695.n4.nabble.com/How-to-measure-level-of-similarity-of-two-data-frames-tp4631466.html Sent from the R help mailing list archive at Nabble.com.
Özgür Asar
2012-May-26 19:14 UTC
[R] How to measure level of similarity of two data frames
Hi, You can try rdist function under the package fields, or dist package under stats package. Best Ozgur ----- ************************************ Ozgur ASAR Research Assistant Middle East Technical University Department of Statistics 06531, Ankara Turkey Ph: 90-312-2105309 http://www.stat.metu.edu.tr/people/assistants/ozgur/ -- View this message in context: http://r.789695.n4.nabble.com/How-to-measure-level-of-similarity-of-two-data-frames-tp4631466p4631470.html Sent from the R help mailing list archive at Nabble.com.
Thanks Ozgur. I will definitely try them out. Cheers, Kel -- View this message in context: http://r.789695.n4.nabble.com/How-to-measure-level-of-similarity-of-two-data-frames-tp4631466p4631478.html Sent from the R help mailing list archive at Nabble.com.
Meyners, Michael
2012-May-29 05:13 UTC
[R] How to measure level of similarity of two data frames
Kel, in addition, and depending on how you define "similarity", you might want to look into the RV coefficient as a measure of it (it is actually related to a correlation, so similarity would rather mean "similar information" though not necessarily small Euclidean distance); coeffRV in FactoMineR would be one option to determine it. HTH, Michael> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of Lamke > Sent: Samstag, 26. Mai 2012 20:05 > To: r-help at r-project.org > Subject: [R] How to measure level of similarity of two data frames > > Hi group, > > I've been thinking of calculating euclidean distance between each > column of a data frames that each consists of standardized numerical > columns. > However, I don't know if there's a way of summarizing the overall > distance by some kind of metrics. If anyone know a proper way of doing > so and/or a package I would greatly appreciate your suggestions. > Thanks very much! > > Kel > > -- > View this message in context: http://r.789695.n4.nabble.com/How-to- > measure-level-of-similarity-of-two-data-frames-tp4631466.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html > and provide commented, minimal, self-contained, reproducible code.