Use the data from our ‘incommed.dat’ file (also stored in the HW 2 folder for convenience) to plot ages against cholesterol levels with a red star. Draw a blue regression line through the points and get a green 95% confidence level for the mean values. Use appropriate titles.
下面是数据
1 1 0 51 4 30714 0 89.7 201.2 12.0 33.9 4.3 7.1
2 1 1 39 3 17799 1 110.4 165.8 12.0 37.2 4.0 9.3
3 3 1 42 3 8219 2 108.5 150.7 12.0 38.2 4.9 11.2
4 3 1 52 4 13640 0 93.0 183.4 11.8 33.9 4.5 3.0
5 3 0 51 4 16311 0 73.7 195.6 11.8 35.9 4.5 9.6
6 3 0 38 3 19177 2 121.7 201.1 12.1 37.4 4.6 7.5
7 3 0 61 5 18011 0 113.1 210.9 11.7 35.8 4.4 7.5
8 1 0 78 7 27262 0 115.5 194.3 11.8 36.4 4.4 7.6
9 1 0 36 3 30010 0 112.1 139.2 11.1 35.2 4.5 7.4
10 3 0 51 4 24633 1 113.8 201.7 12.0 33.6 4.7 7.5
11 1 0 47 4 31609 0 98.7 156.8 11.1 35.2 4.6 7.2
12 2 0 31 2 22023 0 71.9 149.4 12.0 36.3 4.8 8.9
13 2 0 56 5 33761 2 103.5 183.9 11.1 31.4 4.0 8.1
14 3 0 63 5 27717 0 90.8 199.9 13.2 36.9 4.9 10.2
15 1 0 51 4 27434 0 81.2 232.6 13.0 37.2 4.1 4.3
16 1 1 32 2 13848 0 84.3 191.2 13.0 40.9 3.7 5.0
17 1 0 15 1 18862 0 75.2 132.1 13.5 39.7 4.8 5.8
18 1 0 44 3 30299 0 118.5 163.5 12.2 36.9 4.3 10.5
19 2 1 44 3 11522 0 85.2 178.4 11.4 35.1 4.1 6.2
20 3 0 46 4 16596 0 98.1 143.2 13.1 37.6 4.6 9.2