29.12.2013 Views

Base SAS 9.1.3 Procedures Guide - Acsu Buffalo

Base SAS 9.1.3 Procedures Guide - Acsu Buffalo

Base SAS 9.1.3 Procedures Guide - Acsu Buffalo

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

The COMPARE Procedure 4 ODS Table Names 251<br />

Comparison Results for Observations (Using the TRANSPOSE Option)<br />

The TRANSPOSE option prints the comparison results by observation instead of by<br />

variable. The comparison results precede the observation summary report. By default,<br />

the source of the values for each row of the table is indicated by the following label:<br />

_OBS_1=number-1<br />

_OBS_2=number-2<br />

where number-1 is the number of the observation in the base data set for which the<br />

value of the variable is shown, and number-2 is the number of the observation in the<br />

comparison data set.<br />

Output 9.8 shows the differences in PROCLIB.ONE and PROCLIB.TWO by<br />

observation instead of by variable.<br />

Output 9.8<br />

Partial Output<br />

Comparison Results for Observations<br />

_OBS_1=1 _OBS_2=1:<br />

Variable <strong>Base</strong> Value Compare Diff. % Diff<br />

gr1 85.0 84.00 -1.000000 -1.176471<br />

_OBS_1=2 _OBS_2=2:<br />

Variable <strong>Base</strong> Value Compare<br />

state MD MA<br />

_OBS_1=3 _OBS_2=3:<br />

Variable <strong>Base</strong> Value Compare Diff. % Diff<br />

gr1 78.0 79.00 1.000000 1.282051<br />

gr2 72.000000 73.000000 1.000000 1.388889<br />

_OBS_1=4 _OBS_2=4:<br />

Variable <strong>Base</strong> Value Compare Diff. % Diff<br />

gr2 94.000000 74.000000 -20.000000 -21.276596<br />

state MA MD<br />

If you use an ID statement, then the identifying label has the following form:<br />

ID-1=ID-value-1 ... ID-n=ID-value-n<br />

where ID is the name of an ID variable and ID-value is the value of the ID variable.<br />

Note: When you use the TRANSPOSE option, PROC COMPARE prints only the<br />

first 12 characters of the value. 4<br />

ODS Table Names<br />

The COMPARE procedure assigns a name to each table that it creates. You can use<br />

these names to reference the table when using the Output Delivery System (ODS) to<br />

select tables and create output data sets. For more information, see The Complete<br />

<strong>Guide</strong> to the <strong>SAS</strong> Output Delivery System.

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

Saved successfully!

Ooh no, something went wrong!