- Imputation: Fill in the missing values with estimated values. This can be done using various imputation techniques such as mean imputation, median imputation, or regression imputation. However, it's important to note that imputation may introduce some bias into the analysis.
- Deletion: Remove the rows or columns with missing values from the dataset. This approach is suitable when the missing values are relatively few and randomly distributed. However, it may lead to a loss of information if the missing values are not missing at random.
- Distance-based imputation: Instead of imputing the missing values directly, you can calculate the pairwise distances between observations and use these distances to estimate the missing values. This approach can be useful if you have a good understanding of the underlying data structure.
What to do when dataset for linkage/Dendogram functions contains NANs?
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Jan Skerswetat
le 12 Oct 2022
Commenté : Jan Skerswetat
le 31 Août 2023
Hi all,
I am new to the subject of cluster analysis and try to use the linkage and then dendrogram function while feeding it with an array that contains a few NANs. I receive an 3-by-Y array from linkage whereby the third column is filled with NANs only. Dendogram then crushes.
Any advice how to deal with it?
Cheers,
Jan
0 commentaires
Réponse acceptée
Sandeep
le 31 Août 2023
Hi Jan Skerswetat,
When dealing with missing values (NANs) in cluster analysis, there are a few approaches you can consider:
Before applying any of these approaches, it's important to understand the nature and pattern of missing values in your dataset. Additionally, consider the potential impact of missing values on your cluster analysis results and whether imputation or deletion is more appropriate for your specific case.
You can refer to the following page for some commonly used imputation functions:
Hope you find it helpful.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Descriptive Statistics dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!