Get the auto.dta file
/* this next step is a kludge */
/* options SSLCALISTLOC="/usr/lib64/R/library/RCurl/CurlSSL/cacert.pem";
proc http method="get" out=auto url="http://www.stata-press.com/data/r9/auto.dta";
run;*/
x wget -O auto.dta "http://www.stata-press.com/data/r9/auto.dta" 2>/dev/null 1>&2;
Create the codebook
filename auto "auto.dta";
proc import datafile=auto out=auto dbms=dta;
run;
proc contents;
proc means;
run;
WORK.AUTO
|
74
|
DATA
|
12
|
V9
|
0
|
10/05/2018 10:28:11
|
112
|
10/05/2018 10:28:11
|
0
|
|
NO
|
|
NO
|
|
|
SOLARIS_X86_64, LINUX_X86_64, ALPHA_TRU64, LINUX_IA64
|
|
latin1 Western (ISO)
|
|
65536
|
1
|
1
|
584
|
74
|
0
|
/tmp/SAS_workDAA600001F1E_zotique2/auto.sas7bdat
|
9.0401M0
|
Linux
|
1963626
|
rw-r–r–
|
vilhuber
|
131072
|
displacement
|
Num
|
8
|
|
|
Displacement (cu. in.)
|
foreign
|
Num
|
8
|
FOREIGN.
|
|
Car type
|
gear_ratio
|
Num
|
8
|
6.2
|
|
Gear Ratio
|
headroom
|
Num
|
8
|
6.1
|
|
Headroom (in.)
|
length
|
Num
|
8
|
|
|
Length (in.)
|
make
|
Char
|
18
|
$18.
|
$18.
|
Make and Model
|
mpg
|
Num
|
8
|
|
|
Mileage (mpg)
|
price
|
Num
|
8
|
|
|
Price
|
rep78
|
Num
|
8
|
|
|
Repair Record 1978
|
trunk
|
Num
|
8
|
|
|
Trunk space (cu. ft.)
|
turn
|
Num
|
8
|
|
|
Turn Circle (ft.)
|
weight
|
Num
|
8
|
|
|
Weight (lbs.)
|
price
|
mpg
|
rep78
|
headroom
|
trunk
|
weight
|
length
|
turn
|
displacement
|
gear_ratio
|
foreign
|
|
Price
|
Mileage (mpg)
|
Repair Record 1978
|
Headroom (in.)
|
Trunk space (cu. ft.)
|
Weight (lbs.)
|
Length (in.)
|
Turn Circle (ft.)
|
Displacement (cu. in.)
|
Gear Ratio
|
Car type
|
|
74
|
74
|
69
|
74
|
74
|
74
|
74
|
74
|
74
|
74
|
74
|
|
6165.26
|
21.2972973
|
3.4057971
|
2.9932432
|
13.7567568
|
3019.46
|
187.9324324
|
39.6486486
|
197.2972973
|
3.0148649
|
0.2972973
|
|
2949.50
|
5.7855032
|
0.9899323
|
0.8459948
|
4.2774042
|
777.1935671
|
22.2663399
|
4.3993537
|
91.8372190
|
0.4562871
|
0.4601885
|
|
3291.00
|
12.0000000
|
1.0000000
|
1.5000000
|
5.0000000
|
1760.00
|
142.0000000
|
31.0000000
|
79.0000000
|
2.1900001
|
0
|
|
15906.00
|
41.0000000
|
5.0000000
|
5.0000000
|
23.0000000
|
4840.00
|
233.0000000
|
51.0000000
|
425.0000000
|
3.8900001
|
1.0000000
|
|