#### Code in R ###
mental.csv
| Pre.test | Post.test | Treat |
| 72 | 74 | Control |
| 58 | 57 | Control |
| 66 | 74 | Control |
| 51 | 56 | Control |
| 30 | 28 | Control |
| 48 | 40 | Control |
| 58 | 61 | Control |
| 51 | 50 | Control |
| 38 | 40 | Control |
| 56 | 56 | Control |
| 68 | 72 | Control |
| 36 | 38 | Control |
| 53 | 53 | Control |
| 65 | 72 | Control |
| 32 | 24 | Control |
| 64 | 62 | Control |
| 58 | 55 | 025-050R |
| 58 | 57 | 025-050R |
| 56 | 57 | 025-050R |
| 73 | 59 | 025-050R |
| 49 | 42 | 025-050R |
| 53 | 49 | 025-050R |
| 28 | 29 | 025-050R |
| 31 | 43 | 025-050R |
| 23 | 29 | 025-050R |
| 61 | 62 | 025-050R |
| 40 | 37 | 025-050R |
| 57 | 59 | 025-050R |
| 38 | 48 | 025-050R |
| 77 | 79 | 025-050R |
| 69 | 64 | 025-050R |
| 72 | 67 | 025-050R |
| 50 | 46 | 025-050R |
| 49 | 49 | 025-050R |
| 51 | 46 | 025-050R |
| 23 | 16 | 075-125R |
| 60 | 51 | 075-125R |
| 54 | 43 | 075-125R |
| 48 | 40 | 075-125R |
| 45 | 35 | 075-125R |
| 37 | 31 | 075-125R |
| 50 | 48 | 075-125R |
| 44 | 31 | 075-125R |
| 39 | 31 | 075-125R |
| 57 | 46 | 075-125R |
| 26 | 14 | 075-125R |
| 50 | 54 | 075-125R |
| 47 | 41 | 075-125R |
| 43 | 30 | 075-125R |
| 41 | 30 | 075-125R |
| 45 | 44 | 075-125R |
| 68 | 69 | 075-125R |
| 62 | 35 | 075-125R |
| 64 | 51 | 125-250R |
| 42 | 26 | 125-250R |
| 52 | 35 | 125-250R |
| 47 | 27 | 125-250R |
| 53 | 40 | 125-250R |
| 65 | 50 | 125-250R |
| 67 | 46 | 125-250R |
| 32 | 25 | 125-250R |
| 77 | 58 | 125-250R |
| 32 | 24 | 125-250R |
| 58 | 45 | 125-250R |
| 46 | 32 | 125-250R |
| 45 | 30 | 125-250R |
| 74 | 68 | 125-250R |
| 41 | 17 | 125-250R |
| 46 | 29 | 125-250R |
| 39 | 20 | 125-250R |
| 61 | 38 | 125-250R |
| 50 | 33 | 125-250R |
| 29 | 12 | 125-250R |
| 72 | 54 | 125-250R |
| 38 | 23 | 125-250R |
Analysis:
Ho: the mean values of decrease_dex in four treatment groups are
the same
h1: at least one of the mean values of decrease_dex in four
treatment groups are different
With F(3, 71) = 36.61, P<5%, I reject ho and conclude that at
least one of the mean values of decrease_dex in four treatment
groups are different.
from post hoc analysis, with p<5%, i reject ho and conclude that the mean values of decrease_dex differs significantly between (075-125R-025-050R), (125-250R-025-050R), (125-250R-075-125R), (Control-075-125R ), and (Control-125-250R).
Code:
library(readxl)
data1<-read_excel(path="C:/Users/HP/Desktop/Book2.xlsx")
summary(data1)
data1$decrease_sex <- c(data1$Pre.test-data1$Post.test)
results = aov(decrease_sex~ Treat, data=data1)
summary(results)
tukey.test <- TukeyHSD(results)
tukey.test
Output:

#### Code in R ### mental.csv Pre.test Post.test Treat 72 74 Control 58 57 Control 66...
estimate the average age at which multiple sclerosis patients were diagnosed with the condition for the first time in a given city. How big should the sample be? Define your procedures for this estimate (if necessary, set your own values of unknown parameters, based on statistical theory). In Table 1 you will find all ages of this patient population. 54 58 56 48 62 59 55 56 60 52 53 61 56 56 53 37 71 62 39 61 54...
Problem #1: Consider the below matrix A, which you can copy and paste directly into Matlab. The matrix contains 3 columns. The first column consists of Test #1 marks, the second column is Test # 2 marks, and the third column is final exam marks for a large linear algebra course. Each row represents a particular student.A = [36 45 75 81 59 73 77 73 73 65 72 78 65 55 83 73 57 78 84 31 60 83...
NUMBER OF PEOPLE 10.2 10.0 10.1 8.5 10.2 8.2 8 Source: United States Census. 11. In the Sanitary District of Chicago, operating engineers are hired on of a competitive civil-service examination. In 1966, there were 223 appl for 15 jobs. The exam was held on March 12; the test scores are s arranged in increasing order. The height of each bar in the histogram next page) shows the number of people with the correspondin examiners were charged with rigging the...
Presidents Ages (44 of them): 57 61 57 57 58 57 61 54 68 51 49 64 50 48 65 52 56 46 54 49 51 47 55 55 54 42 51 56 55 51 54 51 60 62 43 55 56 61 52 69 64 46 54 47 Please answer Question D the last one: Quartile Q1: 51 Quartile Q2: 54.5 Quartile Q3: 57.5 IQR= 6.5 Lower fence = 41.25 Upper fence = 67.25 d. Use the fences from...
Problem 4: Variables that may affect Grades The data set contains a random sample of STAT 250 Final Exam Scores out of 80 points. For each individual sampled, the time (in hours per week) that the student spent participating in a GMU club or sport and working for pay outside of GMU was recorded. Values of 0 indicate the students either does not participate in a club or sport or does not work a job for pay. The goal of...
48 57 Amy Bakery has four shops in different area in a city. Monthly sales (in thousands of dollars) from a random of 24 months from each of the 4 shops given in Table 1. Table 1: Monthly sales (in thousands of dollars) North East South West 77 75 97 60 45 42 60 54 56 49 68 47 44 39 58 57 63 61 69 51 75 63 79 50 90 81 99 73 32 47 46 41 41...
Problem 1: Confidence Interval for Percentage of B’s. The data set “STAT 250 Final Exam Scores” contains a random sample of 269 STAT 250 students’ final exam scores (maximum of 80) collected over the past two years. Answer the following questions using this data set. a) What proportion of students in our sample earned B’s on the final exam? A letter grade of B is obtained with a score of between 64 and 71 inclusive. Hint: You can do this...
West Battery Corp. has recently been receiving complaints from retailers that its 9-volt batteries are not lasting as long as other name brands. James West, head of the TOM program at West's Austin plant, believes there is no problem because his batteries have had an average life of 60 hours, about 10% longer than competitors' models. To raise the time above this level would require a new level of technology not available to West. Nevertheless, he is concerned enough to...
Determine the number of carbons on the molecule using the mas
spectra
43 100 90 80 70 60 50 40 30 39 20 10 74 27 m/z Values and Intensities: 161 38 351 39 21기 40 401 41 6781 42 5781 43 9861 44 45 311 46 Trl 50 101 51 이 52 리 53 1기 54 쾨 55 811 56 691 57 601 58 61 59 411 60 T 71 T1 72 Trl 73 74 16275 253 17 54...
89
67
84
74
58
51
63
68
84
65
57
76
58
75
72
67
64
74
95
53
77
86
90
80
70
67
76
62
91
70
63
78
49
61
77
57
83
67
107
67
80
73
94
80
73
74
67
72
68
79
73
121
63
77
70
61
75
66
79
54
76
86
84
72
65
75
63
91
72
64
99
81
58
70
58
58
90
66
64
80...