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: 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
  • 3 replies
  • 704 views
  • 0 likes
  • 3 in conversation