BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
SASuserlot
Barite | Level 11

I am running a prof freq for fisher exact p values, I am not able to generate the p value  log showing the note. can anybody say what problem I am having. Thanks

 


381 data fish;
382 merge adsl(in=a where=(SAFE='Y' and trtan ne 2)) ae(in=b);
383 by subjid;
384 if a;
385 if b=1 then response='Y';
386 else response='N';
387 run;

NOTE: There were 365 observations read from the data set WORK. ADSL.
WHERE (SAFE='Y') and (trtan not = 2);
NOTE: There were 1440 observations read from the data set WORK.AE.
NOTE: The data set WORK.FISH has 1078 observations and 132 variables.
NOTE: DATA statement used (Total process time):
real time 0.09 seconds
cpu time 0.03 seconds


388 ods listing;
389 title 'p-value: Meformin vs. Placebo';
390 ods output FishersExact=pvalue11;
391 proc freq data=FISH (where=(trta in ('Meformin', 'Placebo')));
392 table trta*response / fisher;
393 run;

NOTE: No statistics are computed for TRTA * response because response has fewer than 2 nonmissing
levels.
WARNING: Output 'FishersExact' was not created. Make sure that the output object name, label, or
path is spelled correctly. Also, verify that the appropriate procedure options are used to
produce the requested output object. For example, verify that the NOPRINT option is not
used.
NOTE: There were 726 observations read from the data set WORK.FISH.
WHERE trta in ('Metformin', 'Placebo');
NOTE: PROCEDURE FREQ used (Total process time):
real time 0.14 seconds
cpu time 0.12 seconds

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

This note is pretty clear:

NOTE: No statistics are computed for TRTA * response because response has fewer than 2 nonmissing
levels.

You have a variable that only has one value so cannot make any 2x2 (or greater) table at all.

Probably due to misspelling I would guess "Metformin" as "Meformin"

View solution in original post

2 REPLIES 2
ballardw
Super User

This note is pretty clear:

NOTE: No statistics are computed for TRTA * response because response has fewer than 2 nonmissing
levels.

You have a variable that only has one value so cannot make any 2x2 (or greater) table at all.

Probably due to misspelling I would guess "Metformin" as "Meformin"

SASuserlot
Barite | Level 11

Thanks. you are right. I spelled it wrong twice before on this dataset, that's why i did not got any warning or error. I got it now. Thanks again.

SAS Innovate 2025: Register Now

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 3214 views
  • 2 likes
  • 2 in conversation