BookmarkSubscribeRSS Feed
art297
Opal | Level 21

Tom: I will drop my earlier preference for the many decimal fuzz factor, but not for the fuzz=0 option.  My preference is fmtb as shown below and stolen from your first example in your most recent post:

PROC FORMAT;

  VALUE fmta (fuzz=0)

       . = 'Missing'

       Low -< 3.5 = '0 - not including 3.5'

       3.5 -< 6 = '3.5 - not including 6'

       6 -< 20 = '6.0 - not including 20'

       20 - HIGH =  '20 and above';

  VALUE fmtb

       . = 'Missing'

       Low -3.499999999 = '0 - not including 3.5'

       3.5 -5.999999999 = '3.5 - not including 6'

       6.0 -19.99999999 = '6.0 - not including 20'

       20.0- HIGH =  '20 and above';

  RUN;

DATA ONE;

  do i = 0 to 21 by 0.001;

  j= i;

  k= i;

  l= i;

  format j fmta.;

  format k fmtb.;

  OUTPUT;

  end;

  RUN;

TomKari
Onyx | Level 15

Fair enough. I still vote for the fuzz=0, but fortunately both will work fine in the vast majority of cases.

Weather here in Florida is Sunny 80's...how's the weather in the Great White North?

Tom

art297
Opal | Level 21

Tom: Today's forecast, here, calls for 65º F and a bit of rain.  Not bad for mid-October.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 17 replies
  • 3471 views
  • 7 likes
  • 7 in conversation