Datasets for P.M.E.Altham, Part IIA INTRODUCTION TO GENERALIZED LINEAR MODELLING IN R (LENT 2000) Worksheet 1. Here is the data-set "weld", with x, y as first, second column respectively. 7.82 3.4 8.00 3.5 7.95 3.3 8.07 3.9 8.08 3.9 8.01 4.1 8.33 4.6 8.34 4.3 8.32 4.5 8.64 4.9 8.61 4.9 8.57 5.1 9.01 5.5 8.97 5.5 9.05 5.6 9.23 5.9 9.24 5.8 9.24 6.1 9.61 6.3 9.60 6.4 9.61 6.2 Worksheet 2. Here is the data-set `mammals', from Weisberg (1985,pp144-5). It is in the Venables and Ripley (1994) library of data-sets. body brain Arctic_fox 3.385 44.50 Owl_monkey 0.480 15.50 Mountain_beaver 1.350 8.10 Cow 465.000 423.00 Grey_wolf 36.330 119.50 Goat 27.660 115.00 Roe_deer 14.830 98.20 Guinea_pig 1.040 5.50 Verbet 4.190 58.00 Chinchilla 0.425 6.40 Ground_squirrel 0.101 4.00 Arctic_ground_squirrel 0.920 5.70 African_giant_pouched_rat 1.000 6.60 Lesser_short-tailed_shrew 0.005 0.14 Star-nosed_mole 0.060 1.00 Nine-banded_armadillo 3.500 10.80 Tree_hyrax 2.000 12.30 N.A._opossum 1.700 6.30 Asian_elephant 2547.000 4603.00 Big_brown_bat 0.023 0.30 Donkey 187.100 419.00 Horse 521.000 655.00 European_hedgehog 0.785 3.50 Patas_monkey 10.000 115.00 Cat 3.300 25.60 Galago 0.200 5.00 Genet 1.410 17.50 Giraffe 529.000 680.00 Gorilla 207.000 406.00 Grey_seal 85.000 325.00 Rock_hyrax-a 0.750 12.30 Human 62.000 1320.00 African_elephant 6654.000 5712.00 Water_opossum 3.500 3.90 Rhesus_monkey 6.800 179.00 Kangaroo 35.000 56.00 Yellow-bellied_marmot 4.050 17.00 Golden_hamster 0.120 1.00 Mouse 0.023 0.40 Little_brown_bat 0.010 0.25 Slow_loris 1.400 12.50 Okapi 250.000 490.00 Rabbit 2.500 12.10 Sheep 55.500 175.00 Jaguar 100.000 157.00 Chimpanzee 52.160 440.00 Baboon 10.550 179.50 Desert_hedgehog 0.550 2.40 Giant_armadillo 60.000 81.00 Rock_hyrax-b 3.600 21.00 Raccoon 4.288 39.20 Rat 0.280 1.90 E.American_mole 0.075 1.20 Mole_rat 0.122 3.00 Musk_shrew 0.048 0.33 Pig 192.000 180.00 Echidna 3.000 25.00 Brazilian_tapir 160.000 169.00 Tenrec 0.900 2.60 Phalanger 1.620 11.40 Tree_shrew 0.104 2.50 Red_fox 4.235 50.40 Here is the data-set `Japanese set the pace for Europe's car makers', from The Independent, August 18, 1999. The 3 columns of numbers are Vehicles produced in 1998, and the Productivity, in terms of vehicle per employee, in 1997, 1998 respectively. veh1998 prod97 prod98 Nissan(UK) 288838 98 105 Volkswagen(Spain) 311136 70 76 GM(Germany) 174807 77 76 Fiat(Italy) 383000 70 73 Toyota(UK) 172342 58 72 SEAT(Spain) 498463 69 69 Renault(France) 385118 61 68 GM(Spain) 445750 67 67 Renault(Spain) 213590 59 64 Honda(UK) 112313 62 64 Ford(UK) 250351 62 61 Fiat(2Italy) 416000 54 61 Ford(Germany) 290444 59 59 Ford(Spain) 296173 57 58 Vauxhall(UK) 154846 39 43 Skoda(CzechR) 287529 33 35 Rover(UK) 281855 33 30 Worksheet 3. Here is the data in the file `potash'. 7.62 8.00 7.93 8.14 8.15 7.87 7.76 7.73 7.74 7.17 7.57 7.80 7.46 7.68 7.21 Worksheet 4. The percentage having equal confidence in both sexes for various occupations 86 85 82 86 Denmark 75 83 75 79 Netherlands 77 70 70 68 France 61 70 66 75 UK 67 66 64 67 Belgium 56 65 69 67 Spain 52 67 65 63 Portugal 57 55 59 64 W. Germany 47 58 60 62 Luxembourg 52 56 61 58 Greece 54 56 55 59 Italy 43 51 50 61 Ireland Here the columns are the occupations bus/train driver, surgeon, barrister, MP. ............................................................................. The Independent, 16 June 1999, under the headline `Tourist get hidden costs warnings' gave the following table, for `How the resorts compared' (costs in pounds) Algarve 8.00 0.50 3.50 3.00 4.00 100.00 CostaDelSol 6.95 1.30 4.10 12.30 4.10 130.85 Majorca 10.25 1.45 5.35 6.15 3.30 122.20 Tenerife 12.30 1.25 4.90 3.70 2.90 130.85 Florida 15.60 1.90 5.05 5.00 2.50 114.00 Tunisia 10.90 1.40 5.45 1.90 2.75 218.10 Cyprus 11.60 1.20 5.95 3.00 3.60 149.45 Turkey 6.50 1.05 6.50 4.90 2.85 263.00 Corfu 5.20 1.05 3.75 4.20 2.50 137.60 Sorrento 7.70 1.40 6.30 8.75 4.75 215.40 Malta 11.20 0.70 4.55 8.00 4.80 87.85 Rhodes 6.30 1.05 5.20 3.15 2.70 261.30 Sicily 13.25 1.75 4.20 7.00 3.85 174.40 Madeira 10.25 0.70 5.10 6.85 6.85 153.70 Here the column headings are, respectively, Three-course meal, Bottle of Beer, Suntan Lotion, Taxi (5km), Film (24 exp), Car Hire (per week). Worksheet 5. Here is the data from bookprices 14.99 12.68 9.00 11.00 15.95 S.Hawking,"A brief history of time" 14.95 17.53 13.60 13.35 15.95 U.Eco,"Foucault's Pendulum" 12.95 14.01 11.60 11.60 13.60 J.Le Carre,"The Russia House" 14.95 12.00 8.45 NA NA J.Archer,"Kane & Abel" 12.95 15.90 15.10 NA 16.00 S.Rushdie,"The Satanic Verses" 12.95 13.40 12.10 11.00 13.60 J.Barnes"History of the world in ..." 17.95 30.01 NA 14.50 22.80 R.Ellman,"Oscar Wilde" 13.99 NA NA 12.50 13.60 J.Updike,"Rabbit at Rest" 9.95 10.50 NA 9.85 NA P.Suskind,"Perfume" 7.95 9.85 5.65 6.95 NA M.Duras,"The Lover" An ubalanced two-way array. Under the headline `Afloat on a sea of alcohol, the booze cruisers bid last farewell to duty-free' The Independent of 28 June, 1999, gives the Table below. `Booze and Fags: the relative cost' 200 Benson & Hedges special filter cigarettes 16.95 16.99 35.99 20.00 NA 1 litre Smirnoff vodka 9.99 10.74 10.39 11.00 10.25 1 litre Gordon's gin 10.25 8.29 10.69 11.35 9.99 5 X 50 gm Golden Virginia 13.95 13.99 38.15 9.65 NA rolling tobacco 24 X 440 cans Stella Artois 11.95 20.80 23.96 9.25 9.67 24 X 440 cans Guinness 15.75 22.95 22.74 11.90 15.83 Here the column headings (ie place of sale) are P$\&$O Stena (on board ship), BAA (airport duty free), Tesco (UK, high street), Eastenders (Calais, cash $\&$ carry), and Wine $\&$ Beer Co (Calais, cash $\&$ carry). Worksheet 6. Here is the dataset "alloyfastener". Load n r 25 50 10 27 70 17 29 100 30 31 60 21 33 40 18 35 85 43 37 90 54 39 50 33 41 80 60 43 65 51 Worksheet 7. nfail temp 2 53 1 57 1 58 1 63 0 66 0 67 0 67 0 67 0 68 0 69 0 70 0 70 1 70 1 70 0 72 0 73 0 75 2 75 0 76 0 76 0 78 0 79 0 81 Worksheet 8. s_ scan() 33 63 157 38 108 159 # nb, blank line r_ scan() 3271 7256 5065 2486 8877 3520 # nb, blank line q() Worksheet 9. behaviour = no yes emo=1 51 3 emo=2 69 11 emo=3 28 22 emo=4 7 13 Worksheet 10. y _ scan() 0 0 3 0 1 1 1 2 2 4 2 8 0 3 4 5 2 2 2 5 4 3 15 12 7 14 6 10 14 8 19 10 7 20 10 19 # nb, blank line Worksheet 11. Worksheet 13. Anscombe's quartet x1 y1 x2 y2 x3 y3 x4 y4 10.0 8.04 10.0 9.14 10.0 7.46 8.0 6.58 8.0 6.95 8.0 8.14 8.0 6.77 8.0 5.76 13.0 7.58 13.0 8.74 13.0 12.74 8.0 7.71 9.0 8.81 9.0 8.77 9.0 7.11 8.0 8.84 11.0 8.33 11.0 9.26 11.0 7.81 8.0 8.47 14.0 9.96 14.0 8.10 14.0 8.84 8.0 7.04 6.0 7.24 6.0 6.13 6.0 6.08 8.0 5.25 4.0 4.26 4.0 3.10 4.0 5.39 19.0 12.50 12.0 10.84 12.0 9.13 12.0 8.15 8.0 5.56 7.0 4.82 7.0 7.26 7.0 6.42 8.0 7.91 5.0 5.68 5.0 4.74 5.0 5.73 8.0 6.89