search for: gower

Displaying 20 results from an estimated 734 matches for "gower".

Did you mean: power
2008 Sep 02
2
cluster a distance(analogue)-object using agnes(cluster)
....Width : num 3.5 3 3.2 3.1 3.6 3.9 3.4 3.4 2.9 3.1 ... $ Petal.Length: num 1.4 1.4 1.3 1.5 1.4 1.7 1.4 1.5 1.4 1.5 ... $ Petal.Width : num 0.2 0.2 0.2 0.2 0.2 0.4 0.3 0.2 0.2 0.1 ... $ Species : Factor w/ 3 levels "setosa","versicolor",..: 1 1 1 1 1 1 1 1 1 1 ... Test.Gower <- distance(iris2, method ="mixed") Test.Gower.agnes<-agnes(Test.Gower, diss=T) Fehler in agnes(Test.Gower, diss = T) : (list) Objekt kann nicht nach 'logical' umgewandelt werden Error in agnes(Test.Gower, diss=T). (list) object can`t be transformed to "logical"...
2004 Nov 09
1
gdist and gower distance
Dear All, I would like to ask clarifications on the gower distnce matrix calculated by the function gdistin the library mvpart. Here is a dummy example: > library(mvpart) Loading required package: survival Loading required package: splines mvpart package loaded: extends rpart to include multivariate and distance-based partitioning > x=matrix(1...
2006 Nov 17
3
gower distance calculation
Hello I have 2 rows in a matrix and I want to calculate the Gower Distance between the 2 , how can I do it? I searched and found nothing that can help me, and my program doesn't know the gdist function and I couldn't find it on the R help site. Can anyone help me plz Thank u all [[alternative HTML version deleted]]
2012 Oct 15
1
weighting variables using Gower with DAISY
Hello, I am running DAISY in R and using the GOWER metric since I am working with mixed variables. I am wondering if there is a way to weight the different variables. I see that there is a weight value for Gower but do not know if this is how to weight the diffrent variables with different weighting values. Please advise if there is a way to weight...
2010 Nov 24
2
Change the class of columns in a data frame
Hi. First of all, excuse me if I do any mistakes, but English is not a language I use very often. I have a data frame with numbers. A small part of the data frame is this: nominal ordinal 2 2 2 1 2 1 2 2 So, I want to use the gower distance function on these numbers. Here ( http://rgm2.lab.nig.ac.jp/RGM2/R_man-2.9.0/library/StatMatch/man/gower.dist.html) says that in order to use gower.dist, all nominal variables must be of class "factor" and all ordinal variables of class "ordered". By default, all the...
2005 Apr 18
2
Very Slow Gower Similarity Function
Hello, I am a relatively new user of R. I have written a basic function to calculate the Gower similarity function. I was motivated to do so partly as an excercise in learning R, and partly because the existing option (vegdist in the vegan package) does not accept missing values. I think I have succeeded - my function gives me the correct values. However, now that I'm starting to use it...
2005 Sep 26
1
calculating distances using Gower's coefficient on mixed variables.
I want to compute the distances in a mixed variable matrix using the Gower coefficient. I understand it is possible to calculate distances in a matrix with mixed variables using the dudi.pco command. How would this work? Jorine
2006 Aug 13
1
Gower Similarity Coefficient
I'm interested in clustering my data using the Gower Similarity Coefficient, and I was wondering if R is capable of using that metric Timothy Rye [[alternative HTML version deleted]]
2012 Oct 18
0
want to count 2 NULLS as disimilar with DIANA/DAISY/GOWER
I am using DIANA/DAISY/GOWER. Some of my categorical data include NULLS. When assessing disimilarity, these NULLS are considered similar. I do not want these NULLS to contribute towards similarity. Instead is there a way for these NULLS to each be considered different so as to contribute to disimiliarity and not simillarity? A...
2013 Dec 07
1
How to perform clustering without removing rows where NA is present in R
I have a data which contain some NA value in their elements. What I want to do is to **perform clustering without removing rows** where the NA is present. I understand that `gower` distance measure in `daisy` allow such situation. But why my code below doesn't work? __BEGIN__ # plot heat map with dendogram together. library("gplots") library("cluster") # Arbitrarily assigning NA to some elements mtcars[2,2] <- "NA"...
2013 Dec 08
3
Why daisy() in cluster library failed to exclude NA when computing dissimilarity
...mpute dissimilarity when NA (missing) value(s) is present. http://stat.ethz.ch/R-manual/R-devel/library/cluster/html/daisy.html But why when I tried this code library(cluster) x <- c(1.115,NA,NA,0.971,NA) y <- c(NA,1.006,NA,NA,0.645) df <- as.data.frame(rbind(x,y)) daisy(df,metric="gower") It gave this message: Dissimilarities : x y NA Metric : mixed ; Types = I, I, I, I, I Number of objects : 2 Warning messages: 1: In min(x) : no non-missing arguments to min; returning Inf 2: In max(x) : no non-missing arguments to max; returning -Inf I welcome other alternative than...
2018 Oct 26
2
Bug report for sealClass() in Core-maintained package "methods"
Hello, I was just reminded from a comment in some code that I had submitted this bug report last year, but it does not appear to have been addressed in R 3.5.0. Can this please be fixed, or is there a specific reason that it cannot be addressed? Thanks, Adam From: Gower, Adam Sent: Monday, June 19, 2017 11:56 AM To: 'r-devel at r-project.org' Subject: Bug report for sealClass() in Core-maintained package "methods" Hello, I have found that I cannot use sealClass() without specifying the 'where' argument. I have found this issue in R 3.2....
2008 Oct 13
1
Gower distance between a individual and a population
Hi the list, I need to compute Gower distance between a specific individual and all the other individual. The function DAISY from package cluster compute all the pairwise dissimilarities of a population. If the population is N individuals, that is arround N^2 distances to compute. I need to compute the distance between a specifi...
2011 Dec 21
0
Gower
Alguém sabe onde encontro os comandos para utilizar em daisy() no pacote cluster o método de Gower para dados moleculares codominantes, quantitativos e multicategóricos "conjuntamente"? Agradeço. OBS.: confirmar por favor o recebimento da mensagem. #################################### Adésio Ferreira Universidade Federal do Espírito Santo Centro de Ciências Agrárias Departamento d...
2011 Mar 24
1
Two matrix loop
...istances between my three donors, and eleven receivers. The end result should be a 11x3 matrix with distances between the units from the two matrices. I can calculate one distance measure (ie donor 1 and receiver 1). Like this: library(cluster) daisy(rbind(donor[1,], receiver[1,]), metric = 'gower') My first attempt was a simple nested for-loop. But that one was discarded after reading up on efficiency issues with for-looping. So I turned to 'apply' with this result: apply(donor, 1, function(b) apply(receiver, 1, function(a) daisy(rbind(b, a), metric = 'gower')))...
2009 Jul 30
1
stepwise variable selection method wanted
Hi List, I am looking for a variable selection procedure with a forward-backward selection method. Firstly, it is meant to work with the cophenetic correlation coefficient (CPCC) and intended to find the variable combination with the highest cophenetic correlation. Secondly, it is aimed at Gower metric with wards method (though this could be easily extended) aimed at categorical data. What I have so far is a function for backward selection that returns the variables deleted and associated CPCC. My current approach is cumbersome and very slow when working with large data sets (mostly beca...
2007 Jul 23
1
Cluster prediction from factor/numeric datasets
Hi all, I have a dataset with numeric and factor columns of data which I developed a Gower Dissimilarity Matrix for (Daisy) and used Agglomerative Nesting (Agnes) to develop 20 clusters. I would like to use the 20 clusters to determine cluster membership for a new dataset (using predict) but cannot find a way to do this (no way to "predict" in the cluster package). I know I c...
2007 Jun 21
1
Distance function
Hello you all from the R Help mailing list! I am working on a PowerBook with Mac Os X and use R 2.5.0. I used the distance function from the analogue package to perform a similarity analysis using the Gowers Index and weighted Variables. My variables are bivariate data and measurements as well as interval data transformed into minimum and maximum variables. I used this Code: Dist.Gowa<-distance(Table1a ,Table0a ,method ="mixed", weights (weighting),R = NULL ) weighting is a vector c...
2015 Apr 27
5
paquete DBmethods
Hola a todos,soy nuevo en esto de R y no tengo mucho conocimiento sobre programación, pero tengo una consulta sobre un paquete. Encontré una investigación en donde utilizaban el paquete DBmethods y estoy interesado en usarlo, mas que todo por la distancia de Gower para datos mixtos (dgower), pero el paquete ya lo he buscado y no figura en la lista de paquetes para instalar. No sé si alguien me podría ayudar con ese tema. En la investigación esta detallado la sintaxis y el código fuente de la función; y también indican que esta es distinta a la distancia de g...
2005 Sep 29
5
Regression slope confidence interval
...wares, and I thought this would be quite a standard application.) I know that it's easy to implement but it's for explanation to people who faint if they have to do their own programming... Christian *** --- *** Christian Hennig University College London, Department of Statistical Science Gower St., London WC1E 6BT, phone +44 207 679 1698 chrish at stats.ucl.ac.uk, www.homepages.ucl.ac.uk/~ucakche