Analysis of the Vehicle Inventory and Use Survey for Trucks ... - About
Analysis of the Vehicle Inventory and Use Survey for Trucks ... - About
Analysis of the Vehicle Inventory and Use Survey for Trucks ... - About
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
PRNPRO 164-165 WANNMIL 166-178 VG 179-180 VBG 181-182 REGION $ 183-185 MAXWT 186-191;<br />
CARDS;<br />
RUN;<br />
II. SAS Program to load VIUS97.dat dataset <strong>for</strong> <strong>the</strong> subsequent analyses<br />
DATA VIUS;<br />
INFILE 'C:\SAS\VIUS97.DAT' LRECL=648 MISSOVER;<br />
INPUT FIPST 1-2 EXPANF 3-10 BODTYP 11-12 NAXLE 13-13 LIFTAX 14-14 VEHTYP 15-15<br />
TOTLEN 16-17 PCNTNR 18-20 PPIGY 21-23 WIDTH 24-24 EMPWT 25-30 AVGWT 31-36<br />
ANNMIL 37-42 POBAST 43-45 POFFRD 46-48 PLOCAL 49-51 PSHORT 52-54 PSMED 55-57<br />
PLMED 58-60 PLONG 61-63 OPCALS 64-64 JURISD 65-65 TYPSER 66-66 PNOLOD 67-69<br />
PASSEN 70-72 LVANML 73-75 FARMPD 76-78 PRFOOD 79-81 ANFEED 82-84 MNPRO 85-87<br />
BLDGMA 88-90 LOGPRO 91-93 LUMBER 94-96 PAPER 97-99 CHEM 100-102 PETROL 103-105<br />
PLASTK 106-108 PRIMTL 109-111 FABMTL 112-114 MACHNE 115-117 TEQUIP 118-120<br />
FURN 121-123 GLASS 124-126 TEXTIL 127-129 MSCMFG 130-132 MOVING 133-135 TOOLS<br />
136-138 MXDCAR 139-141 REFUSE 142-144 INDWTR 145-147 HAZEPA 148-150 HAZNEPA<br />
151-153 RECYCLE 154-156 OTHPROD 157-159 FLTSZE 160-162 AXLRE 162-163 PRNPRO<br />
164-165 WANNMIL 166-178 VG 179-180 VBG 181-182 REGION $ 183-185 MAXWT 186-191;<br />
EXPANF=EXPANF/1000;<br />
CARDS;<br />
RUN;<br />
III. SAS Code <strong>Use</strong>d to Create Frequency Tables <strong>and</strong> to Generate Means<br />
Frequency Tables <strong>for</strong> Population<br />
Frequency tables were generated in our analysis to determine <strong>the</strong> number <strong>of</strong> vehicles in a particular category. For<br />
example, a table, which gives <strong>the</strong> number <strong>of</strong> vehicles in <strong>the</strong> nation that, are in each <strong>of</strong> <strong>the</strong> 8 vehicle groups can be<br />
generated by using <strong>the</strong> frequency procedure in SAS.<br />
General Format<br />
Proc freq data=dataset name;<br />
Table Variable1*Variable2*Variable3;<br />
Weight Variable;<br />
Run;<br />
Example <strong>of</strong> SAS Code to Generate Table <strong>of</strong> Number <strong>of</strong> <strong>Vehicle</strong>s in Each <strong>Vehicle</strong> Group <strong>for</strong> Each Region<br />
Proc freq data=Regions;<br />
Table VG*REGION;<br />
Weight EXPANF;<br />
Run;<br />
Frequency Tables <strong>for</strong> Sample<br />
Frequency tables were also derived to determine <strong>the</strong> number <strong>of</strong> data records available <strong>for</strong> a particular category. The<br />
SAS code is similar to <strong>the</strong> previous description; however, <strong>the</strong> ‘Weight EXPANF’ statement, which indicates <strong>the</strong><br />
number <strong>of</strong> vehicles in <strong>the</strong> population that one record represents, is removed. For example, if we wanted to know <strong>the</strong><br />
number <strong>of</strong> records used to derive <strong>the</strong> table <strong>of</strong> <strong>the</strong> number <strong>of</strong> vehicles in <strong>the</strong> nation that are in each <strong>of</strong> <strong>the</strong> 8 vehicle<br />
H - 15