BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Tom
Super User Tom
Super User

If you change only one of the references to the variable the behavior will be different.

When you store the sum of DURATION and something else back into the variable DURATION then you see that you are using it as an accumulator (like the Memory + key on your calculator).  But if instead you store the sum of DURATION and something into a different variable (TIME) then it is no longer accumulating.  If there is not some other statement somewhere to add values to the DURATION variable it will always be missing.  So

Time = sum(duration, ext{i} - itb{i}) becomes the same as Time = ext{i} - itb{i} since the variable DURATION is not contributing anything to the SUM().

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 25. 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
  • 15 replies
  • 2208 views
  • 3 likes
  • 3 in conversation