BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
SAS_John
Obsidian | Level 7
proc freq data=FISHER; 
	by AEDECOD; 
	where TRTAN in (0,2);
	table TRTAN*EVENT/exact; 
	ods output FishersExact=F1PT(where=(Name1='XP2_FISH'));
run;

Hi,

When I run the above code, it gave me the following message in log "No statistics are computed for TRTAN * EVENT because TRTAN has less than 2 nonmissing levels". Is any way I can get the P-value?

 

Thanks a lot!

 

John

 

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

This seems contradicting to me, is it correctly pulling the data you expect?

where TRTAN in (0,2);

No statistics are computed for TRTAN * EVENT because TRTAN has less than 2 nonmissing levels

 

 

View solution in original post

2 REPLIES 2
Reeza
Super User

This seems contradicting to me, is it correctly pulling the data you expect?

where TRTAN in (0,2);

No statistics are computed for TRTAN * EVENT because TRTAN has less than 2 nonmissing levels

 

 

SAS_John
Obsidian | Level 7

Thanks Reeza for the reply. I recheck the table. So the "Where TRTAN in (0, 2)" should be  "Where TRTAN in (0, 81)". Then it is ok now

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

Register now

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 4688 views
  • 0 likes
  • 2 in conversation