Statistical programming, matrix languages, and more

error message in using EXP function in IML.

Reply
Contributor
Posts: 22

error message in using EXP function in IML.

MLThe following error messages  appeared in log window after running of a module in that EXP function was used in IML.

ERROR: (execution) Invalid argument to function.

count     : number of occurrences is 607

operation : EXP at line 3007 column 13

operands  : _TEM1013

_TEM1013   1999 rows      1 col     (numeric)

Dose the error was caused by the too large argument of EXP?  How to deal with that error?

SAS Super FREQ
Posts: 3,234

Re: error message in using EXP function in IML.

I think you are probably right. If an argument is bigger than 709 then EXP overflows. You need to identify the big numbers and decide how to handle them.  See the second half of the blog post "Constants in SAS" for how to prevent the overflow.

Contributor
Posts: 22

Re: error message in using EXP function in IML.

I get it. Thanks!

SAS Super FREQ
Posts: 3,234

Re: error message in using EXP function in IML.

You might also want to ask yourself WHY you are getting these overflows. Are you trying to evaluate a probability dentiy function (PDF) for an observation that is way out in the tail? The PDF for those observations is zero. Fitting a model to data? Maybe the model isn't appropriate for those data.

Post a Question
Discussion Stats
  • 3 replies
  • 533 views
  • 4 likes
  • 2 in conversation