SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
himalayancat
Fluorite | Level 6

hi all,

 

proc compare base=adata compare=cmpnew2.bdata
outdiff outnoequal listequalvar listcompvar
listbasevar
method=absolute
criterion=0.001
out=outfile;
run;

 

****************

i researched alot of criterion,but nowhere i found what exactly criterion means in layman terms.

 

my understanding is  when

a=2.005

b=2.004

the differance is 0.001.

so ,we are telling sas ,hey don't bother this 0.001 differance and consier it as equal. is that so??

 

and,

when it was exactly match for numeric value earlier say 

a=2

b=2

then ,

it would so all 0, now with criterion it shows 'E'.

what does this 'E' mean??

 

 

Thank You,

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisNZ
Tourmaline | Level 20

1. my understanding is  when a=2.005 b=2.004 the differance is 0.001. so ,we are telling sas ,hey don't bother this 0.001 differance and consier it as equal. is that so??

That's correct if method=absolute.

 

2. I don't recall seeing a E before. Please give more information.

View solution in original post

2 REPLIES 2
ChrisNZ
Tourmaline | Level 20

1. my understanding is  when a=2.005 b=2.004 the differance is 0.001. so ,we are telling sas ,hey don't bother this 0.001 differance and consier it as equal. is that so??

That's correct if method=absolute.

 

2. I don't recall seeing a E before. Please give more information.

ChrisNZ
Tourmaline | Level 20

This is a duplicate of this.

Marking as spam to avoid duplicates. Don't do this.

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 4502 views
  • 0 likes
  • 2 in conversation