Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How can I fix it? cutcooks = 4 / (nrow(master ) - k - Data 62 badcooks = cooks > cutcooks 63 master 160 obs.

image text in transcribed

How can I fix it?

image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

General Topology

Authors: Stephen Willard

1st Edition

0486131785, 9780486131788

More Books

Students also viewed these Mathematics questions

Question

Give two reasons why waiting lines and delays occur. hut65

Answered: 1 week ago

Question

Explain the role of benchmarking in evaluating managers. lop5

Answered: 1 week ago