Cluster analysis in R | Finding out Intra and Inter cluster distances and optimum number of clusters

  Рет қаралды 30,971

The Outlier

The Outlier

Күн бұрын

Пікірлер: 109
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
Check the script in the video description............
@s.praveenmscvegetablescien1632
@s.praveenmscvegetablescien1632 10 ай бұрын
very useful lecture sir, thanks
@priyankaparihar2217
@priyankaparihar2217 9 ай бұрын
Thank you. this is very helpful
@aberaseboka2456
@aberaseboka2456 3 жыл бұрын
It is more informative Sir thank you more!.
@PlantBreeding_is_my_passion
@PlantBreeding_is_my_passion 6 ай бұрын
Excellent information, thanks for explaining every step very clearly
@gizawwegayehu6103
@gizawwegayehu6103 8 күн бұрын
help full video thank you!
@bartolodimattia2501
@bartolodimattia2501 Жыл бұрын
Amazing, BIG!
@linuxvegalinuxvega1918
@linuxvegalinuxvega1918 5 ай бұрын
Very good explanation, the pea.xlsx file can you post it? Did you publish your findings ?
@zeruyimer3764
@zeruyimer3764 3 жыл бұрын
Thanks more for sharing the video. If possible can you show an other video on Prep-design and lattice design (i.e. simple and triple lattice) data analysis ? Thank you...
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
You are welcome Zeru, you can check the recent video on Agricultural statistical tools which is uploaded recently in my data analysis playlist you may find what you're looking for in STAR app manual.
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
Hi there, don't hesitate to ask your doubts here....... Feel free to ask me.
@gpb100percent_bkpraveen
@gpb100percent_bkpraveen 2 жыл бұрын
Nicely explained
@sandipbohara9534
@sandipbohara9534 7 ай бұрын
sir,how to make the circular cluster dendrogram
@AmitRana-c1y
@AmitRana-c1y Жыл бұрын
Which method will be suitable for cluster analysis for 300 treatments/genotypes and how can i represent it using dendrogram or any clustering technique for data visualization.
@Guruprasad_A
@Guruprasad_A Жыл бұрын
Ward method is more suitable.
@rakhimahto376
@rakhimahto376 2 жыл бұрын
Can you please make video on basics of R...or recommend any source for the same
@Guruprasad_A
@Guruprasad_A 2 жыл бұрын
Yup, I will do
@Guruprasad_A
@Guruprasad_A 2 жыл бұрын
I recommend you to join datacamp, to learn syntax
@JMSBRK
@JMSBRK 2 жыл бұрын
The topic was very simple clearly & well explained. Your video is now among my go to resources in data science. Just a small constructive criticism : You have already added your R code however the dataset you used (pea.xlsx) hasn't been included. Thus, your script won't work without it & it may have no use for people who wishes to try practice themselves. So, that would be much better if you include the excel file as well, imho. But overall fantastic tutorial & very helpful for rookies 👍
@deepikachandrasekaran3554
@deepikachandrasekaran3554 3 жыл бұрын
Thank you for the video sir. If scaling is only for quantitative trait what could we do for qualitative traits...how to do cluster analysis for qualitative traits?
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
Most often we won't consider qualitative traits, if you are considering them the clustering will not be good, if you want to that you can do it in SPSS using two step clustering option.
@deepikachandrasekaran3554
@deepikachandrasekaran3554 3 жыл бұрын
@@Guruprasad_A Ok sir. Thank you for your reply.
@babitabhatt6469
@babitabhatt6469 4 ай бұрын
hello sir, my design was Augmented 2 with 7 blocks ..210 RILs of sorghum , with 6 checks replicated in each block . In case of this should igo for hierarchical clustering analysis using k means and include adjusted mean of 210 lines for analysis. . am I right s? I have to do interpretation on the bases of fodder yield. ..so is their any specification for doing trait wise clustering.. I have taken quantative traits along with shoot fly associated dead heart percent etc traits .. as my RILs are the population of shoot fly susceptible x resistance cross .... so how should I proceed for the analysis on diversity for forage sorghum based on my characters ...total 18 characters were taken..... Should I limit my traits according to my objective of interpretation ..or should I subject all the traits .... .is for non replicated data non hierarchical clustering Is different from hierarchical ?
@Guruprasad_A
@Guruprasad_A 3 ай бұрын
Send your doubts to my email present in channel about section.
@vikramana7796
@vikramana7796 7 ай бұрын
Sir i have doubt, how to write multivariate D2 analysis and ward D2 method hierarchical clustering in thesis, they differing in cluster partition.
@Guruprasad_A
@Guruprasad_A 7 ай бұрын
You go with one which suits you. Mostly for diversity studies D2 test is better.
@刺猬带刀
@刺猬带刀 3 жыл бұрын
how to understand wss silhouette NbClust giving different clusters number suggestion? which we should believe more?
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
Just look the things given in my video description.
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
NBClust. because it is based on 30 different indices.
@revanthsrirangaraju8863
@revanthsrirangaraju8863 3 жыл бұрын
I wanted to perform hierarchical clustering for my data which has 4k observations, I have applied 'NbClust' with smaller number of clusters i.e 2 - 9, and it throws this error - " Error in plot.new() : figure margins too large "
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
Try to adjust the number of clusters in between 1 to 15 or so..
@revanthsrirangaraju8863
@revanthsrirangaraju8863 3 жыл бұрын
@@Guruprasad_A Sure, I will try that Thank you
@mukeshdhadhich2733
@mukeshdhadhich2733 5 ай бұрын
After calculating d sq distance according to privious video. Then according to this video number of cluster is different how we can solve this. Please respond
@Guruprasad_A
@Guruprasad_A 5 ай бұрын
You won't get similar results stick to one method.
@warwan.search
@warwan.search Жыл бұрын
Can you please do analysis for path and corelation .i am not able to run the program
@Guruprasad_A
@Guruprasad_A Жыл бұрын
Check my video on correlation.
@mahidargowd3432
@mahidargowd3432 Жыл бұрын
Can we get label font size clear and small
@Guruprasad_A
@Guruprasad_A Жыл бұрын
Dendrogram labels?
@rahulm.r2269
@rahulm.r2269 3 жыл бұрын
How to get percent contribution of each independent trait on the dependent variable similar to that one used by Tocher's ?
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
stackoverflow.com/questions/62332254/is-there-a-way-to-determine-the-weight-of-different-attributes-used-for-r-cluste
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
Check out the above article on FeatureImpCluster, I think you need to get it from devtools.
@rukoochawla9714
@rukoochawla9714 2 жыл бұрын
How to fill rectangle and lines with color in hierarchical dendrogram
@Guruprasad_A
@Guruprasad_A 2 жыл бұрын
kzbin.info/www/bejne/gIOqfpiGhZt0a80
@Guruprasad_A
@Guruprasad_A 2 жыл бұрын
Check this out
@tinymee589
@tinymee589 Жыл бұрын
How we generate output file for all this process ?
@Guruprasad_A
@Guruprasad_A Жыл бұрын
sink("output.txt") # your code to get the output . . sink()
@anandjaiswar3929
@anandjaiswar3929 2 жыл бұрын
where can i get the pea dataset
@Guruprasad_A
@Guruprasad_A Жыл бұрын
It's my research data.
@abc_def789
@abc_def789 3 жыл бұрын
Which inter class and intra class cluster should we use?
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
Most often it's average only
@anilkhar
@anilkhar 3 жыл бұрын
When I used NbClust I am getting this message 'Error in NbClust(data = Table.s, diss = NULL, distance = "euclidean", : The TSS matrix is indefinite. There must be too many missing values. The index cannot be calculated." The silhouette method is given number of clusters as 7
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
stats.stackexchange.com/questions/204760/r-how-to-fix-nbclust-error-with-error-message-the-tss-matrix-is-indefinite?newreg=6dbb3e394e5f40cf8b1e50a16f88ee84
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
Consider 7 only for k means clustering
@samrathbaghel9026
@samrathbaghel9026 Жыл бұрын
Hi I did clustering using ward.d , and got 5 optimal number of clusters but in cluster mean it is giving mean for only 4 clusters .,why
@Guruprasad_A
@Guruprasad_A Жыл бұрын
I hope there might be a problem while selecting number of clusters object, in case of that you can manual calculate the average by adding one more extra column alongside of treatments indicating which cluster they belong, later sort them and get the average using MSExcel.
@bhuvaneshwaris8146
@bhuvaneshwaris8146 7 ай бұрын
I have loaded corrected means from augmented RCBD.. But one numerical trait is taken as character.. after changing to numeric it is showing values as 'NA' for all genotypes... This unable to proceed with k means .. it is showing error... How to go about..? Kindly help..
@Guruprasad_A
@Guruprasad_A 7 ай бұрын
Check there might be problem in the data what you have entered. There might be double pulstop or a alphabet like o instead of zero.
@minhaoling3056
@minhaoling3056 3 жыл бұрын
Dear Sir, I am doing cluster analysis of 40,000 points. I used the efficient hierarchical clustering algorithm and successfully did the clustering. Now I want to choose the optimal no of clusters. Which one would you suggest for dealing with large dataset? Because I need to test from k=1 , … , k=40000, which is huge
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
www.datanovia.com/en/lessons/clara-in-r-clustering-large-applications/
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
?NbClust Pass the above argument in the R script to get more help, where you can understand what you can make out with help of NbClust
@minhaoling3056
@minhaoling3056 3 жыл бұрын
@@Guruprasad_A hi i tried nbclust, but still its quite slow to compute all one by one.
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
@@minhaoling3056 Try to define a narrow range for the number of clusters in the NbClust function i.e min.nc and max.nc
@im_hung9058
@im_hung9058 3 жыл бұрын
Hi. I am new to this field. I'am trying to conduct as you illustrated, but I got a pause at clustering with NbClust: Error in NbClust(data = newdata, diss = NULL, distance = "euclidean", : The TSS matrix is indefinite. There must be too many missing values. The index cannot be calculated. Could you help me?
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
stackoverflow.com/questions/46067602/the-tss-matrix-is-indefinite-there-must-be-too-many-missing-values-the-index
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
stats.stackexchange.com/questions/204760/r-how-to-fix-nbclust-error-with-error-message-the-tss-matrix-is-indefinite?newreg=6dbb3e394e5f40cf8b1e50a16f88ee84
@matinakand8874
@matinakand8874 2 жыл бұрын
can i have the code for vertical viewing of this dendrogram
@Guruprasad_A
@Guruprasad_A 2 жыл бұрын
www.sthda.com/english/wiki/beautiful-dendrogram-visualizations-in-r-5-must-known-methods-unsupervised-machine-learning
@deeptitiwari7097
@deeptitiwari7097 2 жыл бұрын
When I went to make dendrogram by watching your video, it is saying that figure margins are too large and I m not getting anything in plots.
@Guruprasad_A
@Guruprasad_A 2 жыл бұрын
Try to export with optimum resolution
@Guruprasad_A
@Guruprasad_A 2 жыл бұрын
Or do it in any other computer and see.
@Guruprasad_A
@Guruprasad_A 2 жыл бұрын
stackoverflow.com/questions/23050928/error-in-plot-new-figure-margins-too-large-scatter-plot
@amalubiju8255
@amalubiju8255 3 жыл бұрын
Could you share the data set pls
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
It's my research data, I will share the link once after it's published in Krishikosh by our university. I hope you understand.
@shivangitare7102
@shivangitare7102 Жыл бұрын
in this result where is the genotypes grouping on the basis of clusters
@muhiuddinfaruqueeirribd8336
@muhiuddinfaruqueeirribd8336 6 ай бұрын
When I run NbClust(data=rice.s, diss= NULL, distance= "euclidean", min.nc = 2, max.nc = 15, method = "complete", index= "all", alphaBeale = 0.1), then I got the following error: Error: division by zero!Error in solve.default(W) : Lapack routine dgesv: system is exactly singular: U[6,6] = 0 How can I solve this? Thank you.
@Guruprasad_A
@Guruprasad_A 6 ай бұрын
Change the index.
@samrathbaghel9026
@samrathbaghel9026 2 жыл бұрын
Error in t(jeu) %*% jeu : requires numeric/complex matrix/vector arguments Getting this error while computing the optimum number of clusters using NbClust ...Please help
@Guruprasad_A
@Guruprasad_A 2 жыл бұрын
Does your dataset contain any non numeric variable.
@samrathbaghel9026
@samrathbaghel9026 2 жыл бұрын
@@Guruprasad_A: no it does not. I am using the adjusted mean data of the augmented RCBD design. I did that analysis using by seeing your video only "augmented RCBD in R".
@Guruprasad_A
@Guruprasad_A 2 жыл бұрын
While importing data check whether all variables in double.
@samrathbaghel9026
@samrathbaghel9026 2 жыл бұрын
@@Guruprasad_A : Got it fixed, thanks alot for the wonderful video,please share how to extract the analysis report in word format, as you did in previous video.
@Guruprasad_A
@Guruprasad_A 2 жыл бұрын
It's not possible in this package.
@anoopnehra7298
@anoopnehra7298 3 жыл бұрын
hello sir , I'm getting error after running this command: NbClust(data = clust.s, diss = NULL, distance = "euclidean", min.nc = 2, max.nc =15,method = "kmeans",index = "all",alphaBeale = 0.1) error is: Error in NbClust(data = clust.s, diss = NULL, distance = "euclidean", : The TSS matrix is indefinite. There must be too many missing values. The index cannot be calculated. please gives your valuable suggestions regarding this
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
stackoverflow.com/questions/46067602/the-tss-matrix-is-indefinite-there-must-be-too-many-missing-values-the-index
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
stats.stackexchange.com/questions/204760/r-how-to-fix-nbclust-error-with-error-message-the-tss-matrix-is-indefinite?newreg=6dbb3e394e5f40cf8b1e50a16f88ee84
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
Consider silhouette method
@samrathbaghel9026
@samrathbaghel9026 Жыл бұрын
Error in hclust(d, "ward.D") : Invalid clustering method , getting this error
@Guruprasad_A
@Guruprasad_A Жыл бұрын
try using hclust(dist(data, "ward.D")
@charupriyachauhan8654
@charupriyachauhan8654 3 жыл бұрын
An error is comming while loading package factoextra : package or namespace load failed for 'ggplot2' in loadnamespace (i, c(lib.loc, .libPaths()), versioncheck = vI[[i]] : namespace 'ellipsis' 0.3 .1 is already loaded , but >= 0.3.2 is required. Please provide solution for this
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
Have you already installed ggplot2. If no or already installed, also try installing once again with this command Install.packages("ggplot2")
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
After loading ggplot2 Then load factoextra
@charupriyachauhan8654
@charupriyachauhan8654 3 жыл бұрын
@@Guruprasad_A thanks for guiding....an update was needed
@anilkhar
@anilkhar 3 жыл бұрын
When I am running the NbClust it gives me error Error in solve.default(W) : system is computationally singular: reciprocal condition number = 8.06347e-18
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
stackoverflow.com/questions/56160674/how-do-i-fix-nbclust-error-solve-defaultw-in-mtcars-dataset
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
It's because of your data, just ignore this method and if you are looking for the optimum number of cluster for k-means use silhouette method.
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
www.biostars.org/p/407232/
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
If possible try taking out too much correlated data, if you have replication use Tocher method/D2 statistics
@anilkhar
@anilkhar 3 жыл бұрын
@@Guruprasad_A Yes silhouette method is giving 2 clusters
@ikrambashir8604
@ikrambashir8604 3 жыл бұрын
> NbClust(data = pea.s, diss =NULL, distance = "euclidean", min.nc = 2, max.nc = 15, + method = "kmeans" , index = "all", alphaBeale = 0.1) Error in NbClust(data = pea.s, diss = NULL, distance = "euclidean", min.nc = 2, : The TSS matrix is indefinite. There must be too many missing values. The index cannot be calculated. can you tell me how to overcome this problem???
@Guruprasad_A
@Guruprasad_A 3 жыл бұрын
You can use the results from other methods like silhouette.
@harshinikasturi2983
@harshinikasturi2983 Жыл бұрын
Error in solve.default(W) : system is computationally singular: reciprocal condition number = 6.36052e-19 In addition: Warning message: In log(det(P)/det(W)) : NaNs produced Sir please help with this error.
@Guruprasad_A
@Guruprasad_A Жыл бұрын
It's because of too much correlations in your data
@sreevandana520
@sreevandana520 7 ай бұрын
Then how to solve this problem sir​@@Guruprasad_A
@drchinmoymishra
@drchinmoymishra 2 жыл бұрын
Please share the data file "pea"
@Guruprasad_A
@Guruprasad_A 2 жыл бұрын
It's my research data sir, I have to wait until it get published in Krishikosh
@tejapegada1781
@tejapegada1781 4 ай бұрын
I have problem with finding clusters!
@Guruprasad_A
@Guruprasad_A 3 ай бұрын
What problem?
@gpb100percent_bkpraveen
@gpb100percent_bkpraveen 2 жыл бұрын
library(cluster) library(class) library(clv) data(faba.s) # compute intercluster distances and intracluster diameters #kmeans kid
Applied K-Means Clustering in R
16:54
Spencer Pao
Рет қаралды 56 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 9 МЛН
SIZE DOESN’T MATTER @benjaminjiujitsu
00:46
Natan por Aí
Рет қаралды 8 МЛН
Thank you Santa
00:13
Nadir Show
Рет қаралды 54 МЛН
Hierarchical Cluster Analysis [Simply explained]
8:22
DATAtab
Рет қаралды 82 М.
PCA and Cluster analysis using R
17:15
Tesfahun Alemu Setotaw
Рет қаралды 1,3 М.
Путин ответил на угрозы Трампа
7:21
Diplomatrutube
Рет қаралды 1,4 МЛН
G x E interaction, adaptability and stability analysis  in R
56:19
Reach & Teach Science in Africa
Рет қаралды 5 М.
Data visualization with R in 36 minutes
36:16
Equitable Equations
Рет қаралды 38 М.
Hierarchical Clustering in R
18:58
Spencer Pao
Рет қаралды 17 М.