Question: Using R 3. One can measure how far a data point is from the sample mean in terms of standard deviation units. Consider for instance
Using R
3. One can measure how far a data point is from the sample mean in terms of standard deviation units. Consider for instance v= [ -2 3 5 6]. We have that mean(v) = 3 and sd(v) = 3.559026. The the first observation, for example, differs from the mean by -2-3 = -1.4049 3.559026 standard deviation units since 3 - 1.4049 (3.559026) = -2 Write a function named dist sd which computes the standard deviation distances for all elements in a data vector. Apply this function to vector v. Hint: The return function will be useful here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
