BookmarkSubscribeRSS Feed
ShufeGuoding
Obsidian | Level 7

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?

3 REPLIES 3
Rick_SAS
SAS Super FREQ

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.

ShufeGuoding
Obsidian | Level 7

I get it. Thanks!

Rick_SAS
SAS Super FREQ

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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

From The DO Loop
Want more? Visit our blog for more articles like these.
Discussion stats
  • 3 replies
  • 2444 views
  • 4 likes
  • 2 in conversation