Hi! Its not an R specific question but had no idea where to ask elsewhere. Does anyone know the orginal reference to the CAMBERA DISTANCE? Eryk. Ps.: I knew that its an out of topic question (sorry). Can anyone reccomend a mailing list where such questions are in topic?
Thanks Mark. Yes I mean canberra. Searching for canberra camberra by google I observed the following. Searching for caMberra you will find a paper from 1997 where they write camberra instead of canberra dissimilarity for the meassure defined sum(|x_i - y_i| / |x_i + y_i|). Meanwhile there are plenty of articles on the net which reference this paper from 1997 and write caMberra instead of canberra. May be because it is much harder to find an article about canberra distance using google (because of the city). A quite assertive argument to use distinctive names and to publish papers in journals which are free, online and can be searched by google. Eryk *********** REPLY SEPARATOR *********** On 29.06.2004 at 15:51 Mark.Palmer at csiro.au wrote:>maybe you mean 'Canberra'?, if so it might have come from work in csiro >in canberra back in the 60's/70's? Look for Lance & Williams 1967 , >possibly. Aust. Comput. J. 1, 15-20 > > >Mark Palmer >Environmetrics Monitoring for Management >CSIRO Mathematical and Information Sciences >Private bag 5, Wembley, Western Australia, 6913 >Phone 61-8-9333-6293 >Mobile 0427-50-2353 >Fax: 61-8-9333-6121 >Email: Mark.Palmer at csiro.au >URL: cmis.csiro.au/envir > > > >-----Original Message----- >From: r-help-bounces at stat.math.ethz.ch >[mailto:r-help-bounces at stat.math.ethz.ch]On Behalf Of Wolski >Sent: Tuesday, 29 June 2004 3:45 PM >To: R Help Mailing List >Subject: [R] camberra distance? > > >Hi! > >Its not an R specific question but had no idea where to ask elsewhere. > >Does anyone know the orginal reference to the CAMBERA DISTANCE? > >Eryk. > >Ps.: >I knew that its an out of topic question (sorry). >Can anyone reccomend a mailing list where such questions are in topic? > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >stat.math.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! R-project.org/posting-guide.html
On Tue, 29 Jun 2004, Wolski wrote:>Hi! > >Its not an R specific question but had no idea where to ask elsewhere. > >Does anyone know the orginal reference to the CAMBERA DISTANCE? > >Eryk. > >Ps.: >I knew that its an out of topic question (sorry). >Can anyone reccomend a mailing list where such questions are in topic?sci.stat.consult (applied statistics and consulting) and sci.stat.math (mathematical stat and probability) Both news groups.> >______________________________________________ >R-help at stat.math.ethz.ch mailing list >stat.math.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! R-project.org/posting-guide.html >
From Legendre & Legendre Numerical Ecology I read: "The Australians Lance & Williams (1967a) give several variants of the Manhattan metric including their Canberra metric (Lance & Williams 1966c)" Lance &Williams (1967a) Mixed-data classificatory programs I.Agglomerative systems. Aust. Comput.J.1:15-20 Lance & Williams 1966c Computer programs for classification. Proc. ANCCAC Conference, Canberra, May 1966, Paper 12/3 HTH, Angel Wolski wrote:> Hi! > > Its not an R specific question but had no idea where to ask elsewhere. > > Does anyone know the orginal reference to the CAMBERA DISTANCE? > > Eryk. > > Ps.: > I knew that its an out of topic question (sorry). > Can anyone reccomend a mailing list where such questions are in topic? > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! R-project.org/posting-guide.html > > . >
Hi, I??m new in R. I??m working with similarity coefficients for clustering items. I created one function (coef), to calculate the coefficients from two pairs of vectors and then, as an example, the function simple_matching, taking a data.frame(X) and using coef in a for cicle. It works, but I believe it is a bad way to do so (I believe the for cicle is not necessary). Somebody can suggest anything better. Thanks Daniel Rozengardt coef<-function(x1,x2){a<-sum(ifelse(x1==1&x2==1,1,0)); b<-sum(ifelse(x1==1&x2==0,1,0)); c<-sum(ifelse(x1==0&x2==1,1,0)); d<-sum(ifelse(x1==0&x2==0,1,0)); ret<-cbind(a,b,c,d); ret } simple_matching<-function(X) { ret<-matrix(ncol=dim(X)[1],nrow=dim(X)[1]); diag(ret)<-1; for (i in 2:length(X[,1])) { for (j in i:length(X[,1])) { vec<-coef(X[i-1,],X[j,]); result<-(vec[1]+vec[3])/sum(vec); ret[i-1,j]<-result; ret[j,i-1]<-result}}; ret}