14.10.2013 Views

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

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Proc GLM data=dataset name;<br />

Class Variables;<br />

Model Dependent-Variable = Independent-Variables;<br />

Means Variables;<br />

Freq Variable;<br />

Run;<br />

Example <strong>of</strong> Proc GLM procedure to Generate Mean VMT <strong>for</strong> Each Body Type Group<br />

Proc GLM data=VIUS;<br />

Class BODTYP;<br />

Model ANNMIL = BODTYP;<br />

Means BODTYP;<br />

Freq EXPANF;<br />

Run;<br />

III. Examples <strong>of</strong> temporary dataset SAS program<br />

This temporary SAS program <strong>and</strong> dataset is used to estimate <strong>the</strong> VMT by commodity hauled.<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<br />

TYPSER 66-66 PNOLOD 67-69 PASSEN 70-72 LVANML 73-75 FARMPD 76-78<br />

PRFOOD 79-81 ANFEED 82-84 MNPRO 85-87 BLDGMA 88-90 LOGPRO 91-93 LUMBER 94-96<br />

PAPER 97-99 CHEM 100-102 PETROL 103-105 PLASTK 106-108 PRIMTL 109-111 FABMTL<br />

112-114<br />

MACHNE 115-117 TEQUIP 118-120 FURN 121-123 GLASS 124-126 TEXTIL 127-129 MSCMFG<br />

130-132<br />

MOVING 133-135 TOOLS 136-138 MXDCAR 139-141 REFUSE 142-144 INDWTR 145-147<br />

HAZEPA 148-150<br />

HAZNEPA 151-153 RECYCLE 154-156 OTHPROD 157-159 FLTSZE 160-162 AXLRE 162-163<br />

PRNPRO 164-165<br />

WANNMIL 166-178 VG 179-180 VBG 181-182 REGION $ 183-185 MAXWT 186-191;<br />

EXPANF=EXPANF/1000;<br />

if annmil=. <strong>the</strong>n annmil=0;<br />

if pnolod=. <strong>the</strong>n pnolod=0;<br />

if passen=. <strong>the</strong>n passen=0;<br />

if lvanml=. <strong>the</strong>n lvanml=0;<br />

if farmpd=. <strong>the</strong>n farmpd=0;<br />

if prfood=. <strong>the</strong>n prfood=0;<br />

if anfeed=. <strong>the</strong>n anfeed=0;<br />

if mnpro=. <strong>the</strong>n mnpro=0;<br />

if bldgma=. <strong>the</strong>n bldgma=0;<br />

if logpro=. <strong>the</strong>n logpro=0;<br />

if lumber=. <strong>the</strong>n lumber=0;<br />

if paper=. <strong>the</strong>n paper=0;<br />

if chem=. <strong>the</strong>n chem=0;<br />

if petrol=. <strong>the</strong>n petrol=0;<br />

if plastk=. <strong>the</strong>n plastk=0;<br />

H - 17

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!