BookmarkSubscribeRSS Feed
Nagadurga
Calcite | Level 5

 •PROC FREQ (MN method) is only supporting if we have occurrences,  when the number of occurrences are 0 we are getting an notes like “ Division by 0”.
• •We got stuck in using arcos call routine (highlighted in black) , v = 0.048 & u3 = 0.064

 
•v/(u*u*u) in w = (constant('pi')+arcos(v/(u*u*u)))/3? It might be possible that for some iterations, v/(u*u*u) was not in the range of -1 to 1. 

 

 

3 REPLIES 3
Tom
Super User Tom
Super User

And the question is what exactly?

 

Are you asking how to test if V/(u**3) is between -1 and 1?

if abs(v/u**3) > 1 then ....

Or are you asking how to modify your algorithm in that case?  If so then you need to explain your algorithm.

Nagadurga
Calcite | Level 5

Yes, I was asking how to  test if V/(u**3) is between -1 and 1?

ballardw
Super User

Code and log results are best copied from the Log or editor and pasted as text into a code box opened on the forum with the {I} or "running man" icon. Pictures are right out as it is very hard to copy and highlight or make changes to code. Code from a word processor program often ends up with characters that are not actually valid in code.

 

 

Without any actual description of the "method" it is impossible to tell if you have implemented in correctly. Without example data and documentation it is impossible to tell if your data meets any assumptions of the process. One suspects this may be the case with zero counts.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 875 views
  • 0 likes
  • 3 in conversation