BookmarkSubscribeRSS Feed
helenjad
Calcite | Level 5

Hello, I've asked when there is a case of double zero event like how to adjust for the zero cell. What if we have a double one case, i.e. both p_h1 and p_h2 are equal to 1, we would also have variance equal to zero. What SAS would do to handle this situation? Below are the reference formula.

helenjad_0-1686414507787.png

 

helenjad_2-1686414533485.png

Thank you!

1 REPLY 1
helenjad
Calcite | Level 5

In a follow-up, I have run below cases. The two cases give the same estimate:

 

data test1;
input strat trt $ responder $ count;
datalines;
1 Test Responder 4
1 Test NR 8
1 Pbo Responder 2
1 Pbo NR 11
2 Test Responder 0
2 Test NR 12
2 Pbo Responder 0
2 Pbo NR 13
;
run;

data test2;
input strat trt $ responder $ count;
datalines;
1 Test Responder 4
1 Test NR 8
1 Pbo Responder 2
1 Pbo NR 11
2 Test Responder 12
2 Test NR 0
2 Pbo Responder 13
2 Pbo NR 0
;
run;
proc freq data=test1;
weight count;
tables strat*trt * responder/commonriskdiff(column=2 cl=MR correct=NO);
run;
proc freq data=test2;
weight count;
tables strat*trt * responder/commonriskdiff(column=2 cl=MR correct=NO);
run;
 

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 1 reply
  • 203 views
  • 0 likes
  • 1 in conversation