To examine individual differences, we used K-means clustering in an exploratory analysis. We determined subpopulations across the DTI data based on the trajectory and total level of FA across all brain tracts, the corpus callosum, the fornix and the anterior thalamic radiations. For each region, you can see:
1: Cluster determined based on average level and trajectory.
2: Cluster determined based on trajectory.
3: Cluster determined based on average level.
#Elbow Method
Elb <- fviz_nbclust(AdvDTI[,19:20], kmeans, method = "wss") + #within cluster sums of squares
labs(subtitle = "Elbow method_AllTracts")
Elb
#Silhouette Method
Sil <- fviz_nbclust(AdvDTI[,19:20], kmeans, method = "silhouette")+ #average silhouette
labs(subtitle = "Silhouette method_AllTracts")
Sil
#Silhouette Method
SilShape <- fviz_nbclust(AdvDTI[,19], kmeans, method = "silhouette") +
labs(subtitle = "Silhouette method_AllTracts_Shape")
SilShape
#Elbow Method
ElbShape <- fviz_nbclust(AdvDTI[,19], kmeans, method = "wss") + #within cluster sums of squares
labs(subtitle = "Elbow method_AllTracts_Shape")
ElbShape
#Silhouette Method
SilSize <- fviz_nbclust(AdvDTI[,20], kmeans, method = "silhouette") +
labs(subtitle = "Silhouette method_AllTracts_Size")
SilSize
#Elbow Method
ElbSize <- fviz_nbclust(AdvDTI[,20], kmeans, method = "wss") + #within cluster sums of squares
labs(subtitle = "Elbow method_AllTracts_Size")
ElbSize
#Elbow Method
Elb <- fviz_nbclust(AdvDTI[,21:22], kmeans, method = "wss") + #within cluster sums of squares
labs(subtitle = "Elbow method_CC")
Elb
#Silhouette Method
Sil <- fviz_nbclust(AdvDTI[,21:22], kmeans, method = "silhouette")+ #average silhouette
labs(subtitle = "Silhouette method_CC")
Sil
#Elbow Method
ElbShape <- fviz_nbclust(AdvDTI[,21], kmeans, method = "wss") +
labs(subtitle = "Elbow method_CC_Shape")
ElbShape
#Silhouette Method
SilShape <- fviz_nbclust(AdvDTI[,21], kmeans, method = "silhouette") +
labs(subtitle = "Silhouette method_CC_Shape")
SilShape
#Elbow Method
ElbSize <- fviz_nbclust(AdvDTI[,22], kmeans, method = "wss") + #within cluster sums of squares
labs(subtitle = "Elbow method_CC_Size")
ElbSize
#Silhouette Method
SilSize <- fviz_nbclust(AdvDTI[,22], kmeans, method = "silhouette") +
labs(subtitle = "Silhouette method_CC_Size")
SilSize
#Elbow Method
Elb <- fviz_nbclust(AdvDTI[,23:24], kmeans, method = "wss",iter.max = 10000, nstart = 50, algorithm="Lloyd") + #within cluster sums of squares
labs(subtitle = "Elbow method_Fornix")
Elb
#Silhouette Method
Sil <- fviz_nbclust(AdvDTI[,23:24], kmeans, method = "silhouette",iter.max = 10000, nstart = 50, algorithm="Lloyd")+ #average silhouette
labs(subtitle = "Silhouette method_Fornix")
Sil
#Silhouette Method
SilShape <- fviz_nbclust(AdvDTI[,23], kmeans, method = "silhouette", iter.max = 10000, nstart = 50, algorithm="Lloyd") +
labs(subtitle = "Silhouette method_Fornix_Shape")
SilShape
#Elbow Method
ElbShape <- fviz_nbclust(AdvDTI[,23], kmeans, method = "wss", iter.max = 10000, nstart = 50, algorithm="Lloyd") + #within cluster sums of squares
labs(subtitle = "Elbow method_Fornix_Shape")
ElbShape
#Silhouette Method
SilSize <- fviz_nbclust(AdvDTI[,24], kmeans, method = "silhouette", iter.max = 10000, nstart = 50, algorithm="Lloyd") +
labs(subtitle = "Silhouette method_Fornix_Size")
SilSize
#Elbow Method
ElbSize <- fviz_nbclust(AdvDTI[,24], kmeans, method = "wss",iter.max = 10000, nstart = 50, algorithm="Lloyd") + #within cluster sums of squares
labs(subtitle = "Elbow method_Fornix_Size")
ElbSize
#Elbow Method
Elb <- fviz_nbclust(AdvDTI[,25:26], kmeans, method = "wss") + #within cluster sums of squares
labs(subtitle = "Elbow method_ATR")
Elb
#Silhouette Method
Sil <- fviz_nbclust(AdvDTI[,25:26], kmeans, method = "silhouette")+ #average silhouette
labs(subtitle = "Silhouette method_ATR")
Sil
#Silhouette Method
SilShape <- fviz_nbclust(AdvDTI[,25], kmeans, method = "silhouette") +
labs(subtitle = "Silhouette method_ATR_Shape")
SilShape
#Elbow Method
ElbShape <- fviz_nbclust(AdvDTI[,25], kmeans, method = "wss") + #within cluster sums of squares
labs(subtitle = "Elbow method_ATR_Shape")
ElbShape
#Silhouette Method
SilSize <- fviz_nbclust(AdvDTI[,26], kmeans, method = "silhouette") +
labs(subtitle = "Silhouette method_ATR_Size")
SilSize
#Elbow Method
ElbSize <- fviz_nbclust(AdvDTI[,26], kmeans, method = "wss") + #within cluster sums of squares
labs(subtitle = "Elbow method_ATR_Size")
ElbSize
Ayla Pollmann - 2023