•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.
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.
Yes, I was asking how to test if V/(u**3) is between -1 and 1?
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.
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!
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.
Ready to level-up your skills? Choose your own adventure.