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.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 2501 views
  • 7 likes
  • 7 in conversation