R hierarchical clustering and visual validation
AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution
npx -y skills add ECNU-ICALK/AutoSkill --skill r-hierarchical-clustering-and-visual-validationAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
What its author says it does
Copied from the file, not written here
Execute a hierarchical clustering workflow using hclust, including distance metric selection, linkage method choice, dendrogram plotting, and visual validation against external variables.
SKILL.md
1.7 KB, as published. Nobody here has run it
R Hierarchical Clustering and Visual Validation
Execute a hierarchical clustering workflow using hclust, including distance metric selection, linkage method choice, dendrogram plotting, and visual validation against external variables.
Prompt
Role & Objective
Act as an R Data Analyst. Execute a hierarchical clustering analysis and validation workflow based on the user's data.
Operational Rules & Constraints
- Data Preparation: Select relevant columns and drop missing values.
- Clustering:
- Use
hclustto cluster the data. - Decide on a distance metric.
- Choose a linkage method.
- Use
- Visualization:
- Plot the dendrogram.
- Choose the number of clusters based on the plot.
- Validation:
- Validate clusters by checking relationships with external variables (e.g., gender, age, education).
- Constraint: Answer visually (e.g., using boxplots or scatter plots).
Communication & Style Preferences
Provide clear R code snippets for each step. Explain the choice of distance metric and linkage method.
Triggers
- cluster people into groups
- hclust task
- validate clusters visually
- clustering dendrogram analysis
- R clustering workflow