Help using Base SAS procedures

how to suppress warnings in LOG for fisher exact

Reply
New Contributor
Posts: 2

how to suppress warnings in LOG for fisher exact

Hi,

 

See the attachment of log, from the ODS statement the 3 datasets are generating Cross,Fe and diff10.

 

The variable CNT has value of 0 and hence 'FE', 'Diff10' are giving warnings. 

 

There is no other option to consider Zeros ,as i already given 'Zeros' in weight statement.

 

I have no problem with results/Outputs. Is there any option to suppress the warnings in log?

 

 

Thanks in Advance.

Srikala

 

 

 

 

Super User
Posts: 10,784

Re: how to suppress warnings in LOG for fisher exact

[ Edited ]
proc freq data=sashelp.class ;
table sex*age/chisq NOWARN;   /* CHISQ(WARN=NOLOG)  */
run;
New Contributor
Posts: 2

Re: how to suppress warnings in LOG for fisher exact

Hi Sharp, Thanks for the reply.

 

But my methods are fisher exact and riskdiff, not Chisq. NOWARN option will not work for me.

Super User
Posts: 10,784

Re: how to suppress warnings in LOG for fisher exact

IF yours is 2x2 contingency table ,CHISQ will automatically generate FISHER EXACT test.

SAS Super FREQ
Posts: 4,242

Re: how to suppress warnings in LOG for fisher exact

The warning is there because it is not clear whether a zero entry is a STRUCTURAL zero (eg, the number of men how were pregnant) or a SAMPLING zero (eg, the number of men in the study who had breast cancer).  The EXACT statement assumes that it is a sampling zero and considers tables for which that cell is nonzero when computing the p-value. 

 

More about EXACT tests in PROC FREQ.

Ask a Question
Discussion stats
  • 4 replies
  • 155 views
  • 0 likes
  • 3 in conversation