numeric variable compared, let x be its value in the base data set and let y be its value in
the comparison data set. If x and y are both nonmissing, then the difference and percent
difference are defined as follows:
•Difference =
y
-
x
•Percent Difference =
(
y
-
x
)
/
x
*100
forx
≠0
•Percent Difference = missing for
x
=0.
How PROC COMPARE Handles Variable Formats
PROC COMPARE compares unformatted values. If you have two matching variables
that are formatted differently, then PROC COMPARE lists the formats of the variables.
Syntax: COMPARE Procedure
Restriction:You must use the VAR statement when you use the WITH statement.
Tip:You can use the LABEL, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.