Seatbelts is a time series giving the monthly totals of car drivers in Great Britain killed or seriously injured from January 1969 to December 1984. We are interested in some descriptive statistics related to the Driverskilled column of the Seatbelts time series. We can access this data directly by using the assignment x <- as.vector(Seatbelts[,1]) (In R, use ? Seatbelts for info on this data) The values of x if assigned as above: [1] 107 97 102 87 119 106 110 106 107 134 147 180 125 134 110 102 103 [18] 111 120 129 122 183 169 190 134 108 104 117 157 148 130 140 136 140 [35] 187 150 159 143 114 127 159 156 138 120 117 170 168 198 144 146 109 [52] 131 151 140 153 140 161 168 152 136 113 100 103 103 121 134 133 129 [69] 144 154 156 163 122 92 117 95 96 108 108 106 140 114 158 161 102 [86] 127 125 101 97 112 112 113 108 128 154 162 112 79 82 127 108 110 [103] 123 103 97 140 165 183 148 111 116 115 100 106 134 125 117 122 153 [120] 178 114 94 128 119 111 110 114 118 115 132 153 171 115 95 92 100 [137] 95 114 102 104 132 136 117 137 111 106 98 84 94 105 123 109 130 [154] 153 134 99 115 104 131 108 103 115 122 122 125 137 138 152 120 95 [171] 100 89 82 89 60 84 113 126 122 118 92 86 81 84 87 90 79 [188] 96 122 120 137 154 You should get these values from the R assignment rather than manually copying. a.Calculate the maximum value of x
Seatbelts is a time series giving the monthly totals of car drivers in Great Britain killed or seriously injured from January 1969 to December 1984. We are interested in some
[1] 107 97 102 87 119 106 110 106 107 134 147 180 125 134 110 102 103
[18] 111 120 129 122 183 169 190 134 108 104 117 157 148 130 140 136 140
[35] 187 150 159 143 114 127 159 156 138 120 117 170 168 198 144 146 109
[52] 131 151 140 153 140 161 168 152 136 113 100 103 103 121 134 133 129
[69] 144 154 156 163 122 92 117 95 96 108 108 106 140 114 158 161 102
[86] 127 125 101 97 112 112 113 108 128 154 162 112 79 82 127 108 110
[103] 123 103 97 140 165 183 148 111 116 115 100 106 134 125 117 122 153
[120] 178 114 94 128 119 111 110 114 118 115 132 153 171 115 95 92 100
[137] 95 114 102 104 132 136 117 137 111 106 98 84 94 105 123 109 130
[154] 153 134 99 115 104 131 108 103 115 122 122 125 137 138 152 120 95
[171] 100 89 82 89 60 84 113 126 122 118 92 86 81 84 87 90 79
[188] 96 122 120 137 154
You should get these values from the R assignment rather than manually copying.
a.Calculate the maximum value of x
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 3 images