Question: Consider the following data. G X G X G X 1 12 1 8 1 22 3 42 3 8 3 12 3 9 3
Consider the following data.
G X G X G X 1 12 1 8 1 22 3 42 3 8 3 12 3 9 3 21 2 19 2 24 2 53 2 17 2 10 2 9 2 28 2 21 1 19 1 21 1 56 1 18 1 16 1 29 1 20 3 32 3 10 3 12 3 39 3 28 3 35 2 10 2 12 Store this data in an R variable having matrix mode with two columns corresponding to the two variables shown. (The data are stored in the file CH10ex14.dat, which can be downloaded from the author’s web page as described in Chapter 1.) There are three groups with the column headed by G indicating to which group the value in the next column belongs. For example, the first row indicates that the value 12 belongs to group one and the fourth row indicates that the value 17 belongs to group two. Use the R function fac2list to separate the data into three groups and then store it in list mode. Then compare the three groups with Welch’s test using the R function t1way, then compare the groups 20% trimming, again using the R function t1way and then use the R function pbadepth to compare the groups based on an M-estimator.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
