Question: Using R coding 2 . The data set in nutrients.txt contains nutrients in 2 7 different kinds of food. ( 2 5 Credits ) (
Using R coding The data set in nutrients.txt contains nutrients in different kinds of food. Credits
a Apply Kmeans clustering with clusters and show the cluster assignment of each food please sort by cluster label, not the food name, using the sort function and the withincluster sum of squares of each cluster. Credits
b Apply agglomerative hierarchical clustering based on singlelinkage, complete linkage, and average linkage algorithms. Plot the dendrograms for all three algorithms. Credits
Appendix
More information on the Pima Indians Diabetes Data Set
Number of Instances:
Number of Attributes: plus class
Description of Each Attribute: all numericvalued
Number of times pregnant
Plasma glucose concentration a hours in an oral glucose tolerance test
Diastolic blood pressure mm Hg
Triceps skin fold thickness mm
Hour serum insulin mathrmmumathrmUml
Body mass index weight in mathrmkgheight in mwedge
Diabetes pedigree function
Age years
Class variable or
The diagnostic, binaryvalued variable investigated is whether the patient shows signs of diabetes according to World Health Organization criteria ie if the hour postload plasma glucose was at least mathrmmgmathrmdl at any survey examination or if found during routine medical care The population lives near Phoenix, Arizona, USA.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
