Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
3 votes
1 answer
28 views

What is "clall" in index.Gap in "clusterSim" R package?

I am using the "clusterSim" package in my project (https://cran.r-project.org/web/packages/clusterSim/clusterSim.pdf, page 39) and I do not understand the meaning of the "clall" ...
user2702's user avatar
1 vote
0 answers
99 views

Statistical method for finding homogeneous groups of curves

I need to divide a set of 100 or more response curves into groups. These curves are formed by backscattering intensity along a range of frequencies. Basically, each curve represents the intensity in ...
il nibbio's user avatar
1 vote
1 answer
286 views

Can we do clustering over several columns in a huge dataframe?

I have a dataset stands for customers retail sales data, it includes customer ID, Age, ...
nobodyishere's user avatar
1 vote
1 answer
604 views

Comparing clustering methods based on internal Cluster Validity Indices

I have used the R package dtwclust to generate clusters for more than a thousand time-series objects.Since I did not have any prior information on the number or validity of clusters, I used a suite of ...
Mansi's user avatar
  • 41
0 votes
0 answers
337 views

K-prototype in R: Error when including missing values

I want to cluster data that includes categorical (dummies and variables with multiple categories) and numerical variables (normalised) and a substantial amount of missing values. One reason why I want ...
Hwz's user avatar
  • 1
0 votes
0 answers
309 views

How to "characterize" clusters (e.g K means)

I ran the K-means clustering algorithm on the iris data using the R programming language: ...
stats_noob's user avatar
2 votes
1 answer
1k views

K-Means Clustering of time series in R

I want to create a cluster of K-Means of time series with R but I don't know where to start. Could you recommend some articles or tutorial?
Maria MJ's user avatar
2 votes
2 answers
72 views

How to make clusters (consisting of demands) equal to the load of a truck?

I am working on a routing problem where I have thousands of points (places) with individual demands (in Weight and Volume). So far I have created 5 clusters based on their location. Now I need to ...
Shibaprasad's user avatar
2 votes
0 answers
158 views

How to perform cluster analysis on categorial data in R

I have survey data with 1000 respondents, each one has awnsered 20 questions related to different product features of a car. Each question could be awnsered as "good", "indifferent"...
Jens Stach's user avatar
1 vote
0 answers
313 views

How to compare consistency between clustering results and list of values with different levels in R?

I found similar subjects on the website but I may have missed the relation with my own question. I'v seen questions about comparison of clustering results, but here it's more about comparing two lists ...
Jerobou's user avatar
  • 11
3 votes
1 answer
2k views

Assign new data to a cluster (using Gower distance and PAM algorithm)

I have a dataset which has mixed data types and hence I used Gower dissimilarity matrix as input to cluster the data using Partitioning Around Medoids (PAM) algorithm. I wanted to know if there is any ...
ANP's user avatar
  • 63
0 votes
1 answer
342 views

Using the ARI to validate clusters

To validate the results of a clustering solution, I am using the ARI to quantify the agreement with a reference classification method. Something which I do not quite understand is the concept of a "...
Indigo's user avatar
  • 73
1 vote
1 answer
6k views

Elbow method not giving a proper curve [duplicate]

I am trying to determine how many clusters to use for my k-means clustering using different methods. Gap statistic is giving me k=4 and Silhouette k=3. I have run k-means with both values and both of ...
Jessica Quach's user avatar
1 vote
0 answers
19 views

K means clusters, would PCA be a better option?

I have the data below. I need to use a clustering method to classify them and into categories of "Heterozygotote, Allele 1, Allele 2 and No Call. The values in RFU1 and RFU2 are used to determine the ...
Jordan Browne's user avatar
0 votes
1 answer
64 views

k-means method clarification

I am pretty new to k-means and cluster analysis methods, but I am trying to do it on 5 different measures of inequality and redistribution (Gini, P90/P10, Atkinson with different parameters and the ...
Luca Giangregorio's user avatar
-1 votes
1 answer
27 views

How do i cluster these data?

So basically, I have this data: ...
Wayne's user avatar
  • 1
0 votes
2 answers
869 views

R - high dimension data using k means clustering [closed]

The dataset is 1000(observations) x 700(variables), After using pca to do dimension reduction, PC150 explained 85% Variance, so I use this (1000 x 150) data to do k means clustering. This code was ...
Rufus7's user avatar
  • 3
3 votes
0 answers
38 views

Is my variable considered okay to use in k-means clustering with Euclidean distance?

I was wondering if I can use regular kmeans() in R with my variable "number of drug prescriptions" which equals a number between 1-25. From what I've read k-means ...
user21398's user avatar
  • 183
-1 votes
1 answer
94 views

Does this clustering quality metric make sense?

I am trying to stop at best quality metric in my clustering task. (I make spectral clustering using k-means). In short, I calculate intra-cluster pair-wise distances, take their square and sum them ...
alexeymosco's user avatar
  • 3,049
0 votes
1 answer
910 views

Clustering phrases using K-Means

I have a data set with some phrases. ...
Banjo's user avatar
  • 245
0 votes
1 answer
82 views

Clustering for medium data [closed]

Which clustering method is good in R for a data with ~32,000 subjectsa and 10 variables, hierarchical or k-means?
Tabbi's user avatar
  • 15
3 votes
1 answer
3k views

How can I order kmeans clusters?

I have a kmeans cluster object and I would like to order the clusters. Not the observations within the clusters, rather the clusters in order of each other. Is there a way of doing this? I found ...
Doug Fir's user avatar
  • 1,588
1 vote
2 answers
3k views

How to optimize the result of K means

I am analyzing the data of abalone. My goal is to classify the data into three categories(premium, medium premium, and classic). Since it's an unlabeled dataset, so I utilized K means clustering to do ...
梁楷葳's user avatar
1 vote
1 answer
355 views

K-means dominated by one or two variables only

What should we do if clustering such as K-means is dominated by one or two variables in the list of used variables? Shall we leave the other variables?
user216116's user avatar
4 votes
2 answers
111 views

Is k-means clustering supposed to behave like this?

First of all, data I'm using can be found here. My code is: ...
Pedro Cavalcante's user avatar
5 votes
2 answers
2k views

Compare clustering results with different attributes and number of clusters

I used K-means to cluster a large data set that has millions of samples. I tried to create the clusters with different sets of attributes, which, as a result, generated different optimal number of ...
syd's user avatar
  • 159
1 vote
1 answer
557 views

K-means clustering on a large matrix using kendall's tau as a distance measure

I'm trying to use kmeans clustering on a relatively large matrix (4000x4000) using the amap::Kmeans function but R seems to be freezed even after more than half an hour. I have to restart R after this....
mickkk's user avatar
  • 949
1 vote
2 answers
395 views

Cluster Analysis on a 20,000+ row data set using K-Means 'tot.withinss' not working in R

I have 20,000+ rows of data around 7 columns. I tried to do cluster analysis on it using K-Means where k= 5. When I attempted to plot the clusters, it was not helpful at all, too much data so it all ...
Sarah's user avatar
  • 11
2 votes
1 answer
777 views

Clustering spatial data based on location and values

I'm looking for a way, preferably in R, to create a cluster of point data (specifically, the centroids of UK postcodes), where each cluster comes as close as possible to containing a certain number of ...
user avatar
1 vote
0 answers
138 views

Analysis of k-means clustering in r

I have a group of 144 people. I have 3 categorical observations and each of them is described by three variables. After performing a k-means on 3 clusters in r I see that one of the groups, "overt" ...
Patrick 's user avatar
1 vote
1 answer
357 views

R: why different between [k-means] build-in function and Kmeans from amap package

I am doing k-means algorithm on iris data using two functions, the regular "kmeans" and "Kmeans" from amap package. ...
Xiaonan's user avatar
  • 11
4 votes
1 answer
3k views

clustering groups but with multiple observations per group

I'd have 10 groups and hundreds of observations per group. In this toy example I only have 3 groups with 20 observations each. I am looking to see if groups are similar so I'm using kmeans to ...
user3022875's user avatar
2 votes
2 answers
1k views

Clustering with numerical variables and one non numerical

I'd like some help with an issue that might seem easy but I'm stuck in my analysis. I'm working with R on a dataframe containing 15 variables: 14 numerical or Integer and 1 factor. I'd like to do ...
Laurent Magon's user avatar
0 votes
0 answers
712 views

can I use manhattan distance function on hartigan wong kmeans clustering

I would like to perform Hartigan Wong clustering on high dimensional data. As I understand, Manhattan distance works better than the Euclidean distance in higher dimensions. I have been using the K-...
Paba's user avatar
  • 283
3 votes
2 answers
3k views

Is there a clustering algorithm that can take a maximum distance from any mean as a constraint?

I am building an analytical tool that depends on being able to take a bunch of 1 dimensional numbers and group them into categories based on how close each number is to the mean of the group. However, ...
Chechy Levas's user avatar
  • 1,275
1 vote
1 answer
193 views

Unsupervised classification - verification of clusters

Not sure if this is best placed here but I will have a go. I am working with clinical data in order to stratify patients using different biomarkers. I have log transformed and MinMax normalised all ...
JP1's user avatar
  • 201
1 vote
2 answers
486 views

How to find the driving individuals of different k means clusters

My data of 4000 gene expression values across 159 different cells is formatted as so: ...
sk523's user avatar
  • 11
5 votes
2 answers
10k views

Optimal number of clusters using K-Prototypes method in R

I am trying to cluster some big data by using the k-prototypes method. I am unable to use K-Means as I have both categorical and numeric data. I have been using the package "clustMixType" and have ...
Fiona's user avatar
  • 151
1 vote
1 answer
1k views

Customer behavior analysis and clustering using data from loyalty program?

I'm trying to do some analysis on customers behavior. Basically, I have information on customer's loyalty points activities data (e.g. how many points they have earned, how many points they have used, ...
IV_Z's user avatar
  • 11
2 votes
2 answers
713 views

Mapping k-means cluster centers and origins (measuring k-means accuracy)

Say I generate a dataset $X$: the first $i$ samples follow $x_i\sim N(\mu_1,\Sigma_1^2)$, the next j samples follow $N(\mu_2,\Sigma_2^2)$ and the last $l$ samples from $N(\mu_3,\Sigma_3^2)$. Naturally,...
Spätzle's user avatar
  • 4,027
2 votes
0 answers
2k views

Why Elbow algorithm plot shows a straight line instead of curve line?

I want to apply kmeans clustering algorithm on dataset of 12008 samples. This dataset is actually an eigenvector matrix of size (12008 * 12008) generated from given laplacian matrix. In order to ...
Steven's user avatar
  • 499
5 votes
1 answer
19k views

How to interpret the clusplot in R

I have plotted the Bivariate Cluster Plot (of a Partitioning Object) using the clusplot from the cluster package. Following is ...
Vipin Verma's user avatar
4 votes
2 answers
3k views

K-Means clustering visualization & evaluation

I want to know after running K-means algorithm on a data set of say 10 variables and getting optimal clusters through Elbow curve--how do I to evaluate the goodness of these clusters (I mean apart ...
Pb89's user avatar
  • 345
0 votes
1 answer
1k views

Can I use Clustering with mixed data type in R? [duplicate]

I know there is same question in cross validated. But it is somewhat different. Clustering of mixed type data with R At there Q&A, as using daisy funtion(), we can use categorical data type in ...
서영재's user avatar
2 votes
3 answers
3k views

Clustering into ordered clusters

In a research study I have a list of countries and data about them. GDP Population Oil exports Oil imports Percentage of electricity produced with renewable energies Urbanization Percentage of GDP ...
Ferdi's user avatar
  • 5,257
2 votes
1 answer
186 views

After creating a cluster in R, how can I identify which centers are the most important in each cluster? [closed]

I have 30 observations and 60 variables. I conducted a k-means cluster in R with 5 clusters. If I am supposed to choose only 10 variables to show that they have the impact on creating clusters more ...
Amir's user avatar
  • 21
9 votes
1 answer
10k views

Was it as valid to perform k-means on a distance matrix as on data matrix (text mining data)?

(This post is a repost of a question I posted yesterday (now deleted), but I've tried to scale back volume of words and simplify what I'm asking) I'm hoping to get some help interpreting a kmeans ...
Doug Fir's user avatar
  • 1,588
6 votes
1 answer
11k views

R - How to fix NbClust error with error message: "The TSS matrix is indefinite. There must be too many missing values."

I would like to know how I can use clustering methods in R (in this case, Kmeans) if I have an "unkind" input matrix (I get this error log: The TSS matrix is indefinite. There must be too many ...
Julia_Engl's user avatar
1 vote
1 answer
317 views

In R package 'cclust' is there an equivalent of 'nstart' option from the 'kmeans' package? [closed]

I am trying to do k-means clustering in R using the cclust package. In k-means clustering, the initial centroid assignment greatly affects the final allocation. The kmeans package has an nstart option,...
Tapan Khopkar's user avatar
-1 votes
2 answers
3k views

Meaning of this Cluster Analysis

I have 801 households (or customers). I have say 100 features on which I will describe a customer. I have a feature map with me. I now apply K Means algorithm for the value of K say 6. I get 6 ...
jaig's user avatar
  • 309