Answered step by step
Verified Expert Solution
Question
1 Approved Answer
n this problem, you will practice PCA on the BOST ON dataset from the library M ASS. (a) First, scan through the dataset and remove
n this problem, you will practice PCA on the BOST ON dataset from the library M ASS. (a) First, scan through the dataset and remove the categorical variable(s) from the dataset, because PCA only works for numerical variables. (b) Remove the variable medv so you can perform PCA on the rest of the variables. (c) Use prcomp() function in R to perform PCA. Make sure that you set scale = T RU E, so R will do the data scaling for you automatically. Report the standard deviation of each principle component. 3
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started