Use the data set below Provide the R codes in the R-script file and the statistical outputs in the Word file. In general, your statistical
Use the data set below Provide the R codes in the R-script file and the statistical outputs in the Word file. In general, your statistical outputs should be titled and labeled so that they can stand on their own (and can be understood by anyone who looks at them for the first time).
Conduct a one-sample t-tests for mean using an appropriate variable from the data set. Use the t.test( ) in R. Provide the null and the alternative hypothesis for each test. Provide the test results and several sentences interpreting the results.
Conduct hypothesis testing for p-value using an appropriate variable from the data sets. perform this using R. Provide the null and the alternative hypothesis for each test. Provide the test results and several sentences interpreting the results.
Submit a report that examines parts 1 and 2 and your R script.
Also provide references.
DATA
1
LungCap
Age
Height
Smoke
Gender
Caesarean
2
6.475
6
62.1
no
male
no
3
10.125
18
74.7
yes
female
no
4
9.55
16
69.7
no
female
yes
5
11.125
14
71
no
male
no
6
4.8
5
56.9
no
male
no
7
6.225
11
58.7
no
female
no
8
4.95
8
63.3
no
male
yes
9
7.325
11
70.4
no
male
no
10
8.875
15
70.5
no
male
no
11
6.8
11
59.2
no
male
no
12
11.5
19
76.4
no
male
yes
13
10.925
17
71.7
no
male
no
14
6.525
12
57.5
no
male
no
15
6
10
61.1
no
female
no
16
7.825
10
61.2
no
male
no
17
9.525
13
63.5
no
male
yes
18
7.875
15
59.2
no
male
no
19
5.05
8
56.1
no
male
no
20
7.025
11
61.2
yes
female
no
21
9.525
14
70.6
no
female
no
22
3.975
6
57.3
no
male
no
23
5.325
8
59.7
no
female
no
24
10.025
16
72.4
no
male
no
25
8.725
11
68
no
male
yes
26
9.375
11
65.7
no
female
no
27
8.35
12
61.3
no
male
yes
28
6.75
12
60.7
no
female
no
29
9.025
9
65.6
no
male
no
30
1.125
4
48.7
no
female
no
31
10.475
18
72
yes
female
no
32
4.65
4
53.7
no
female
no
33
7.725
13
64.7
no
male
no
34
10.6
13
69.3
no
male
no
35
11.025
13
65.6
no
male
yes
36
8.65
12
67.8
no
male
no
37
8.825
10
65.5
no
male
no
38
4.2
6
52.7
no
male
no
39
8.775
9
63.6
no
male
no
40
6.325
11
64.6
no
female
no
41
11.325
17
77.7
no
male
no
42
8.225
14
65.4
no
female
no
43
10.725
17
72.5
no
female
yes
44
5.875
8
58.9
no
female
no
45
7.275
12
67.7
no
male
no
46
1.575
6
49.3
no
male
no
47
6.7
11
62.6
no
female
no
48
7.65
11
61.7
no
male
yes
49
8
12
64.7
no
female
no
50
12.95
17
74.9
no
male
no
51
7.35
7
61.6
no
male
no
52
9.625
15
66.4
no
male
no
53
12.425
15
74.1
no
male
no
54
7.4
11
65.3
no
male
no
55
4.875
10
61.4
no
male
no
56
12.225
18
79.6
no
male
no
57
4.25
6
52.9
no
male
no
58
8.2
13
65.6
no
male
no
59
11.4
19
79.1
no
male
no
60
4.625
9
56.8
no
female
no
61
7.825
12
65.4
no
male
yes
62
6.7
12
57.9
no
female
no
63
9.2
14
68.2
no
male
no
64
6.95
9
61.4
no
female
no
65
6.85
13
58.7
no
female
no
66
8.45
13
65.1
no
male
no
67
7.35
13
67.5
yes
female
no
68
5.375
11
59.3
yes
female
no
69
7.375
11
63
no
female
no
70
8.6
11
64.4
no
female
no
71
7.9
12
68
no
male
no
72
8.5
14
61.4
no
female
yes
73
9.7
11
72.4
no
male
no
74
5.125
11
51.5
no
female
yes
75
7.825
13
71
no
female
no
76
6.25
13
61.8
no
female
no
77
4.975
12
62.6
yes
female
yes
78
7.5
14
66.6
no
male
no
79
5.875
9
59
no
female
no
80
10.05
17
70.4
no
female
no
81
10.8
11
69.8
no
male
no
82
7.35
12
63
no
female
no
83
11.9
16
69.3
no
male
no
84
12.05
17
72.2
no
male
no
85
11.575
19
78.2
no
female
no
86
6.2
14
61.1
no
female
no
87
6.125
12
63.3
no
female
yes
88
13.875
19
78.4
no
male
yes
89
7.75
11
63.5
no
female
no
90
7.475
15
63
yes
female
no
91
11.575
19
75.5
no
male
no
92
6.95
9
63.9
no
male
yes
93
9.2
14
69.4
no
male
no
94
9.75
13
72.8
yes
male
no
95
9.65
14
65.2
no
female
no
96
11.75
19
78
yes
female
yes
97
10.825
18
75.7
no
female
no
98
7.55
16
71.1
yes
male
no
99
6.95
7
64.7
no
male
no
100
10.675
16
74.9
no
male
no
101
6.1
10
57
no
male
no
102
8.025
13
66.2
yes
male
no
103
9.225
14
66.9
no
male
no
104
3.45
13
58.5
no
female
yes
105
10.725
16
75.6
no
female
no
106
7.95
16
67.3
no
female
no
107
3.425
5
51.7
no
female
no
108
10.875
16
75.5
no
male
no
109
8.625
12
64.8
no
male
no
110
6.45
7
63.2
no
male
no
85
11.575
19
78.2
no
female
no
86
6.2
14
61.1
no
female
no
87
6.125
12
63.3
no
female
yes
88
13.875
19
78.4
no
male
yes
89
7.75
11
63.5
no
female
no
90
7.475
15
63
yes
female
no
91
11.575
19
75.5
no
male
no
92
6.95
9
63.9
no
male
yes
93
9.2
14
69.4
no
male
no
94
9.75
13
72.8
yes
male
no
95
9.65
14
65.2
no
female
no
96
11.75
19
78
yes
female
yes
97
10.825
18
75.7
no
female
no
98
7.55
16
71.1
yes
male
no
99
6.95
7
64.7
no
male
no
100
10.675
16
74.9
no
male
no
101
6.1
10
57
no
male
no
102
8.025
13
66.2
yes
male
no
103
9.225
14
66.9
no
male
no
104
3.45
13
58.5
no
female
yes
105
10.725
16
75.6
no
female
no
106
7.95
16
67.3
no
female
no
107
3.425
5
51.7
no
female
no
108
10.875
16
75.5
no
male
no
109
8.625
12
64.8
no
male
no
110
6.45
7
63.2
no
male
no
111
3.1
7
52.1
no
male
no
112
10.425
15
70.6
no
male
no
113
12.15
18
76.3
no
female
no
114
1.85
8
49.8
no
female
no
115
5.875
3
55.9
no
male
no
116
9.125
15
73.4
no
male
no
117
8.975
15
67.5
no
female
yes
118
3.75
7
50.3
no
female
no
119
10.275
18
71
no
male
no
120
6.675
8
54.9
no
female
no
121
11.775
17
76.9
yes
male
no
122
8.55
16
67.9
no
male
no
123
6.45
12
61
yes
male
yes
124
13.2
17
78.6
no
male
yes
125
11.55
16
75.7
no
male
no
126
12.95
19
79.6
no
male
yes
127
7.825
12
67.5
no
female
yes
128
10.55
17
71.8
no
male
yes
129
11.7
19
76.2
no
female
yes
130
3.65
12
56.6
no
male
yes
131
6.65
12
60
yes
female
yes
132
10.425
15
67.2
no
male
no
133
12.925
17
75.7
no
female
no
134
7.45
13
61.1
no
male
no
135
8.6
12
60.1
no
female
no
136
10.65
16
74.4
no
male
no
137
4.725
13
65.5
no
female
no
138
7.55
15
69.3
no
female
no
139
10.175
15
71.4
no
female
no
140
6.45
14
61.4
no
male
no
141
9.475
13
67.4
no
male
no
142
4.975
6
58.4
no
male
no
143
9.9
18
70.9
no
female
no
144
10.2
18
68.6
no
female
no
145
12.4
18
81.8
no
male
no
146
6.85
9
65.7
no
female
yes
147
11.825
17
73.9
no
female
no
148
8.625
14
66.8
no
female
yes
149
11.35
14
70.5
no
male
no
150
8.225
14
64
no
female
no
151
0.507
3
51.6
no
female
yes
152
5.075
11
61.2
no
male
no
153
6.45
8
62.7
no
male
no
154
6.725
9
56.1
no
male
no
155
4.525
8
55.5
no
female
no
156
9.275
16
67.2
no
female
no
157
2.85
7
51.4
no
female
no
158
9.35
11
71.2
yes
male
no
159
5.55
5
55.8
no
female
yes
160
10.35
16
73.5
no
male
yes
161
6.625
11
62.4
no
male
yes
162
9.725
16
68.6
no
female
yes
163
4.9
10
56.8
no
female
no
164
10.475
12
69.7
no
male
no
165
10.85
19
70.9
no
male
no
166
5.15
7
58.4
no
female
no
167
4.425
8
56.6
no
male
no
168
7.55
13
66.1
no
male
no
169
8.35
17
66.2
no
male
no
170
6.05
9
62.1
no
male
no
171
4.325
8
54.8
no
female
yes
172
8.85
15
68.9
no
male
no
173
4.325
6
56.6
no
male
no
174
8.775
14
67.7
no
female
no
175
6.45
10
66.5
yes
female
no
176
9.175
17
72.5
no
female
no
177
9.45
15
65.1
yes
male
no
178
6.7
10
65.4
no
male
no
179
10.95
16
74.3
no
female
no
180
9.85
17
72.4
yes
female
yes
181
9.825
17
65.5
no
female
yes
182
8.5
13
62.9
no
male
no
183
11.875
17
78.9
no
male
yes
184
10.475
15
72.3
no
female
no
185
9.925
16
75.4
no
male
no
186
8.5
18
68.2
no
female
no
187
7.2
10
64.3
no
male
yes
188
8.375
16
67.3
no
female
no
189
5.5
8
58.5
no
male
no
190
7.925
14
65.3
no
female
yes
191
2.875
4
55.4
no
male
no
192
10.35
17
71.8
no
male
no
193
9.325
15
67.6
no
female
no
194
7.45
10
61.5
no
female
no
195
8.625
13
60.6
no
female
no
196
11.225
16
72.8
no
male
no
197
12.125
17
73.3
no
male
yes
198
13.025
19
75.5
no
male
no
199
7.85
11
66
no
male
yes
200
2.55
8
49.9
no
female
no
201
7.575
12
66.4
no
female
no
202
9.55
13
68.6
no
male
no
203
12.225
16
76.2
no
female
no
204
11.625
15
74
no
male
no
205
10
18
73.5
no
female
no
206
3.9
8
55.5
no
female
no
207
5.85
5
55.1
no
male
no
208
5.025
10
60.1
no
female
no
209
5.95
8
58.6
no
female
no
210
9.475
13
66.1
no
male
no
211
6.4
7
60.4
no
male
no
212
8.225
11
63.6
no
male
no
213
10.775
15
75.2
no
male
no
214
6.15
10
62
no
male
no
215
9.4
15
66.4
no
female
no
216
7.25
8
59.9
no
male
no
217
5.85
7
58.8
no
male
no
218
4.125
10
55.5
no
female
yes
219
10.925
18
77.6
no
male
no
220
7.35
15
61.9
yes
female
yes
221
10.475
19
76
no
male
no
222
6.575
14
59.7
yes
female
yes
223
1.175
3
51.9
no
male
no
224
2.95
6
47.8
no
male
yes
225
9
12
62
no
female
no
226
8.1
14
61.6
no
female
no
227
7.275
8
64.7
no
male
yes
228
11.075
15
69.9
no
male
no
229
3.1
5
47.4
no
female
no
230
4.7
3
52.7
no
male
no
231
5.85
11
60.5
no
female
no
232
7.925
11
65.1
no
male
no
233
7.3
13
61.5
no
female
no
234
9.275
18
67.6
no
female
no
235
11.125
19
71.5
no
male
no
236
8.625
15
68.4
no
female
yes
237
9.825
18
70.8
no
male
no
238
5.725
8
58.3
no
female
yes
239
7.925
11
67.1
yes
male
no
240
9.475
17
64.8
yes
female
no
241
10.9
14
71.3
no
female
yes
242
9.675
12
70.9
no
male
no
243
9.95
14
71.6
no
female
no
244
6.575
8
59.8
no
female
no
245
8.6
12
61.6
no
male
yes
246
9.5
11
63.4
no
male
no
247
3.825
6
55.1
no
female
no
248
8
9
66.4
no
male
no
249
7.475
11
60.7
no
male
yes
250
10.7
18
74.2
yes
male
no
251
10.125
18
71
no
female
no
252
11.225
19
74.8
no
female
no
253
7.275
9
63.7
no
male
no
254
12.5
18
80.3
no
male
no
255
7.625
9
60
no
female
no
256
5.3
7
57.3
no
male
yes
257
5.6
8
58.5
no
female
no
258
11.05
18
72.6
yes
female
no
259
8.025
11
65.5
no
male
yes
260
9.95
12
68.2
no
female
no
261
7.4
11
63.3
yes
female
no
262
8.85
14
65.1
no
female
no
263
11.875
14
71.2
no
male
no
264
4.85
5
53.5
no
male
no
265
5.175
12
56.6
no
female
yes
266
10.175
19
69.2
no
male
yes
267
5.225
9
53.7
no
female
no
268
8.975
17
70.9
no
male
yes
269
7.35
10
61
no
female
no
270
7.975
9
61.9
no
male
no
271
8.775
9
59.2
no
female
no
272
6.1
10
57.4
no
female
no
273
8.8
14
70.5
no
female
no
274
8.7
14
73.1
no
male
yes
275
6.975
12
58.8
no
male
no
276
9.375
17
69.7
no
male
no
277
7.4
10
59.7
no
male
yes
278
8.8
12
65.9
no
female
no
279
6.7
13
66
no
male
yes
280
7.25
11
64.1
no
male
no
281
9.725
12
71.4
no
male
no
282
8.5
17
72.5
yes
male
no
283
10.975
14
71.2
no
male
no
284
9.7
15
64.8
no
female
no
285
4.775
8
55.7
no
female
no
286
10.325
13
69.3
no
male
no
287
6.2
11
66.9
no
female
yes
288
8
10
63.4
no
male
no
289
3.025
6
47.4
no
female
no
290
6.125
10
64.7
no
male
no
291
9.55
18
70.8
yes
female
no
292
7.05
6
56.7
no
male
no
293
10.45
18
72.9
yes
male
yes
294
5.475
3
52.9
no
male
no
295
11.4
15
74.6
no
male
no
296
7.15
13
63.4
no
female
no
297
12.2
19
72.2
no
female
no
298
6.725
11
59.4
no
female
no
299
8.725
13
66.6
no
female
yes
300
2.625
5
49
no
male
no
301
7.4
8
62.1
no
male
no
302
8.2
18
69
yes
female
yes
303
6.85
13
63.3
no
male
yes
304
6.55
10
59.7
no
male
no
305
10.525
18
71.9
no
female
no
306
6.625
12
59.8
no
female
no
307
6.55
9
58.7
no
female
no
308
8.475
15
69.3
yes
male
no
309
10.925
14
69.4
no
female
no
310
6.075
8
58.4
no
female
no
311
8.35
19
68.2
no
female
no
312
2.475
7
55.6
no
female
no
313
9.675
13
71.2
no
male
no
314
8.775
14
67.5
no
female
no
315
13.1
19
76.6
no
male
no
316
6.5
9
59.2
no
male
no
317
7.3
12
67.5
no
male
no
318
3.9
10
58
yes
female
no
319
1.025
3
47
no
female
no
320
6.775
13
63.9
no
male
no
321
10.975
16
79.3
no
male
yes
322
7.625
13
68
no
male
no
323
7.225
10
59.1
no
male
no
324
8.9
15
64.9
no
female
no
325
9.15
11
62.1
no
male
no
326
5.2
11
60.9
no
female
no
327
11.075
19
70.4
no
female
no
328
8.325
15
69
no
male
no
329
3.625
11
53.8
no
male
no
330
9.625
19
73.9
no
female
no
331
4.5
8
60
no
female
no
332
4.15
7
53.3
no
female
yes
333
6
10
59.4
no
female
no
334
10.05
13
67.4
no
male
no
335
10.75
14
70.4
no
male
no
336
7.375
14
69.1
no
female
yes
337
5.25
9
55.5
no
male
yes
338
8.875
11
66.9
no
male
yes
339
10.9
13
71.5
no
male
yes
340
9.8
15
73.5
no
male
yes
341
10.25
18
72.5
no
female
no
342
7.425
15
62.6
no
female
no
343
6.325
13
59.9
yes
male
yes
344
5.55
9
58.7
no
male
no
345
1.625
8
46.6
no
female
no
346
5.05
7
54.3
no
male
no
347
10.1
17
74.2
no
female
no
348
4.725
11
59.2
no
female
yes
349
5.025
12
55
no
female
no
350
3.425
9
51
no
male
no
351
8.475
14
62.2
no
female
yes
352
5.65
8
53.7
no
female
yes
353
11.675
16
72.7
no
male
no
354
10.6
17
74.4
no
male
no
355
4.725
9
59.3
no
female
no
356
7.575
12
61.5
no
female
no
357
7.75
19
69.2
no
female
yes
358
11.7
17
71.8
no
male
no
359
8.325
15
63.3
no
male
no
360
6.65
12
58.9
yes
female
yes
361
3.675
7
56.3
no
male
no
362
3.975
8
56.8
no
female
no
363
10.05
15
70.2
no
male
no
364
10.2
18
73.5
yes
female
yes
365
7.275
11
60.1
no
female
no
366
6.05
10
58.3
no
female
no
367
6.225
9
63.5
no
male
no
368
9.3
11
64.4
no
female
no
369
8.975
16
69.1
no
female
yes
370
8.65
16
74.3
yes
female
no
371
11.65
18
73.3
no
male
no
372
11.075
16
68.7
no
female
yes
373
7.7
10
62.1
no
male
no
374
6.925
13
62.4
no
female
yes
375
10.725
16
77.4
no
female
no
376
14.375
18
80.8
no
male
no
377
6.175
9
63.9
no
female
yes
378
7.825
13
62
no
female
no
379
8.625
11
70.2
no
male
yes
380
4.9
5
60.4
no
male
no
381
4.2
6
56.1
no
male
no
382
5.85
12
62.6
no
male
no
383
7.375
9
59.9
no
female
no
384
8.775
15
64.7
yes
female
no
385
8
13
69.4
no
female
no
386
11.075
16
68.8
no
male
no
387
10.6
18
70
no
female
yes
388
5.15
11
59.3
no
male
no
389
6.475
13
66.3
yes
female
no
390
5.375
7
56.6
no
male
no
391
3.4
4
55.6
no
male
no
392
6.525
13
61.4
no
female
no
393
11.325
16
71.2
no
female
no
394
11.65
17
73.9
no
male
no
395
6.725
10
60.2
no
female
no
396
7.775
11
65
no
male
no
397
5.7
7
56.8
no
male
no
398
6.825
11
61.9
no
female
yes
399
10.5
16
70.1
no
female
no
400
8.725
13
69
no
male
yes
401
4.475
8
53.9
no
female
no
402
2
3
51
no
female
no
403
5.325
12
60.7
no
male
no
404
8.425
15
69.1
no
female
yes
405
1.9
8
48.1
no
male
yes
406
3.225
4
52.8
no
female
no
407
8.775
13
68.1
no
female
no
408
2.65
7
52.8
no
female
no
409
12.15
15
74
no
male
no
410
10.1
15
74.5
no
male
no
411
11.5
18
69.9
no
female
no
412
5.65
7
57.4
no
female
no
413
8.675
13
68.8
yes
female
no
414
9.275
18
70.1
no
female
no
415
11
19
75.8
no
female
yes
416
8.125
10
66.8
no
male
no
417
3.175
6
56.2
no
female
no
418
7.45
13
63.6
no
female
no
419
9.1
14
68.4
yes
male
no
420
9.875
15
71.6
yes
male
no
421
2.25
5
57.2
no
female
yes
422
9.025
12
64.9
no
female
no
423
11.225
17
76.8
no
male
no
424
5.95
8
59.4
no
male
no
425
7.8
12
73.3
yes
female
yes
426
8.55
12
68.5
no
male
no
427
5.875
12
61.5
no
male
no
428
5.425
7
61.1
no
female
yes
429
12.275
19
75.9
no
male
yes
430
11.225
17
75.8
yes
male
no
431
9.45
16
68
no
female
no
432
7.025
6
62.9
no
female
no
433
5.5
12
61.8
no
male
no
434
3.9
6
56.3
no
female
no
435
5.05
6
59.3
no
male
no
436
10.45
14
69.9
yes
male
no
437
11.3
15
73.7
no
male
no
438
2.875
7
48.2
no
male
no
439
8.425
14
67.7
no
female
no
440
10.5
16
68.9
no
male
no
441
9.925
11
62.6
no
male
no
442
5.25
9
57.7
no
male
no
443
9.75
19
71.5
no
female
yes
444
9.8
17
71.1
yes
female
no
445
8.3
15
68.2
no
female
no
446
7.7
13
67.7
no
female
no
447
6.15
5
55.1
no
male
no
448
6.3
11
59
no
female
no
449
9.85
11
69.7
no
female
yes
450
4.325
10
57.8
no
female
no
451
7.925
13
63.1
no
female
yes
452
4.35
10
58.5
no
female
no
453
4.425
9
57.1
no
male
yes
454
13.075
15
79.8
no
female
no
455
10.45
13
75.3
no
male
no
456
11.525
17
73.1
no
male
no
457
1.925
5
48
no
male
no
458
6.825
14
62.6
no
female
no
459
6.575
10
63.2
yes
male
yes
460
7.975
13
67
no
male
no
461
7.7
8
63
no
male
yes
462
8.6
17
68.1
no
female
no
463
9.975
13
64.1
no
male
no
464
7.125
10
60.2
no
male
no
465
9.6
10
67.5
no
male
no
466
10.7
16
70.2
no
male
no
467
3.175
5
52
no
male
no
468
9.1
15
67.4
no
male
no
469
10.275
11
72.2
yes
male
no
470
7
12
66.1
no
male
no
471
10.4
19
74
no
male
no
472
7.85
10
65.4
no
male
yes
473
12.625
18
74
no
male
no
474
10.65
13
68.3
no
male
no
475
11.025
15
73.5
yes
male
yes
476
9.05
16
68.1
yes
female
no
477
8.075
17
69.8
yes
female
no
478
9.675
14
67.4
no
male
no
479
6.95
9
63.4
no
male
no
480
8.425
16
70.5
yes
male
no
481
9.525
16
73.6
no
female
yes
482
5.675
16
63.4
no
female
yes
483
10.375
16
72.9
no
female
no
484
8.975
12
66.2
no
male
no
485
9.675
16
68.6
yes
male
no
486
6.3
7
55.6
no
male
no
487
11.6
18
70
no
female
no
488
2.375
4
51.7
no
female
yes
489
10.1
19
68.6
no
female
no
490
6.075
11
65.8
no
female
no
491
6.725
15
63.3
no
male
yes
492
4.25
8
56
no
female
yes
493
12.9
15
75.2
no
male
no
494
2.875
5
47.7
no
female
no
495
5.375
6
53.8
no
male
no
496
14.675
19
76.5
no
male
no
497
9
14
66.6
no
female
no
498
8.35
14
64.2
no
male
yes
499
2.725
7
50.7
no
female
yes
500
8.125
15
65.6
no
female
no
501
7.9
13
64.1
no
male
no
502
6.1
9
56.6
no
male
yes
503
8
13
65.9
no
male
yes
504
10.6
18
71.5
no
female
no
505
2.925
5
54.5
no
female
no
506
8.6
14
75.7
no
male
yes
507
4.475
7
53.2
no
female
no
508
9.1
18
74.7
no
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance