Question: 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 )

How can I fix it?

- k - Data 62 badcooks = cooks > cutcooks 63 master

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!