## MN paper zero count example_Garner Method SAS 9.3

•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

## Re: MN paper zero count example_Garner Method SAS 9.3

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.

## Re: MN paper zero count example_Garner Method SAS 9.3

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

## Re: MN paper zero count example_Garner Method SAS 9.3

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.

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