1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
61
62 /********************* cars1.sas ***************************/
63 title 'Metric Cars Data';
64 title2 'Basic Descriptive Statistics';
65
66 data auto;
67 infile '/folders/myfolders/441s18/Lecture/mcars4b.data.txt';
68 input ID country $ lper100k weight length;
69 mpg = 100/lper100k * 0.6214/0.2642;
70 label Country = 'Location of Head Office'
71 lper100k = 'Litres per 100 kilometers'
72 mpg = 'Miles per Gallon'
73 weight = 'Weight in kg'
74 length = 'Length in meters';
75
NOTE: The infile '/folders/myfolders/441s18/Lecture/mcars4b.data.txt' is:
Filename=/folders/myfolders/441s18/Lecture/mcars4b.data.txt,
Owner Name=root,Group Name=vboxsf,
Access Permission=-rwxrwx---,
Last Modified=December 31, 2015 14:20:00 o'clock,
File Size (bytes)=4100
NOTE: 100 records were read from the infile '/folders/myfolders/441s18/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.01 seconds
76 proc freq;
77 tables country;
78
NOTE: There were 100 observations read from the data set WORK.AUTO.
NOTE: PROCEDURE FREQ used (Total process time):
real time 0.12 seconds
cpu time 0.09 seconds
79 proc means;
80 var lper100k mpg weight length;
81
82
83
84 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
97