1 ISYE 6501 HOMEWOR K 10 2023 LATEST UPATE GEORGIA INSTITUTE OF TECHNOLOGY 2 # clean env rm(list = ls()) df_breast <- read.csv( "C:/ISYE 6501 homework/breast -cancer-wisconsin.data.txt" , header=FALSE) head(df_breast, 2) Question 14.1 The breast cancer data set breast -cancer -wisconsin.data.txt from http://archive.ics.uci.edu/ml/machine - learning -databases/breast -cancer -wisconsin/ (description at http://archive.ics.uci.edu/ml/datasets/ Breast+Cancer+Wisconsin+%28Original%29 ) has missing values. 1. Use the mean/mode imputat ion method to impute values for the missing data. 2. Use regression to impute values for the missing data. 3. Use regression with perturbation to impute values for the missing data. Answer Steps: 1. load the data and run EDA 2. Find the missing data. Observation: column V7 contains 16 missing values. Based on lecture, need to calculate the percentage of missing value, which is 2.28% (less than 5%) for this dataset. So it is reasonable to impute the missing value. 3. Impute the missi ng value using mean, mode, regression and regression with perturbation.Please refer to the specific code for each process. One thing to mention, since V7 is the categorical data, in the real life, it is ok to impute by choosing mode method. While here mean method is also processed. Data description: 1. Sample code number: id number 2. Clump Thickness: 1 - 10 3. Uniformity of Cell Size: 1 - 10 4. Uniformity of Cell Shape: 1 - 10 5. Marginal Adhesion: 1 - 10 6. Single Epithelial Cell Size: 1 - 10 7. Bare Nuclei: 1 - 10 8. Bland Chromatin: 1 - 10 9. Normal Nucleoli: 1 - 10 10. Mitoses: 1 - 10 11. Class: (2 for benign, 4 for malignant) R code:
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller smartzone. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $8.49. You're not tied to anything after your purchase.