BookmarkSubscribeRSS Feed
Miracle
Barite | Level 11

Dear Sir or Madam,

Can I please ask what do this errors mean? How can I resolve it? Thank you very much.

Histogram43.png

 

 

560  proc univariate data=temp;
561      var occ;
562      histogram / midpoints=0 to 600 by 50
563      lognormal
564     weibull
565      gamma;
566      inset n mean(5.3) std='Std Dev'(5.3) skewness(5.3)
567      / pos = ne  header = 'Summary Statistics';
578  run;

NOTE: Since a threshold parameter (THETA) was not specified for the lognormal fit for occ, a
      zero threshold is assumed.
ERROR: The smallest value of occ is less than or equal to the threshold parameter (THETA) for
       the lognormal fit.
NOTE: The lognormal threshold parameter (THETA) must be less than 0.
NOTE: The lognormal curve was not drawn because estimates could not be computed for all
      parameters.
NOTE: Since a threshold parameter (THETA) was not specified for the Weibull fit for occ, a
      zero threshold is assumed.
ERROR: The smallest value of occ is less than or equal to the threshold parameter (THETA) for
       the Weibull fit.
NOTE: The Weibull threshold parameter (THETA) must be less than 0.
NOTE: The Weibull curve was not drawn because estimates could not be computed for all
      parameters.
NOTE: Since a threshold parameter (THETA) was not specified for the gamma fit for occ, a zero
      threshold is assumed.
ERROR: The smallest value of occ is less than or equal to the threshold parameter (THETA) for
       the gamma fit.
NOTE: The gamma threshold parameter (THETA) must be less than 0.
NOTE: The gamma curve was not drawn because estimates could not be computed for all parameters.
NOTE: At least one W.D format was too small for the number to be printed. The decimal may be
      shifted by the "BEST" format.
NOTE: PROCEDURE UNIVARIATE used (Total process time):
      real time           0.19 seconds
      cpu time            0.04 seconds
1 REPLY 1
Rick_SAS
SAS Super FREQ

In three=parameter families that have a threshold parameters, the data must be strictly larger than the values of the threshold parameter.  The reason is that the distributions you are fitting have a term that looks like

log( x[i] - theta )

or

(x[i] - theta)**c.

The LOG function is undefined when its argument is zero or negative. Similarly, the "raise to power function" is undefined for negative arguments when  c is not an integer. (For example, c=1/2 is the square roo function.)

 

The most likely reason for these errors is that you have data values that are zero. Your choices include:

  1. Model the data by using different distributions
  2. Specify a value for the threshold parameters that is strictly less than the smallest data value
  3. Delete the bad data values if they are coding errors

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 1 reply
  • 2465 views
  • 1 like
  • 2 in conversation