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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 17 replies
  • 2233 views
  • 7 likes
  • 7 in conversation