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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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
  • 5362 views
  • 0 likes
  • 2 in conversation