Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

basic way to answer this question in R please. data set is not able to be provided. any help appreciated. thanks need more explaning 2.

basic way to answer this question in R please. data set is not able to be provided. any help appreciated. thanks
image text in transcribed
need more explaning
2. (40 points) Work on the following items step by step. a. (35 pts) Write a function (name it outlier_remover) that will first detect the values beyond +2 standard deviation of the mean for each numeric variable in a .csv data file, and then delete the rows including these values in each numeric variable. Note that if a variable has a data type other than numeric type, function should not perform any operation for that variable. (Note: Statistically, values beyond #3 standard deviation of the mean would be considered as outliers, but for practice purposes we will use +2 as a benchmark) b. (5 pts) Use promotion.csv file to test your function. After removing the outliers, how many observations do you have in your data set? 2. (40 points) Work on the following items step by step. a. (35 pts) Write a function (name it outlier_remover) that will first detect the values beyond +2 standard deviation of the mean for each numeric variable in a .csv data file, and then delete the rows including these values in each numeric variable. Note that if a variable has a data type other than numeric type, function should not perform any operation for that variable. (Note: Statistically, values beyond #3 standard deviation of the mean would be considered as outliers, but for practice purposes we will use +2 as a benchmark) b. (5 pts) Use promotion.csv file to test your function. After removing the outliers, how many observations do you have in your data set

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_2

Step: 3

blur-text-image_3

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

Intermediate Accounting principles and analysis

Authors: Terry d. Warfield, jerry j. weygandt, Donald e. kieso

2nd Edition

471737933, 978-0471737933

More Books

Students also viewed these Accounting questions