Professional Documents
Culture Documents
JJ
1. Investigue como importar archivos de Excel a SAS e importe el archivo de datos
autos.xls
DATAFILE='/home/u63343027/tar2/autos.xls'
DBMS=XLS
REPLACE;
RUN;
RUN;
15 24 113 95 2372 15 70 3 4
16 22 198 95 2833 16 70 1 6
17 18 199 97 2774 16 70 1 6
18 21 200 85 2587 16 70 1 6
19 27 97 88 2130 15 70 3 4
20 26 97 46 1835 21 70 2 4
21 25 110 87 2672 18 70 2 4
22 24 107 90 2430 15 70 2 4
23 25 104 95 2375 18 70 2 4
25 21 199 90 2648 15 70 1 6
29 9 4 93 732 9 0 . .
30 27 97 88 2130 15 71 3 4
Obs Miles Engine Horse Weight Acceleration Model Country Number of
Per Size powers in (0 to 60) Year of Origin Cylinders
Gallon (cube pounds
in)
31 28 140 90 2264 16 71 1 4
32 25 113 95 2228 14 71 3 4
33 25 98 . 2046 19 71 1 4
37 19 250 88 3302 16 71 1 6
47 22 140 72 2408 19 71 1 4
49 18 250 88 3139 15 71 1 6
50 23 122 86 2220 14 71 1 4
Obs Miles Engine Horse Weight Acceleration Model Country Number of
Per Size powers in (0 to 60) Year of Origin Cylinders
Gallon (cube pounds
in)
51 28 116 90 2123 14 71 2 4
52 30 79 70 2074 20 71 2 4
53 30 88 76 2065 15 71 2 4
54 31 71 65 1773 19 71 3 4
55 35 72 69 1613 18 71 3 4
56 27 97 60 1834 19 71 2 4
57 26 91 70 1955 21 71 1 4
58 24 113 95 2278 16 72 3 4
59 25 98 80 2126 17 72 1 4
60 23 97 54 2254 24 72 2 4
61 20 140 90 2408 20 72 1 4
62 21 122 86 2226 17 72 1 4
72 19 70 97 2330 14 72 3 3
78 22 121 76 2511 18 72 2 4
79 21 120 87 2979 20 72 2 4
80 26 96 69 2189 18 72 2 4
81 22 122 86 2395 16 72 1 4
82 28 97 92 2288 17 72 3 4
83 23 120 97 2506 15 72 3 4
84 28 98 80 2164 15 72 1 4
85 27 97 88 2100 17 72 3 4
2.Genere una variable rapidez que clasifique a la variable Acelerattion en dos categorías,
a criterio personal los límites de las categorías.
3.En SAS, añadir los datos para tres vehículos más contenidos en la siguiente tabla: