1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
55
56 /********************* cars1.sas ***************************/
57 title 'Metric Cars Data';
58 title2 'Basic Descriptive Statistics';
59
60 data auto;
61 infile '/folders/myfolders/441s16/Lecture/mcars4b.data.txt';
62 input ID country $ lper100k weight length;
63 mpg = 100/lper100k * 0.6214/0.2642;
64 label Country = 'Location of Head Office'
65 lper100k = 'Litres per 100 kilometers'
66 mpg = 'Miles per Gallon'
67 weight = 'Weight in kg'
68 length = 'Length in meters';
69
NOTE: The infile '/folders/myfolders/441s16/Lecture/mcars4b.data.txt' is:
Filename=/folders/myfolders/441s16/Lecture/mcars4b.data.txt,
Owner Name=root,Group Name=vboxsf,
Access Permission=-rwxrwx---,
Last Modified=31Dec2015:14:20:00,
File Size (bytes)=4100
NOTE: 100 records were read from the infile '/folders/myfolders/441s16/Lecture/mcars4b.data.txt'.
The minimum record length was 40.
The maximum record length was 40.
NOTE: The data set WORK.AUTO has 100 observations and 6 variables.
NOTE: DATA statement used (Total process time):
real time 0.02 seconds
cpu time 0.02 seconds
70 proc freq;
71 tables country;
72
NOTE: There were 100 observations read from the data set WORK.AUTO.
NOTE: PROCEDURE FREQ used (Total process time):
real time 0.06 seconds
cpu time 0.05 seconds
73 proc means;
74 var lper100k mpg weight length;
75
76
77
78 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
90