datalat <- read.csv("C:/Users/ASUS/Downloads/Kuliah Semester 5/Pengantar Model Linear/scrap price.csv")
datalat
## ID symboling name fueltypes aspiration
## 1 1 3 alfa-romero giulia gas std
## 2 2 3 alfa-romero stelvio gas std
## 3 3 1 alfa-romero Quadrifoglio gas std
## 4 4 2 audi 100 ls gas std
## 5 5 2 audi 100ls gas std
## 6 6 2 audi fox gas std
## 7 7 1 audi 100ls gas std
## 8 8 1 audi 5000 gas std
## 9 9 1 audi 4000 gas turbo
## 10 10 0 audi 5000s (diesel) gas turbo
## 11 11 2 bmw 320i gas std
## 12 12 0 bmw 320i gas std
## 13 13 0 bmw x1 gas std
## 14 14 0 bmw x3 gas std
## 15 15 1 bmw z4 gas std
## 16 16 0 bmw x4 gas std
## 17 17 0 bmw x5 gas std
## 18 18 0 bmw x3 gas std
## 19 19 2 chevrolet impala gas std
## 20 20 1 chevrolet monte carlo gas std
## 21 21 0 chevrolet vega 2300 gas std
## 22 22 1 dodge rampage gas std
## 23 23 1 dodge challenger se gas std
## 24 24 1 dodge d200 gas turbo
## 25 25 1 dodge monaco (sw) gas std
## 26 26 1 dodge colt hardtop gas std
## 27 27 1 dodge colt (sw) gas std
## 28 28 1 dodge coronet custom gas turbo
## 29 29 -1 dodge dart custom gas std
## 30 30 3 dodge coronet custom (sw) gas turbo
## 31 31 2 honda civic gas std
## 32 32 2 honda civic cvcc gas std
## 33 33 1 honda civic gas std
## 34 34 1 honda accord cvcc gas std
## 35 35 1 honda civic cvcc gas std
## 36 36 0 honda accord lx gas std
## 37 37 0 honda civic 1500 gl gas std
## 38 38 0 honda accord gas std
## 39 39 0 honda civic 1300 gas std
## 40 40 0 honda prelude gas std
## 41 41 0 honda accord gas std
## 42 42 0 honda civic gas std
## 43 43 1 honda civic (auto) gas std
## 44 44 0 isuzu MU-X gas std
## 45 45 1 isuzu D-Max gas std
## 46 46 0 isuzu D-Max V-Cross gas std
## 47 47 2 isuzu D-Max gas std
## 48 48 0 jaguar xj gas std
## 49 49 0 jaguar xf gas std
## 50 50 0 jaguar xk gas std
## 51 51 1 maxda rx3 gas std
## 52 52 1 maxda glc deluxe gas std
## 53 53 1 mazda rx2 coupe gas std
## 54 54 1 mazda rx-4 gas std
## 55 55 1 mazda glc deluxe gas std
## 56 56 3 mazda 626 gas std
## 57 57 3 mazda glc gas std
## 58 58 3 mazda rx-7 gs gas std
## 59 59 3 mazda glc 4 gas std
## 60 60 1 mazda 626 gas std
## 61 61 0 mazda glc custom l gas std
## 62 62 1 mazda glc custom gas std
## 63 63 0 mazda rx-4 gas std
## 64 64 0 mazda glc deluxe diesel std
## 65 65 0 mazda 626 gas std
## 66 66 0 mazda glc gas std
## 67 67 0 mazda rx-7 gs diesel std
## 68 68 -1 buick electra 225 custom diesel turbo
## 69 69 -1 buick century luxus (sw) diesel turbo
## 70 70 0 buick century diesel turbo
## 71 71 -1 buick skyhawk diesel turbo
## 72 72 -1 buick opel isuzu deluxe gas std
## 73 73 3 buick skylark gas std
## 74 74 0 buick century special gas std
## 75 75 1 buick regal sport coupe (turbo) gas std
## 76 76 1 mercury cougar gas turbo
## 77 77 2 mitsubishi mirage gas std
## 78 78 2 mitsubishi lancer gas std
## 79 79 2 mitsubishi outlander gas std
## 80 80 1 mitsubishi g4 gas turbo
## 81 81 3 mitsubishi mirage g4 gas turbo
## 82 82 3 mitsubishi g4 gas std
## 83 83 3 mitsubishi outlander gas turbo
## 84 84 3 mitsubishi g4 gas turbo
## 85 85 3 mitsubishi mirage g4 gas turbo
## 86 86 1 mitsubishi montero gas std
## 87 87 1 mitsubishi pajero gas std
## 88 88 1 mitsubishi outlander gas turbo
## 89 89 -1 mitsubishi mirage g4 gas std
## 90 90 1 Nissan versa gas std
## 91 91 1 nissan gt-r diesel std
## 92 92 1 nissan rogue gas std
## 93 93 1 nissan latio gas std
## 94 94 1 nissan titan gas std
## 95 95 1 nissan leaf gas std
## 96 96 1 nissan juke gas std
## 97 97 1 nissan latio gas std
## 98 98 1 nissan note gas std
## 99 99 2 nissan clipper gas std
## 100 100 0 nissan rogue gas std
## 101 101 0 nissan nv200 gas std
## 102 102 0 nissan dayz gas std
## 103 103 0 nissan fuga gas std
## 104 104 0 nissan otti gas std
## 105 105 3 nissan teana gas std
## 106 106 3 nissan kicks gas turbo
## 107 107 1 nissan clipper gas std
## 108 108 0 peugeot 504 gas std
## 109 109 0 peugeot 304 diesel turbo
## 110 110 0 peugeot 504 (sw) gas std
## 111 111 0 peugeot 504 diesel turbo
## 112 112 0 peugeot 504 gas std
## 113 113 0 peugeot 604sl diesel turbo
## 114 114 0 peugeot 504 gas std
## 115 115 0 peugeot 505s turbo diesel diesel turbo
## 116 116 0 peugeot 504 gas std
## 117 117 0 peugeot 504 diesel turbo
## 118 118 0 peugeot 604sl gas turbo
## 119 119 1 plymouth fury iii gas std
## 120 120 1 plymouth cricket gas turbo
## 121 121 1 plymouth fury iii gas std
## 122 122 1 plymouth satellite custom (sw) gas std
## 123 123 1 plymouth fury gran sedan gas std
## 124 124 -1 plymouth valiant gas std
## 125 125 3 plymouth duster gas turbo
## 126 126 3 porsche macan gas std
## 127 127 3 porcshce panamera gas std
## 128 128 3 porsche cayenne gas std
## 129 129 3 porsche boxter gas std
## 130 130 1 porsche cayenne gas std
## 131 131 0 renault 12tl gas std
## 132 132 2 renault 5 gtl gas std
## 133 133 3 saab 99e gas std
## 134 134 2 saab 99le gas std
## 135 135 3 saab 99le gas std
## 136 136 2 saab 99gle gas std
## 137 137 3 saab 99gle gas turbo
## 138 138 2 saab 99e gas turbo
## 139 139 2 subaru gas std
## 140 140 2 subaru dl gas std
## 141 141 2 subaru dl gas std
## 142 142 0 subaru gas std
## 143 143 0 subaru brz gas std
## 144 144 0 subaru baja gas std
## 145 145 0 subaru r1 gas std
## 146 146 0 subaru r2 gas turbo
## 147 147 0 subaru trezia gas std
## 148 148 0 subaru tribeca gas std
## 149 149 0 subaru dl gas std
## 150 150 0 subaru dl gas turbo
## 151 151 1 toyota corona mark ii gas std
## 152 152 1 toyota corona gas std
## 153 153 1 toyota corolla 1200 gas std
## 154 154 0 toyota corona hardtop gas std
## 155 155 0 toyota corolla 1600 (sw) gas std
## 156 156 0 toyota carina gas std
## 157 157 0 toyota mark ii gas std
## 158 158 0 toyota corolla 1200 gas std
## 159 159 0 toyota corona diesel std
## 160 160 0 toyota corolla diesel std
## 161 161 0 toyota corona gas std
## 162 162 0 toyota corolla gas std
## 163 163 0 toyota mark ii gas std
## 164 164 1 toyota corolla liftback gas std
## 165 165 1 toyota corona gas std
## 166 166 1 toyota celica gt liftback gas std
## 167 167 1 toyota corolla tercel gas std
## 168 168 2 toyota corona liftback gas std
## 169 169 2 toyota corolla gas std
## 170 170 2 toyota starlet gas std
## 171 171 2 toyota tercel gas std
## 172 172 2 toyota corolla gas std
## 173 173 2 toyota cressida gas std
## 174 174 -1 toyota corolla gas std
## 175 175 -1 toyota celica gt diesel turbo
## 176 176 -1 toyota corona gas std
## 177 177 -1 toyota corolla gas std
## 178 178 -1 toyota mark ii gas std
## 179 179 3 toyota corolla liftback gas std
## 180 180 3 toyota corona gas std
## 181 181 -1 toyota starlet gas std
## 182 182 -1 toyouta tercel gas std
## 183 183 2 vokswagen rabbit diesel std
## 184 184 2 volkswagen 1131 deluxe sedan gas std
## 185 185 2 volkswagen model 111 diesel std
## 186 186 2 volkswagen type 3 gas std
## 187 187 2 volkswagen 411 (sw) gas std
## 188 188 2 volkswagen super beetle diesel turbo
## 189 189 2 volkswagen dasher gas std
## 190 190 3 vw dasher gas std
## 191 191 3 vw rabbit gas std
## 192 192 0 volkswagen rabbit gas std
## 193 193 0 volkswagen rabbit custom diesel turbo
## 194 194 0 volkswagen dasher gas std
## 195 195 -2 volvo 145e (sw) gas std
## 196 196 -1 volvo 144ea gas std
## 197 197 -2 volvo 244dl gas std
## 198 198 -1 volvo 245 gas std
## 199 199 -2 volvo 264gl gas turbo
## 200 200 -1 volvo diesel gas turbo
## 201 201 -1 volvo 145e (sw) gas std
## 202 202 -1 volvo 144ea gas turbo
## 203 203 -1 volvo 244dl gas std
## 204 204 -1 volvo 246 diesel turbo
## 205 205 -1 volvo 264gl gas turbo
## doornumbers carbody drivewheels enginelocation wheelbase carlength
## 1 two convertible rwd front 88.6 168.8
## 2 two convertible rwd front 88.6 168.8
## 3 two hatchback rwd front 94.5 171.2
## 4 four sedan fwd front 99.8 176.6
## 5 four sedan 4wd front 99.4 176.6
## 6 two sedan fwd front 99.8 177.3
## 7 four sedan fwd front 105.8 192.7
## 8 four wagon fwd front 105.8 192.7
## 9 four sedan fwd front 105.8 192.7
## 10 two hatchback 4wd front 99.5 178.2
## 11 two sedan rwd front 101.2 176.8
## 12 four sedan rwd front 101.2 176.8
## 13 two sedan rwd front 101.2 176.8
## 14 four sedan rwd front 101.2 176.8
## 15 four sedan rwd front 103.5 189.0
## 16 four sedan rwd front 103.5 189.0
## 17 two sedan rwd front 103.5 193.8
## 18 four sedan rwd front 110.0 197.0
## 19 two hatchback fwd front 88.4 141.1
## 20 two hatchback fwd front 94.5 155.9
## 21 four sedan fwd front 94.5 158.8
## 22 two hatchback fwd front 93.7 157.3
## 23 two hatchback fwd front 93.7 157.3
## 24 two hatchback fwd front 93.7 157.3
## 25 four hatchback fwd front 93.7 157.3
## 26 four sedan fwd front 93.7 157.3
## 27 four sedan fwd front 93.7 157.3
## 28 two sedan fwd front 93.7 157.3
## 29 four wagon fwd front 103.3 174.6
## 30 two hatchback fwd front 95.9 173.2
## 31 two hatchback fwd front 86.6 144.6
## 32 two hatchback fwd front 86.6 144.6
## 33 two hatchback fwd front 93.7 150.0
## 34 two hatchback fwd front 93.7 150.0
## 35 two hatchback fwd front 93.7 150.0
## 36 four sedan fwd front 96.5 163.4
## 37 four wagon fwd front 96.5 157.1
## 38 two hatchback fwd front 96.5 167.5
## 39 two hatchback fwd front 96.5 167.5
## 40 four sedan fwd front 96.5 175.4
## 41 four sedan fwd front 96.5 175.4
## 42 four sedan fwd front 96.5 175.4
## 43 two sedan fwd front 96.5 169.1
## 44 four sedan rwd front 94.3 170.7
## 45 two sedan fwd front 94.5 155.9
## 46 four sedan fwd front 94.5 155.9
## 47 two hatchback rwd front 96.0 172.6
## 48 four sedan rwd front 113.0 199.6
## 49 four sedan rwd front 113.0 199.6
## 50 two sedan rwd front 102.0 191.7
## 51 two hatchback fwd front 93.1 159.1
## 52 two hatchback fwd front 93.1 159.1
## 53 two hatchback fwd front 93.1 159.1
## 54 four sedan fwd front 93.1 166.8
## 55 four sedan fwd front 93.1 166.8
## 56 two hatchback rwd front 95.3 169.0
## 57 two hatchback rwd front 95.3 169.0
## 58 two hatchback rwd front 95.3 169.0
## 59 two hatchback rwd front 95.3 169.0
## 60 two hatchback fwd front 98.8 177.8
## 61 four sedan fwd front 98.8 177.8
## 62 two hatchback fwd front 98.8 177.8
## 63 four sedan fwd front 98.8 177.8
## 64 four sedan fwd front 98.8 177.8
## 65 four hatchback fwd front 98.8 177.8
## 66 four sedan rwd front 104.9 175.0
## 67 four sedan rwd front 104.9 175.0
## 68 four sedan rwd front 110.0 190.9
## 69 four wagon rwd front 110.0 190.9
## 70 two hardtop rwd front 106.7 187.5
## 71 four sedan rwd front 115.6 202.6
## 72 four sedan rwd front 115.6 202.6
## 73 two convertible rwd front 96.6 180.3
## 74 four sedan rwd front 120.9 208.1
## 75 two hardtop rwd front 112.0 199.2
## 76 two hatchback rwd front 102.7 178.4
## 77 two hatchback fwd front 93.7 157.3
## 78 two hatchback fwd front 93.7 157.3
## 79 two hatchback fwd front 93.7 157.3
## 80 two hatchback fwd front 93.0 157.3
## 81 two hatchback fwd front 96.3 173.0
## 82 two hatchback fwd front 96.3 173.0
## 83 two hatchback fwd front 95.9 173.2
## 84 two hatchback fwd front 95.9 173.2
## 85 two hatchback fwd front 95.9 173.2
## 86 four sedan fwd front 96.3 172.4
## 87 four sedan fwd front 96.3 172.4
## 88 four sedan fwd front 96.3 172.4
## 89 four sedan fwd front 96.3 172.4
## 90 two sedan fwd front 94.5 165.3
## 91 two sedan fwd front 94.5 165.3
## 92 two sedan fwd front 94.5 165.3
## 93 four sedan fwd front 94.5 165.3
## 94 four wagon fwd front 94.5 170.2
## 95 two sedan fwd front 94.5 165.3
## 96 two hatchback fwd front 94.5 165.6
## 97 four sedan fwd front 94.5 165.3
## 98 four wagon fwd front 94.5 170.2
## 99 two hardtop fwd front 95.1 162.4
## 100 four hatchback fwd front 97.2 173.4
## 101 four sedan fwd front 97.2 173.4
## 102 four sedan fwd front 100.4 181.7
## 103 four wagon fwd front 100.4 184.6
## 104 four sedan fwd front 100.4 184.6
## 105 two hatchback rwd front 91.3 170.7
## 106 two hatchback rwd front 91.3 170.7
## 107 two hatchback rwd front 99.2 178.5
## 108 four sedan rwd front 107.9 186.7
## 109 four sedan rwd front 107.9 186.7
## 110 four wagon rwd front 114.2 198.9
## 111 four wagon rwd front 114.2 198.9
## 112 four sedan rwd front 107.9 186.7
## 113 four sedan rwd front 107.9 186.7
## 114 four wagon rwd front 114.2 198.9
## 115 four wagon rwd front 114.2 198.9
## 116 four sedan rwd front 107.9 186.7
## 117 four sedan rwd front 107.9 186.7
## 118 four sedan rwd front 108.0 186.7
## 119 two hatchback fwd front 93.7 157.3
## 120 two hatchback fwd front 93.7 157.3
## 121 four hatchback fwd front 93.7 157.3
## 122 four sedan fwd front 93.7 167.3
## 123 four sedan fwd front 93.7 167.3
## 124 four wagon fwd front 103.3 174.6
## 125 two hatchback rwd front 95.9 173.2
## 126 two hatchback rwd front 94.5 168.9
## 127 two hardtop rwd rear 89.5 168.9
## 128 two hardtop rwd rear 89.5 168.9
## 129 two convertible rwd rear 89.5 168.9
## 130 two hatchback rwd front 98.4 175.7
## 131 four wagon fwd front 96.1 181.5
## 132 two hatchback fwd front 96.1 176.8
## 133 two hatchback fwd front 99.1 186.6
## 134 four sedan fwd front 99.1 186.6
## 135 two hatchback fwd front 99.1 186.6
## 136 four sedan fwd front 99.1 186.6
## 137 two hatchback fwd front 99.1 186.6
## 138 four sedan fwd front 99.1 186.6
## 139 two hatchback fwd front 93.7 156.9
## 140 two hatchback fwd front 93.7 157.9
## 141 two hatchback 4wd front 93.3 157.3
## 142 four sedan fwd front 97.2 172.0
## 143 four sedan fwd front 97.2 172.0
## 144 four sedan fwd front 97.2 172.0
## 145 four sedan 4wd front 97.0 172.0
## 146 four sedan 4wd front 97.0 172.0
## 147 four wagon fwd front 97.0 173.5
## 148 four wagon fwd front 97.0 173.5
## 149 four wagon 4wd front 96.9 173.6
## 150 four wagon 4wd front 96.9 173.6
## 151 two hatchback fwd front 95.7 158.7
## 152 two hatchback fwd front 95.7 158.7
## 153 four hatchback fwd front 95.7 158.7
## 154 four wagon fwd front 95.7 169.7
## 155 four wagon 4wd front 95.7 169.7
## 156 four wagon 4wd front 95.7 169.7
## 157 four sedan fwd front 95.7 166.3
## 158 four hatchback fwd front 95.7 166.3
## 159 four sedan fwd front 95.7 166.3
## 160 four hatchback fwd front 95.7 166.3
## 161 four sedan fwd front 95.7 166.3
## 162 four hatchback fwd front 95.7 166.3
## 163 four sedan fwd front 95.7 166.3
## 164 two sedan rwd front 94.5 168.7
## 165 two hatchback rwd front 94.5 168.7
## 166 two sedan rwd front 94.5 168.7
## 167 two hatchback rwd front 94.5 168.7
## 168 two hardtop rwd front 98.4 176.2
## 169 two hardtop rwd front 98.4 176.2
## 170 two hatchback rwd front 98.4 176.2
## 171 two hardtop rwd front 98.4 176.2
## 172 two hatchback rwd front 98.4 176.2
## 173 two convertible rwd front 98.4 176.2
## 174 four sedan fwd front 102.4 175.6
## 175 four sedan fwd front 102.4 175.6
## 176 four hatchback fwd front 102.4 175.6
## 177 four sedan fwd front 102.4 175.6
## 178 four hatchback fwd front 102.4 175.6
## 179 two hatchback rwd front 102.9 183.5
## 180 two hatchback rwd front 102.9 183.5
## 181 four sedan rwd front 104.5 187.8
## 182 four wagon rwd front 104.5 187.8
## 183 two sedan fwd front 97.3 171.7
## 184 two sedan fwd front 97.3 171.7
## 185 four sedan fwd front 97.3 171.7
## 186 four sedan fwd front 97.3 171.7
## 187 four sedan fwd front 97.3 171.7
## 188 four sedan fwd front 97.3 171.7
## 189 four sedan fwd front 97.3 171.7
## 190 two convertible fwd front 94.5 159.3
## 191 two hatchback fwd front 94.5 165.7
## 192 four sedan fwd front 100.4 180.2
## 193 four sedan fwd front 100.4 180.2
## 194 four wagon fwd front 100.4 183.1
## 195 four sedan rwd front 104.3 188.8
## 196 four wagon rwd front 104.3 188.8
## 197 four sedan rwd front 104.3 188.8
## 198 four wagon rwd front 104.3 188.8
## 199 four sedan rwd front 104.3 188.8
## 200 four wagon rwd front 104.3 188.8
## 201 four sedan rwd front 109.1 188.8
## 202 four sedan rwd front 109.1 188.8
## 203 four sedan rwd front 109.1 188.8
## 204 four sedan rwd front 109.1 188.8
## 205 four sedan rwd front 109.1 188.8
## carwidth carheight curbweight enginetype cylindernumber enginesize
## 1 64.1 48.8 2548 dohc four 130
## 2 64.1 48.8 2548 dohc four 130
## 3 65.5 52.4 2823 ohcv six 152
## 4 66.2 54.3 2337 ohc four 109
## 5 66.4 54.3 2824 ohc five 136
## 6 66.3 53.1 2507 ohc five 136
## 7 71.4 55.7 2844 ohc five 136
## 8 71.4 55.7 2954 ohc five 136
## 9 71.4 55.9 3086 ohc five 131
## 10 67.9 52.0 3053 ohc five 131
## 11 64.8 54.3 2395 ohc four 108
## 12 64.8 54.3 2395 ohc four 108
## 13 64.8 54.3 2710 ohc six 164
## 14 64.8 54.3 2765 ohc six 164
## 15 66.9 55.7 3055 ohc six 164
## 16 66.9 55.7 3230 ohc six 209
## 17 67.9 53.7 3380 ohc six 209
## 18 70.9 56.3 3505 ohc six 209
## 19 60.3 53.2 1488 l three 61
## 20 63.6 52.0 1874 ohc four 90
## 21 63.6 52.0 1909 ohc four 90
## 22 63.8 50.8 1876 ohc four 90
## 23 63.8 50.8 1876 ohc four 90
## 24 63.8 50.8 2128 ohc four 98
## 25 63.8 50.6 1967 ohc four 90
## 26 63.8 50.6 1989 ohc four 90
## 27 63.8 50.6 1989 ohc four 90
## 28 63.8 50.6 2191 ohc four 98
## 29 64.6 59.8 2535 ohc four 122
## 30 66.3 50.2 2811 ohc four 156
## 31 63.9 50.8 1713 ohc four 92
## 32 63.9 50.8 1819 ohc four 92
## 33 64.0 52.6 1837 ohc four 79
## 34 64.0 52.6 1940 ohc four 92
## 35 64.0 52.6 1956 ohc four 92
## 36 64.0 54.5 2010 ohc four 92
## 37 63.9 58.3 2024 ohc four 92
## 38 65.2 53.3 2236 ohc four 110
## 39 65.2 53.3 2289 ohc four 110
## 40 65.2 54.1 2304 ohc four 110
## 41 62.5 54.1 2372 ohc four 110
## 42 65.2 54.1 2465 ohc four 110
## 43 66.0 51.0 2293 ohc four 110
## 44 61.8 53.5 2337 ohc four 111
## 45 63.6 52.0 1874 ohc four 90
## 46 63.6 52.0 1909 ohc four 90
## 47 65.2 51.4 2734 ohc four 119
## 48 69.6 52.8 4066 dohc six 258
## 49 69.6 52.8 4066 dohc six 258
## 50 70.6 47.8 3950 ohcv twelve 326
## 51 64.2 54.1 1890 ohc four 91
## 52 64.2 54.1 1900 ohc four 91
## 53 64.2 54.1 1905 ohc four 91
## 54 64.2 54.1 1945 ohc four 91
## 55 64.2 54.1 1950 ohc four 91
## 56 65.7 49.6 2380 rotor two 70
## 57 65.7 49.6 2380 rotor two 70
## 58 65.7 49.6 2385 rotor two 70
## 59 65.7 49.6 2500 rotor two 80
## 60 66.5 53.7 2385 ohc four 122
## 61 66.5 55.5 2410 ohc four 122
## 62 66.5 53.7 2385 ohc four 122
## 63 66.5 55.5 2410 ohc four 122
## 64 66.5 55.5 2443 ohc four 122
## 65 66.5 55.5 2425 ohc four 122
## 66 66.1 54.4 2670 ohc four 140
## 67 66.1 54.4 2700 ohc four 134
## 68 70.3 56.5 3515 ohc five 183
## 69 70.3 58.7 3750 ohc five 183
## 70 70.3 54.9 3495 ohc five 183
## 71 71.7 56.3 3770 ohc five 183
## 72 71.7 56.5 3740 ohcv eight 234
## 73 70.5 50.8 3685 ohcv eight 234
## 74 71.7 56.7 3900 ohcv eight 308
## 75 72.0 55.4 3715 ohcv eight 304
## 76 68.0 54.8 2910 ohc four 140
## 77 64.4 50.8 1918 ohc four 92
## 78 64.4 50.8 1944 ohc four 92
## 79 64.4 50.8 2004 ohc four 92
## 80 63.8 50.8 2145 ohc four 98
## 81 65.4 49.4 2370 ohc four 110
## 82 65.4 49.4 2328 ohc four 122
## 83 66.3 50.2 2833 ohc four 156
## 84 66.3 50.2 2921 ohc four 156
## 85 66.3 50.2 2926 ohc four 156
## 86 65.4 51.6 2365 ohc four 122
## 87 65.4 51.6 2405 ohc four 122
## 88 65.4 51.6 2403 ohc four 110
## 89 65.4 51.6 2403 ohc four 110
## 90 63.8 54.5 1889 ohc four 97
## 91 63.8 54.5 2017 ohc four 103
## 92 63.8 54.5 1918 ohc four 97
## 93 63.8 54.5 1938 ohc four 97
## 94 63.8 53.5 2024 ohc four 97
## 95 63.8 54.5 1951 ohc four 97
## 96 63.8 53.3 2028 ohc four 97
## 97 63.8 54.5 1971 ohc four 97
## 98 63.8 53.5 2037 ohc four 97
## 99 63.8 53.3 2008 ohc four 97
## 100 65.2 54.7 2324 ohc four 120
## 101 65.2 54.7 2302 ohc four 120
## 102 66.5 55.1 3095 ohcv six 181
## 103 66.5 56.1 3296 ohcv six 181
## 104 66.5 55.1 3060 ohcv six 181
## 105 67.9 49.7 3071 ohcv six 181
## 106 67.9 49.7 3139 ohcv six 181
## 107 67.9 49.7 3139 ohcv six 181
## 108 68.4 56.7 3020 l four 120
## 109 68.4 56.7 3197 l four 152
## 110 68.4 58.7 3230 l four 120
## 111 68.4 58.7 3430 l four 152
## 112 68.4 56.7 3075 l four 120
## 113 68.4 56.7 3252 l four 152
## 114 68.4 56.7 3285 l four 120
## 115 68.4 58.7 3485 l four 152
## 116 68.4 56.7 3075 l four 120
## 117 68.4 56.7 3252 l four 152
## 118 68.3 56.0 3130 l four 134
## 119 63.8 50.8 1918 ohc four 90
## 120 63.8 50.8 2128 ohc four 98
## 121 63.8 50.6 1967 ohc four 90
## 122 63.8 50.8 1989 ohc four 90
## 123 63.8 50.8 2191 ohc four 98
## 124 64.6 59.8 2535 ohc four 122
## 125 66.3 50.2 2818 ohc four 156
## 126 68.3 50.2 2778 ohc four 151
## 127 65.0 51.6 2756 ohcf six 194
## 128 65.0 51.6 2756 ohcf six 194
## 129 65.0 51.6 2800 ohcf six 194
## 130 72.3 50.5 3366 dohcv eight 203
## 131 66.5 55.2 2579 ohc four 132
## 132 66.6 50.5 2460 ohc four 132
## 133 66.5 56.1 2658 ohc four 121
## 134 66.5 56.1 2695 ohc four 121
## 135 66.5 56.1 2707 ohc four 121
## 136 66.5 56.1 2758 ohc four 121
## 137 66.5 56.1 2808 dohc four 121
## 138 66.5 56.1 2847 dohc four 121
## 139 63.4 53.7 2050 ohcf four 97
## 140 63.6 53.7 2120 ohcf four 108
## 141 63.8 55.7 2240 ohcf four 108
## 142 65.4 52.5 2145 ohcf four 108
## 143 65.4 52.5 2190 ohcf four 108
## 144 65.4 52.5 2340 ohcf four 108
## 145 65.4 54.3 2385 ohcf four 108
## 146 65.4 54.3 2510 ohcf four 108
## 147 65.4 53.0 2290 ohcf four 108
## 148 65.4 53.0 2455 ohcf four 108
## 149 65.4 54.9 2420 ohcf four 108
## 150 65.4 54.9 2650 ohcf four 108
## 151 63.6 54.5 1985 ohc four 92
## 152 63.6 54.5 2040 ohc four 92
## 153 63.6 54.5 2015 ohc four 92
## 154 63.6 59.1 2280 ohc four 92
## 155 63.6 59.1 2290 ohc four 92
## 156 63.6 59.1 3110 ohc four 92
## 157 64.4 53.0 2081 ohc four 98
## 158 64.4 52.8 2109 ohc four 98
## 159 64.4 53.0 2275 ohc four 110
## 160 64.4 52.8 2275 ohc four 110
## 161 64.4 53.0 2094 ohc four 98
## 162 64.4 52.8 2122 ohc four 98
## 163 64.4 52.8 2140 ohc four 98
## 164 64.0 52.6 2169 ohc four 98
## 165 64.0 52.6 2204 ohc four 98
## 166 64.0 52.6 2265 dohc four 98
## 167 64.0 52.6 2300 dohc four 98
## 168 65.6 52.0 2540 ohc four 146
## 169 65.6 52.0 2536 ohc four 146
## 170 65.6 52.0 2551 ohc four 146
## 171 65.6 52.0 2679 ohc four 146
## 172 65.6 52.0 2714 ohc four 146
## 173 65.6 53.0 2975 ohc four 146
## 174 66.5 54.9 2326 ohc four 122
## 175 66.5 54.9 2480 ohc four 110
## 176 66.5 53.9 2414 ohc four 122
## 177 66.5 54.9 2414 ohc four 122
## 178 66.5 53.9 2458 ohc four 122
## 179 67.7 52.0 2976 dohc six 171
## 180 67.7 52.0 3016 dohc six 171
## 181 66.5 54.1 3131 dohc six 171
## 182 66.5 54.1 3151 dohc six 161
## 183 65.5 55.7 2261 ohc four 97
## 184 65.5 55.7 2209 ohc four 109
## 185 65.5 55.7 2264 ohc four 97
## 186 65.5 55.7 2212 ohc four 109
## 187 65.5 55.7 2275 ohc four 109
## 188 65.5 55.7 2319 ohc four 97
## 189 65.5 55.7 2300 ohc four 109
## 190 64.2 55.6 2254 ohc four 109
## 191 64.0 51.4 2221 ohc four 109
## 192 66.9 55.1 2661 ohc five 136
## 193 66.9 55.1 2579 ohc four 97
## 194 66.9 55.1 2563 ohc four 109
## 195 67.2 56.2 2912 ohc four 141
## 196 67.2 57.5 3034 ohc four 141
## 197 67.2 56.2 2935 ohc four 141
## 198 67.2 57.5 3042 ohc four 141
## 199 67.2 56.2 3045 ohc four 130
## 200 67.2 57.5 3157 ohc four 130
## 201 68.9 55.5 2952 ohc four 141
## 202 68.8 55.5 3049 ohc four 141
## 203 68.9 55.5 3012 ohcv six 173
## 204 68.9 55.5 3217 ohc six 145
## 205 68.9 55.5 3062 ohc four 141
## fuelsystem boreratio stroke compressionratio horsepower peakrpm citympg
## 1 mpfi 3.47 2.680 9.00 111 5000 21
## 2 mpfi 3.47 2.680 9.00 111 5000 21
## 3 mpfi 2.68 3.470 9.00 154 5000 19
## 4 mpfi 3.19 3.400 10.00 102 5500 24
## 5 mpfi 3.19 3.400 8.00 115 5500 18
## 6 mpfi 3.19 3.400 8.50 110 5500 19
## 7 mpfi 3.19 3.400 8.50 110 5500 19
## 8 mpfi 3.19 3.400 8.50 110 5500 19
## 9 mpfi 3.13 3.400 8.30 140 5500 17
## 10 mpfi 3.13 3.400 7.00 160 5500 16
## 11 mpfi 3.50 2.800 8.80 101 5800 23
## 12 mpfi 3.50 2.800 8.80 101 5800 23
## 13 mpfi 3.31 3.190 9.00 121 4250 21
## 14 mpfi 3.31 3.190 9.00 121 4250 21
## 15 mpfi 3.31 3.190 9.00 121 4250 20
## 16 mpfi 3.62 3.390 8.00 182 5400 16
## 17 mpfi 3.62 3.390 8.00 182 5400 16
## 18 mpfi 3.62 3.390 8.00 182 5400 15
## 19 2bbl 2.91 3.030 9.50 48 5100 47
## 20 2bbl 3.03 3.110 9.60 70 5400 38
## 21 2bbl 3.03 3.110 9.60 70 5400 38
## 22 2bbl 2.97 3.230 9.41 68 5500 37
## 23 2bbl 2.97 3.230 9.40 68 5500 31
## 24 mpfi 3.03 3.390 7.60 102 5500 24
## 25 2bbl 2.97 3.230 9.40 68 5500 31
## 26 2bbl 2.97 3.230 9.40 68 5500 31
## 27 2bbl 2.97 3.230 9.40 68 5500 31
## 28 mpfi 3.03 3.390 7.60 102 5500 24
## 29 2bbl 3.34 3.460 8.50 88 5000 24
## 30 mfi 3.60 3.900 7.00 145 5000 19
## 31 1bbl 2.91 3.410 9.60 58 4800 49
## 32 1bbl 2.91 3.410 9.20 76 6000 31
## 33 1bbl 2.91 3.070 10.10 60 5500 38
## 34 1bbl 2.91 3.410 9.20 76 6000 30
## 35 1bbl 2.91 3.410 9.20 76 6000 30
## 36 1bbl 2.91 3.410 9.20 76 6000 30
## 37 1bbl 2.92 3.410 9.20 76 6000 30
## 38 1bbl 3.15 3.580 9.00 86 5800 27
## 39 1bbl 3.15 3.580 9.00 86 5800 27
## 40 1bbl 3.15 3.580 9.00 86 5800 27
## 41 1bbl 3.15 3.580 9.00 86 5800 27
## 42 mpfi 3.15 3.580 9.00 101 5800 24
## 43 2bbl 3.15 3.580 9.10 100 5500 25
## 44 2bbl 3.31 3.230 8.50 78 4800 24
## 45 2bbl 3.03 3.110 9.60 70 5400 38
## 46 2bbl 3.03 3.110 9.60 70 5400 38
## 47 spfi 3.43 3.230 9.20 90 5000 24
## 48 mpfi 3.63 4.170 8.10 176 4750 15
## 49 mpfi 3.63 4.170 8.10 176 4750 15
## 50 mpfi 3.54 2.760 11.50 262 5000 13
## 51 2bbl 3.03 3.150 9.00 68 5000 30
## 52 2bbl 3.03 3.150 9.00 68 5000 31
## 53 2bbl 3.03 3.150 9.00 68 5000 31
## 54 2bbl 3.03 3.150 9.00 68 5000 31
## 55 2bbl 3.08 3.150 9.00 68 5000 31
## 56 4bbl 3.33 3.255 9.40 101 6000 17
## 57 4bbl 3.33 3.255 9.40 101 6000 17
## 58 4bbl 3.33 3.255 9.40 101 6000 17
## 59 mpfi 3.33 3.255 9.40 135 6000 16
## 60 2bbl 3.39 3.390 8.60 84 4800 26
## 61 2bbl 3.39 3.390 8.60 84 4800 26
## 62 2bbl 3.39 3.390 8.60 84 4800 26
## 63 2bbl 3.39 3.390 8.60 84 4800 26
## 64 idi 3.39 3.390 22.70 64 4650 36
## 65 2bbl 3.39 3.390 8.60 84 4800 26
## 66 mpfi 3.76 3.160 8.00 120 5000 19
## 67 idi 3.43 3.640 22.00 72 4200 31
## 68 idi 3.58 3.640 21.50 123 4350 22
## 69 idi 3.58 3.640 21.50 123 4350 22
## 70 idi 3.58 3.640 21.50 123 4350 22
## 71 idi 3.58 3.640 21.50 123 4350 22
## 72 mpfi 3.46 3.100 8.30 155 4750 16
## 73 mpfi 3.46 3.100 8.30 155 4750 16
## 74 mpfi 3.80 3.350 8.00 184 4500 14
## 75 mpfi 3.80 3.350 8.00 184 4500 14
## 76 mpfi 3.78 3.120 8.00 175 5000 19
## 77 2bbl 2.97 3.230 9.40 68 5500 37
## 78 2bbl 2.97 3.230 9.40 68 5500 31
## 79 2bbl 2.97 3.230 9.40 68 5500 31
## 80 spdi 3.03 3.390 7.60 102 5500 24
## 81 spdi 3.17 3.460 7.50 116 5500 23
## 82 2bbl 3.35 3.460 8.50 88 5000 25
## 83 spdi 3.58 3.860 7.00 145 5000 19
## 84 spdi 3.59 3.860 7.00 145 5000 19
## 85 spdi 3.59 3.860 7.00 145 5000 19
## 86 2bbl 3.35 3.460 8.50 88 5000 25
## 87 2bbl 3.35 3.460 8.50 88 5000 25
## 88 spdi 3.17 3.460 7.50 116 5500 23
## 89 spdi 3.17 3.460 7.50 116 5500 23
## 90 2bbl 3.15 3.290 9.40 69 5200 31
## 91 idi 2.99 3.470 21.90 55 4800 45
## 92 2bbl 3.15 3.290 9.40 69 5200 31
## 93 2bbl 3.15 3.290 9.40 69 5200 31
## 94 2bbl 3.15 3.290 9.40 69 5200 31
## 95 2bbl 3.15 3.290 9.40 69 5200 31
## 96 2bbl 3.15 3.290 9.40 69 5200 31
## 97 2bbl 3.15 3.290 9.40 69 5200 31
## 98 2bbl 3.15 3.290 9.40 69 5200 31
## 99 2bbl 3.15 3.290 9.40 69 5200 31
## 100 2bbl 3.33 3.470 8.50 97 5200 27
## 101 2bbl 3.33 3.470 8.50 97 5200 27
## 102 mpfi 3.43 3.270 9.00 152 5200 17
## 103 mpfi 3.43 3.270 9.00 152 5200 17
## 104 mpfi 3.43 3.270 9.00 152 5200 19
## 105 mpfi 3.43 3.270 9.00 160 5200 19
## 106 mpfi 3.43 3.270 7.80 200 5200 17
## 107 mpfi 3.43 3.270 9.00 160 5200 19
## 108 mpfi 3.46 3.190 8.40 97 5000 19
## 109 idi 3.70 3.520 21.00 95 4150 28
## 110 mpfi 3.46 3.190 8.40 97 5000 19
## 111 idi 3.70 3.520 21.00 95 4150 25
## 112 mpfi 3.46 2.190 8.40 95 5000 19
## 113 idi 3.70 3.520 21.00 95 4150 28
## 114 mpfi 3.46 2.190 8.40 95 5000 19
## 115 idi 3.70 3.520 21.00 95 4150 25
## 116 mpfi 3.46 3.190 8.40 97 5000 19
## 117 idi 3.70 3.520 21.00 95 4150 28
## 118 mpfi 3.61 3.210 7.00 142 5600 18
## 119 2bbl 2.97 3.230 9.40 68 5500 37
## 120 spdi 3.03 3.390 7.60 102 5500 24
## 121 2bbl 2.97 3.230 9.40 68 5500 31
## 122 2bbl 2.97 3.230 9.40 68 5500 31
## 123 2bbl 2.97 3.230 9.40 68 5500 31
## 124 2bbl 3.35 3.460 8.50 88 5000 24
## 125 spdi 3.59 3.860 7.00 145 5000 19
## 126 mpfi 3.94 3.110 9.50 143 5500 19
## 127 mpfi 3.74 2.900 9.50 207 5900 17
## 128 mpfi 3.74 2.900 9.50 207 5900 17
## 129 mpfi 3.74 2.900 9.50 207 5900 17
## 130 mpfi 3.94 3.110 10.00 288 5750 17
## 131 mpfi 3.46 3.900 8.70 90 5100 23
## 132 mpfi 3.46 3.900 8.70 90 5100 23
## 133 mpfi 3.54 3.070 9.31 110 5250 21
## 134 mpfi 3.54 3.070 9.30 110 5250 21
## 135 mpfi 2.54 2.070 9.30 110 5250 21
## 136 mpfi 3.54 3.070 9.30 110 5250 21
## 137 mpfi 3.54 3.070 9.00 160 5500 19
## 138 mpfi 3.54 3.070 9.00 160 5500 19
## 139 2bbl 3.62 2.360 9.00 69 4900 31
## 140 2bbl 3.62 2.640 8.70 73 4400 26
## 141 2bbl 3.62 2.640 8.70 73 4400 26
## 142 2bbl 3.62 2.640 9.50 82 4800 32
## 143 2bbl 3.62 2.640 9.50 82 4400 28
## 144 mpfi 3.62 2.640 9.00 94 5200 26
## 145 2bbl 3.62 2.640 9.00 82 4800 24
## 146 mpfi 3.62 2.640 7.70 111 4800 24
## 147 2bbl 3.62 2.640 9.00 82 4800 28
## 148 mpfi 3.62 2.640 9.00 94 5200 25
## 149 2bbl 3.62 2.640 9.00 82 4800 23
## 150 mpfi 3.62 2.640 7.70 111 4800 23
## 151 2bbl 3.05 3.030 9.00 62 4800 35
## 152 2bbl 3.05 3.030 9.00 62 4800 31
## 153 2bbl 3.05 3.030 9.00 62 4800 31
## 154 2bbl 3.05 3.030 9.00 62 4800 31
## 155 2bbl 3.05 3.030 9.00 62 4800 27
## 156 2bbl 3.05 3.030 9.00 62 4800 27
## 157 2bbl 3.19 3.030 9.00 70 4800 30
## 158 2bbl 3.19 3.030 9.00 70 4800 30
## 159 idi 3.27 3.350 22.50 56 4500 34
## 160 idi 3.27 3.350 22.50 56 4500 38
## 161 2bbl 3.19 3.030 9.00 70 4800 38
## 162 2bbl 3.19 3.030 9.00 70 4800 28
## 163 2bbl 3.19 3.030 9.00 70 4800 28
## 164 2bbl 3.19 3.030 9.00 70 4800 29
## 165 2bbl 3.19 3.030 9.00 70 4800 29
## 166 mpfi 3.24 3.080 9.40 112 6600 26
## 167 mpfi 3.24 3.080 9.40 112 6600 26
## 168 mpfi 3.62 3.500 9.30 116 4800 24
## 169 mpfi 3.62 3.500 9.30 116 4800 24
## 170 mpfi 3.62 3.500 9.30 116 4800 24
## 171 mpfi 3.62 3.500 9.30 116 4800 24
## 172 mpfi 3.62 3.500 9.30 116 4800 24
## 173 mpfi 3.62 3.500 9.30 116 4800 24
## 174 mpfi 3.31 3.540 8.70 92 4200 29
## 175 idi 3.27 3.350 22.50 73 4500 30
## 176 mpfi 3.31 3.540 8.70 92 4200 27
## 177 mpfi 3.31 3.540 8.70 92 4200 27
## 178 mpfi 3.31 3.540 8.70 92 4200 27
## 179 mpfi 3.27 3.350 9.30 161 5200 20
## 180 mpfi 3.27 3.350 9.30 161 5200 19
## 181 mpfi 3.27 3.350 9.20 156 5200 20
## 182 mpfi 3.27 3.350 9.20 156 5200 19
## 183 idi 3.01 3.400 23.00 52 4800 37
## 184 mpfi 3.19 3.400 9.00 85 5250 27
## 185 idi 3.01 3.400 23.00 52 4800 37
## 186 mpfi 3.19 3.400 9.00 85 5250 27
## 187 mpfi 3.19 3.400 9.00 85 5250 27
## 188 idi 3.01 3.400 23.00 68 4500 37
## 189 mpfi 3.19 3.400 10.00 100 5500 26
## 190 mpfi 3.19 3.400 8.50 90 5500 24
## 191 mpfi 3.19 3.400 8.50 90 5500 24
## 192 mpfi 3.19 3.400 8.50 110 5500 19
## 193 idi 3.01 3.400 23.00 68 4500 33
## 194 mpfi 3.19 3.400 9.00 88 5500 25
## 195 mpfi 3.78 3.150 9.50 114 5400 23
## 196 mpfi 3.78 3.150 9.50 114 5400 23
## 197 mpfi 3.78 3.150 9.50 114 5400 24
## 198 mpfi 3.78 3.150 9.50 114 5400 24
## 199 mpfi 3.62 3.150 7.50 162 5100 17
## 200 mpfi 3.62 3.150 7.50 162 5100 17
## 201 mpfi 3.78 3.150 9.50 114 5400 23
## 202 mpfi 3.78 3.150 8.70 160 5300 19
## 203 mpfi 3.58 2.870 8.80 134 5500 18
## 204 idi 3.01 3.400 23.00 106 4800 26
## 205 mpfi 3.78 3.150 9.50 114 5400 19
## highwaympg price
## 1 27 13495.00
## 2 27 16500.00
## 3 26 16500.00
## 4 30 13950.00
## 5 22 17450.00
## 6 25 15250.00
## 7 25 17710.00
## 8 25 18920.00
## 9 20 23875.00
## 10 22 17859.17
## 11 29 16430.00
## 12 29 16925.00
## 13 28 20970.00
## 14 28 21105.00
## 15 25 24565.00
## 16 22 30760.00
## 17 22 41315.00
## 18 20 36880.00
## 19 53 5151.00
## 20 43 6295.00
## 21 43 6575.00
## 22 41 5572.00
## 23 38 6377.00
## 24 30 7957.00
## 25 38 6229.00
## 26 38 6692.00
## 27 38 7609.00
## 28 30 8558.00
## 29 30 8921.00
## 30 24 12964.00
## 31 54 6479.00
## 32 38 6855.00
## 33 42 5399.00
## 34 34 6529.00
## 35 34 7129.00
## 36 34 7295.00
## 37 34 7295.00
## 38 33 7895.00
## 39 33 9095.00
## 40 33 8845.00
## 41 33 10295.00
## 42 28 12945.00
## 43 31 10345.00
## 44 29 6785.00
## 45 43 8916.50
## 46 43 8916.50
## 47 29 11048.00
## 48 19 32250.00
## 49 19 35550.00
## 50 17 36000.00
## 51 31 5195.00
## 52 38 6095.00
## 53 38 6795.00
## 54 38 6695.00
## 55 38 7395.00
## 56 23 10945.00
## 57 23 11845.00
## 58 23 13645.00
## 59 23 15645.00
## 60 32 8845.00
## 61 32 8495.00
## 62 32 10595.00
## 63 32 10245.00
## 64 42 10795.00
## 65 32 11245.00
## 66 27 18280.00
## 67 39 18344.00
## 68 25 25552.00
## 69 25 28248.00
## 70 25 28176.00
## 71 25 31600.00
## 72 18 34184.00
## 73 18 35056.00
## 74 16 40960.00
## 75 16 45400.00
## 76 24 16503.00
## 77 41 5389.00
## 78 38 6189.00
## 79 38 6669.00
## 80 30 7689.00
## 81 30 9959.00
## 82 32 8499.00
## 83 24 12629.00
## 84 24 14869.00
## 85 24 14489.00
## 86 32 6989.00
## 87 32 8189.00
## 88 30 9279.00
## 89 30 9279.00
## 90 37 5499.00
## 91 50 7099.00
## 92 37 6649.00
## 93 37 6849.00
## 94 37 7349.00
## 95 37 7299.00
## 96 37 7799.00
## 97 37 7499.00
## 98 37 7999.00
## 99 37 8249.00
## 100 34 8949.00
## 101 34 9549.00
## 102 22 13499.00
## 103 22 14399.00
## 104 25 13499.00
## 105 25 17199.00
## 106 23 19699.00
## 107 25 18399.00
## 108 24 11900.00
## 109 33 13200.00
## 110 24 12440.00
## 111 25 13860.00
## 112 24 15580.00
## 113 33 16900.00
## 114 24 16695.00
## 115 25 17075.00
## 116 24 16630.00
## 117 33 17950.00
## 118 24 18150.00
## 119 41 5572.00
## 120 30 7957.00
## 121 38 6229.00
## 122 38 6692.00
## 123 38 7609.00
## 124 30 8921.00
## 125 24 12764.00
## 126 27 22018.00
## 127 25 32528.00
## 128 25 34028.00
## 129 25 37028.00
## 130 28 31400.50
## 131 31 9295.00
## 132 31 9895.00
## 133 28 11850.00
## 134 28 12170.00
## 135 28 15040.00
## 136 28 15510.00
## 137 26 18150.00
## 138 26 18620.00
## 139 36 5118.00
## 140 31 7053.00
## 141 31 7603.00
## 142 37 7126.00
## 143 33 7775.00
## 144 32 9960.00
## 145 25 9233.00
## 146 29 11259.00
## 147 32 7463.00
## 148 31 10198.00
## 149 29 8013.00
## 150 23 11694.00
## 151 39 5348.00
## 152 38 6338.00
## 153 38 6488.00
## 154 37 6918.00
## 155 32 7898.00
## 156 32 8778.00
## 157 37 6938.00
## 158 37 7198.00
## 159 36 7898.00
## 160 47 7788.00
## 161 47 7738.00
## 162 34 8358.00
## 163 34 9258.00
## 164 34 8058.00
## 165 34 8238.00
## 166 29 9298.00
## 167 29 9538.00
## 168 30 8449.00
## 169 30 9639.00
## 170 30 9989.00
## 171 30 11199.00
## 172 30 11549.00
## 173 30 17669.00
## 174 34 8948.00
## 175 33 10698.00
## 176 32 9988.00
## 177 32 10898.00
## 178 32 11248.00
## 179 24 16558.00
## 180 24 15998.00
## 181 24 15690.00
## 182 24 15750.00
## 183 46 7775.00
## 184 34 7975.00
## 185 46 7995.00
## 186 34 8195.00
## 187 34 8495.00
## 188 42 9495.00
## 189 32 9995.00
## 190 29 11595.00
## 191 29 9980.00
## 192 24 13295.00
## 193 38 13845.00
## 194 31 12290.00
## 195 28 12940.00
## 196 28 13415.00
## 197 28 15985.00
## 198 28 16515.00
## 199 22 18420.00
## 200 22 18950.00
## 201 28 16845.00
## 202 25 19045.00
## 203 23 21485.00
## 204 27 22470.00
## 205 25 22625.00
y <- datalat$price
x1 <- datalat$highwaympg
x2 <- datalat$boreratio
x3 <- datalat$horsepower
x4 <- datalat$citympg
x0<-rep(1, dim(datalat)[1])
x0
## [1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
## [38] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
## [75] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
## [112] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
## [149] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
## [186] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
x1<- datalat$highwaympg
x1
## [1] 27 27 26 30 22 25 25 25 20 22 29 29 28 28 25 22 22 20 53 43 43 41 38 30 38
## [26] 38 38 30 30 24 54 38 42 34 34 34 34 33 33 33 33 28 31 29 43 43 29 19 19 17
## [51] 31 38 38 38 38 23 23 23 23 32 32 32 32 42 32 27 39 25 25 25 25 18 18 16 16
## [76] 24 41 38 38 30 30 32 24 24 24 32 32 30 30 37 50 37 37 37 37 37 37 37 37 34
## [101] 34 22 22 25 25 23 25 24 33 24 25 24 33 24 25 24 33 24 41 30 38 38 38 30 24
## [126] 27 25 25 25 28 31 31 28 28 28 28 26 26 36 31 31 37 33 32 25 29 32 31 29 23
## [151] 39 38 38 37 32 32 37 37 36 47 47 34 34 34 34 29 29 30 30 30 30 30 30 34 33
## [176] 32 32 32 24 24 24 24 46 34 46 34 34 42 32 29 29 24 38 31 28 28 28 28 22 22
## [201] 28 25 23 27 25
x2<-datalat$boreratio
x2
## [1] 3.47 3.47 2.68 3.19 3.19 3.19 3.19 3.19 3.13 3.13 3.50 3.50 3.31 3.31 3.31
## [16] 3.62 3.62 3.62 2.91 3.03 3.03 2.97 2.97 3.03 2.97 2.97 2.97 3.03 3.34 3.60
## [31] 2.91 2.91 2.91 2.91 2.91 2.91 2.92 3.15 3.15 3.15 3.15 3.15 3.15 3.31 3.03
## [46] 3.03 3.43 3.63 3.63 3.54 3.03 3.03 3.03 3.03 3.08 3.33 3.33 3.33 3.33 3.39
## [61] 3.39 3.39 3.39 3.39 3.39 3.76 3.43 3.58 3.58 3.58 3.58 3.46 3.46 3.80 3.80
## [76] 3.78 2.97 2.97 2.97 3.03 3.17 3.35 3.58 3.59 3.59 3.35 3.35 3.17 3.17 3.15
## [91] 2.99 3.15 3.15 3.15 3.15 3.15 3.15 3.15 3.15 3.33 3.33 3.43 3.43 3.43 3.43
## [106] 3.43 3.43 3.46 3.70 3.46 3.70 3.46 3.70 3.46 3.70 3.46 3.70 3.61 2.97 3.03
## [121] 2.97 2.97 2.97 3.35 3.59 3.94 3.74 3.74 3.74 3.94 3.46 3.46 3.54 3.54 2.54
## [136] 3.54 3.54 3.54 3.62 3.62 3.62 3.62 3.62 3.62 3.62 3.62 3.62 3.62 3.62 3.62
## [151] 3.05 3.05 3.05 3.05 3.05 3.05 3.19 3.19 3.27 3.27 3.19 3.19 3.19 3.19 3.19
## [166] 3.24 3.24 3.62 3.62 3.62 3.62 3.62 3.62 3.31 3.27 3.31 3.31 3.31 3.27 3.27
## [181] 3.27 3.27 3.01 3.19 3.01 3.19 3.19 3.01 3.19 3.19 3.19 3.19 3.01 3.19 3.78
## [196] 3.78 3.78 3.78 3.62 3.62 3.78 3.78 3.58 3.01 3.78
x3<-datalat$horsepower
x3
## [1] 111 111 154 102 115 110 110 110 140 160 101 101 121 121 121 182 182 182
## [19] 48 70 70 68 68 102 68 68 68 102 88 145 58 76 60 76 76 76
## [37] 76 86 86 86 86 101 100 78 70 70 90 176 176 262 68 68 68 68
## [55] 68 101 101 101 135 84 84 84 84 64 84 120 72 123 123 123 123 155
## [73] 155 184 184 175 68 68 68 102 116 88 145 145 145 88 88 116 116 69
## [91] 55 69 69 69 69 69 69 69 69 97 97 152 152 152 160 200 160 97
## [109] 95 97 95 95 95 95 95 97 95 142 68 102 68 68 68 88 145 143
## [127] 207 207 207 288 90 90 110 110 110 110 160 160 69 73 73 82 82 94
## [145] 82 111 82 94 82 111 62 62 62 62 62 62 70 70 56 56 70 70
## [163] 70 70 70 112 112 116 116 116 116 116 116 92 73 92 92 92 161 161
## [181] 156 156 52 85 52 85 85 68 100 90 90 110 68 88 114 114 114 114
## [199] 162 162 114 160 134 106 114
x4 <- datalat$citympg
x4
## [1] 21 21 19 24 18 19 19 19 17 16 23 23 21 21 20 16 16 15 47 38 38 37 31 24 31
## [26] 31 31 24 24 19 49 31 38 30 30 30 30 27 27 27 27 24 25 24 38 38 24 15 15 13
## [51] 30 31 31 31 31 17 17 17 16 26 26 26 26 36 26 19 31 22 22 22 22 16 16 14 14
## [76] 19 37 31 31 24 23 25 19 19 19 25 25 23 23 31 45 31 31 31 31 31 31 31 31 27
## [101] 27 17 17 19 19 17 19 19 28 19 25 19 28 19 25 19 28 18 37 24 31 31 31 24 19
## [126] 19 17 17 17 17 23 23 21 21 21 21 19 19 31 26 26 32 28 26 24 24 28 25 23 23
## [151] 35 31 31 31 27 27 30 30 34 38 38 28 28 29 29 26 26 24 24 24 24 24 24 29 30
## [176] 27 27 27 20 19 20 19 37 27 37 27 27 37 26 24 24 19 33 25 23 23 24 24 17 17
## [201] 23 19 18 26 19
X<-cbind(x0, x1, x2, x3, x4)
X
## x0 x1 x2 x3 x4
## [1,] 1 27 3.47 111 21
## [2,] 1 27 3.47 111 21
## [3,] 1 26 2.68 154 19
## [4,] 1 30 3.19 102 24
## [5,] 1 22 3.19 115 18
## [6,] 1 25 3.19 110 19
## [7,] 1 25 3.19 110 19
## [8,] 1 25 3.19 110 19
## [9,] 1 20 3.13 140 17
## [10,] 1 22 3.13 160 16
## [11,] 1 29 3.50 101 23
## [12,] 1 29 3.50 101 23
## [13,] 1 28 3.31 121 21
## [14,] 1 28 3.31 121 21
## [15,] 1 25 3.31 121 20
## [16,] 1 22 3.62 182 16
## [17,] 1 22 3.62 182 16
## [18,] 1 20 3.62 182 15
## [19,] 1 53 2.91 48 47
## [20,] 1 43 3.03 70 38
## [21,] 1 43 3.03 70 38
## [22,] 1 41 2.97 68 37
## [23,] 1 38 2.97 68 31
## [24,] 1 30 3.03 102 24
## [25,] 1 38 2.97 68 31
## [26,] 1 38 2.97 68 31
## [27,] 1 38 2.97 68 31
## [28,] 1 30 3.03 102 24
## [29,] 1 30 3.34 88 24
## [30,] 1 24 3.60 145 19
## [31,] 1 54 2.91 58 49
## [32,] 1 38 2.91 76 31
## [33,] 1 42 2.91 60 38
## [34,] 1 34 2.91 76 30
## [35,] 1 34 2.91 76 30
## [36,] 1 34 2.91 76 30
## [37,] 1 34 2.92 76 30
## [38,] 1 33 3.15 86 27
## [39,] 1 33 3.15 86 27
## [40,] 1 33 3.15 86 27
## [41,] 1 33 3.15 86 27
## [42,] 1 28 3.15 101 24
## [43,] 1 31 3.15 100 25
## [44,] 1 29 3.31 78 24
## [45,] 1 43 3.03 70 38
## [46,] 1 43 3.03 70 38
## [47,] 1 29 3.43 90 24
## [48,] 1 19 3.63 176 15
## [49,] 1 19 3.63 176 15
## [50,] 1 17 3.54 262 13
## [51,] 1 31 3.03 68 30
## [52,] 1 38 3.03 68 31
## [53,] 1 38 3.03 68 31
## [54,] 1 38 3.03 68 31
## [55,] 1 38 3.08 68 31
## [56,] 1 23 3.33 101 17
## [57,] 1 23 3.33 101 17
## [58,] 1 23 3.33 101 17
## [59,] 1 23 3.33 135 16
## [60,] 1 32 3.39 84 26
## [61,] 1 32 3.39 84 26
## [62,] 1 32 3.39 84 26
## [63,] 1 32 3.39 84 26
## [64,] 1 42 3.39 64 36
## [65,] 1 32 3.39 84 26
## [66,] 1 27 3.76 120 19
## [67,] 1 39 3.43 72 31
## [68,] 1 25 3.58 123 22
## [69,] 1 25 3.58 123 22
## [70,] 1 25 3.58 123 22
## [71,] 1 25 3.58 123 22
## [72,] 1 18 3.46 155 16
## [73,] 1 18 3.46 155 16
## [74,] 1 16 3.80 184 14
## [75,] 1 16 3.80 184 14
## [76,] 1 24 3.78 175 19
## [77,] 1 41 2.97 68 37
## [78,] 1 38 2.97 68 31
## [79,] 1 38 2.97 68 31
## [80,] 1 30 3.03 102 24
## [81,] 1 30 3.17 116 23
## [82,] 1 32 3.35 88 25
## [83,] 1 24 3.58 145 19
## [84,] 1 24 3.59 145 19
## [85,] 1 24 3.59 145 19
## [86,] 1 32 3.35 88 25
## [87,] 1 32 3.35 88 25
## [88,] 1 30 3.17 116 23
## [89,] 1 30 3.17 116 23
## [90,] 1 37 3.15 69 31
## [91,] 1 50 2.99 55 45
## [92,] 1 37 3.15 69 31
## [93,] 1 37 3.15 69 31
## [94,] 1 37 3.15 69 31
## [95,] 1 37 3.15 69 31
## [96,] 1 37 3.15 69 31
## [97,] 1 37 3.15 69 31
## [98,] 1 37 3.15 69 31
## [99,] 1 37 3.15 69 31
## [100,] 1 34 3.33 97 27
## [101,] 1 34 3.33 97 27
## [102,] 1 22 3.43 152 17
## [103,] 1 22 3.43 152 17
## [104,] 1 25 3.43 152 19
## [105,] 1 25 3.43 160 19
## [106,] 1 23 3.43 200 17
## [107,] 1 25 3.43 160 19
## [108,] 1 24 3.46 97 19
## [109,] 1 33 3.70 95 28
## [110,] 1 24 3.46 97 19
## [111,] 1 25 3.70 95 25
## [112,] 1 24 3.46 95 19
## [113,] 1 33 3.70 95 28
## [114,] 1 24 3.46 95 19
## [115,] 1 25 3.70 95 25
## [116,] 1 24 3.46 97 19
## [117,] 1 33 3.70 95 28
## [118,] 1 24 3.61 142 18
## [119,] 1 41 2.97 68 37
## [120,] 1 30 3.03 102 24
## [121,] 1 38 2.97 68 31
## [122,] 1 38 2.97 68 31
## [123,] 1 38 2.97 68 31
## [124,] 1 30 3.35 88 24
## [125,] 1 24 3.59 145 19
## [126,] 1 27 3.94 143 19
## [127,] 1 25 3.74 207 17
## [128,] 1 25 3.74 207 17
## [129,] 1 25 3.74 207 17
## [130,] 1 28 3.94 288 17
## [131,] 1 31 3.46 90 23
## [132,] 1 31 3.46 90 23
## [133,] 1 28 3.54 110 21
## [134,] 1 28 3.54 110 21
## [135,] 1 28 2.54 110 21
## [136,] 1 28 3.54 110 21
## [137,] 1 26 3.54 160 19
## [138,] 1 26 3.54 160 19
## [139,] 1 36 3.62 69 31
## [140,] 1 31 3.62 73 26
## [141,] 1 31 3.62 73 26
## [142,] 1 37 3.62 82 32
## [143,] 1 33 3.62 82 28
## [144,] 1 32 3.62 94 26
## [145,] 1 25 3.62 82 24
## [146,] 1 29 3.62 111 24
## [147,] 1 32 3.62 82 28
## [148,] 1 31 3.62 94 25
## [149,] 1 29 3.62 82 23
## [150,] 1 23 3.62 111 23
## [151,] 1 39 3.05 62 35
## [152,] 1 38 3.05 62 31
## [153,] 1 38 3.05 62 31
## [154,] 1 37 3.05 62 31
## [155,] 1 32 3.05 62 27
## [156,] 1 32 3.05 62 27
## [157,] 1 37 3.19 70 30
## [158,] 1 37 3.19 70 30
## [159,] 1 36 3.27 56 34
## [160,] 1 47 3.27 56 38
## [161,] 1 47 3.19 70 38
## [162,] 1 34 3.19 70 28
## [163,] 1 34 3.19 70 28
## [164,] 1 34 3.19 70 29
## [165,] 1 34 3.19 70 29
## [166,] 1 29 3.24 112 26
## [167,] 1 29 3.24 112 26
## [168,] 1 30 3.62 116 24
## [169,] 1 30 3.62 116 24
## [170,] 1 30 3.62 116 24
## [171,] 1 30 3.62 116 24
## [172,] 1 30 3.62 116 24
## [173,] 1 30 3.62 116 24
## [174,] 1 34 3.31 92 29
## [175,] 1 33 3.27 73 30
## [176,] 1 32 3.31 92 27
## [177,] 1 32 3.31 92 27
## [178,] 1 32 3.31 92 27
## [179,] 1 24 3.27 161 20
## [180,] 1 24 3.27 161 19
## [181,] 1 24 3.27 156 20
## [182,] 1 24 3.27 156 19
## [183,] 1 46 3.01 52 37
## [184,] 1 34 3.19 85 27
## [185,] 1 46 3.01 52 37
## [186,] 1 34 3.19 85 27
## [187,] 1 34 3.19 85 27
## [188,] 1 42 3.01 68 37
## [189,] 1 32 3.19 100 26
## [190,] 1 29 3.19 90 24
## [191,] 1 29 3.19 90 24
## [192,] 1 24 3.19 110 19
## [193,] 1 38 3.01 68 33
## [194,] 1 31 3.19 88 25
## [195,] 1 28 3.78 114 23
## [196,] 1 28 3.78 114 23
## [197,] 1 28 3.78 114 24
## [198,] 1 28 3.78 114 24
## [199,] 1 22 3.62 162 17
## [200,] 1 22 3.62 162 17
## [201,] 1 28 3.78 114 23
## [202,] 1 25 3.78 160 19
## [203,] 1 23 3.58 134 18
## [204,] 1 27 3.01 106 26
## [205,] 1 25 3.78 114 19
beta1=solve(t(X)%*%X)%*%t(X)%*%y
beta1
## [,1]
## x0 -5990.5422
## x1 -722.5191
## x2 2954.9783
## x3 142.8725
## x4 664.9921
sehingga model regresi linear berganda yang diperoleh adalah yi=19.34429−0.01923X1i−0.031229X2i+2.714975X3i
yhat <- X%*%beta1
head(yhat)
## [,1]
## [1,] 14578.89
## [2,] 14578.89
## [3,] 17780.51
## [4,] 12293.07
## [5,] 15940.61
## [6,] 13723.68
res <- y-yhat
head(res)
## [,1]
## [1,] -1083.894
## [2,] 1921.106
## [3,] -1280.512
## [4,] 1656.933
## [5,] 1509.391
## [6,] 1526.318
##find n and rank, r
r <- qr(X)$rank
r
## [1] 5
## [1] 4
n <- dim(X)[1]
n
## [1] 205
yup = y-(X%*%beta1)
yupt = t(yup)
ragam = (yupt%*%yup)/(n-5)
ragam
## [,1]
## [1,] 20312127
library(MASS)
## Warning: package 'MASS' was built under R version 4.2.3
var.beta <- as.numeric(t(res)%*%res/(n - r))*ginv(t(X)%*%X)
var.beta
## [,1] [,2] [,3] [,4] [,5]
## [1,] 38882467.34 -269548.7654 -7773667.850 -23583.0699 -85434.341
## [2,] -269548.77 37771.6614 33018.681 -212.5426 -38850.503
## [3,] -7773667.85 33018.6807 2192363.636 -4544.2262 -2720.176
## [4,] -23583.07 -212.5426 -4544.226 188.0009 1018.104
## [5,] -85434.34 -38850.5027 -2720.176 1018.1037 46915.667
alpha <- 0.10 #alpha 5%
t <-qt(1 - alpha/2, n - r) #nilai t tabel
conf.int <- round(cbind(beta1 - t*sqrt(diag(var.beta)), beta1 + t*sqrt(diag(var.beta))), 5) #5 itu artinya 5 angka dibelakang koma
conf.int
## [,1] [,2]
## x0 -16294.8899 4313.8055
## x1 -1043.6829 -401.3552
## x2 508.1703 5401.7863
## x3 120.2143 165.5306
## x4 307.0585 1022.9258
#fit model with standard R lm package
r.fit <- lm(y ~ x1 + x2 + x3 + x4)
#show confidence intervals in R
round(confint(r.fit, names(r.fit$coef), level = 0.90), 5)
## 5 % 95 %
## (Intercept) -16294.8899 4313.8055
## x1 -1043.6829 -401.3552
## x2 508.1703 5401.7863
## x3 120.2143 165.5306
## x4 307.0585 1022.9258
plot(x1, y, main= "Hubungan Highwaympg and Price",
xlab = "Highwaympg", ylab = "Price")
plot(x2, y, main= "Hubungan Boreratio and Price",
xlab = "Boreratio", ylab = "Price")
plot(x3, y, main= "Hubungan Horsepower and Price",
xlab = "Horsepower", ylab = "Price")
plot(x4, y, main= "Hubungan Citympg and Price",
xlab = "Citympg", ylab = "Price")
library(caret)
## Warning: package 'caret' was built under R version 4.2.3
## Loading required package: ggplot2
## Warning: package 'ggplot2' was built under R version 4.2.3
## Loading required package: lattice
poc <- varImp(r.fit)
poc
## Overall
## x1 3.717631
## x2 1.995713
## x3 10.420020
## x4 3.070136
Dari hasil tersebut, terlihat bahwa x3 (Horsepower) memiliki nilai yang paling besar, artinya x3 merupakan variabel important yaitu variabel yang paling mempengaruhi y (price).