Answered step by step
Verified Expert Solution
Question
1 Approved Answer
How can I fix it? cutcooks = 4 / (nrow(master ) - k - Data 62 badcooks = cooks > cutcooks 63 master 160 obs.
How can I fix it?
cutcooks = 4 / (nrow(master ) - k - Data 62 badcooks = cooks > cutcooks 63 master 160 obs. of 5 variables table (badcooks) 64 - screen List of 13 a values badcooks badcooks Named logi [1:160] FALSE FALSE TRUE FALSE TRUE FALSE . . . FALSE TRUE badlev Named logi [1:160] FALSE FALSE FALSE FALSE FALSE FALSE . . . 151 badmahal logical (empty) cooks Named num [1:160] 0. 01225 0. 00117 0. 0503 0. 00243 0. 03526 . .. 65 cut cooks 0. 0261437908496732 99 C. Mahalanobis : 67 what is your Mahalanobis df? cut lev 0. 0875 i . 68 ii. what is your Mahalanobis cut off score? cutmahal 13. 2767041359876 69 ifi. How many outliers did you have for Mahalanobis? K 6 70 leverage Named num [1:160] 0. 0257 0. 0414 0. 0324 0. 032 0. 0304 . . . 71 - "{r mahal} 72 mahal = mahalanobis (master [, -5], colMeans (master [, -5]), cov(master [, -5])) mahal numeric (empty) 73 cutmahal = qchisq(1-0.01, ncol (master [, -5])) 74 badmahal = mahal > cutmahal Files Plots Packages Help Viewer Presentation 75 table (badmahal) 1Zoom Export . 76 - Error in colmeans (master [, -5]) : 'x' must be numeric Show Traceback 77 78 d. overall : 79 1. How many total outliers did you have across all variables? 80 11. Delete them! 12:69 C Chunk 5: mahal R Markdown #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