Statistical Procedures

Programming the statistical procedures from SAS
BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
杨润煌
Fluorite | Level 6

here is my code:

proc freq data=table3_3_a;
    tables treat*DU1ORRES3 / riskdiff(margin=0.1 noninf) alpha=0.025;
run;

and here is the result of the freq

_0-1688564367302.png

as i know, if the lower 95% cl is smaller than the  non-inferiority margin(-0.1161<-0.1), then the p value will be bigger than 0.05 and the null hypothesis should be rejected, but the p value here is smaller than 0.05, i think i might missing something, could you help me understand better?

1 ACCEPTED SOLUTION

Accepted Solutions
FreelanceReinh
Jade | Level 19

@杨润煌 wrote:

thanks for you information, I'd checked the document and it said the confidence limits of noninferiority is 100(1-2α)%, if i calculate the 95% CL in noninferiority test, i should compare p value with alpha=0.025 and in this case, the null hypothesis shouldn't be rejected, is this correct?


In your example, p=0.0432>alpha, so this is correct. However, the default (and most commonly used) significance level is alpha=0.05. I assume you have good reasons to choose a different value.

View solution in original post

4 REPLIES 4
FreelanceReinh
Jade | Level 19

Hello @杨润煌,

 


@杨润煌 wrote:

here is my code:

proc freq data=table3_3_a;
    tables treat*DU1ORRES3 / riskdiff(margin=0.1 noninf) alpha=0.025;
run;

(...)

as i know, if the lower 95% cl is smaller than the  non-inferiority margin(-0.1161<-0.1), then the p value will be bigger than 0.05 and the null hypothesis should be rejected, but the p value here is smaller than 0.05, i think i might missing something, could you help me understand better?


You specified alpha=0.025 in your TABLES statement. Therefore, the correct conclusion is:

if the lower 95% cl is smaller than the  non-inferiority margin(-0.1161<-0.1), then the p value will be bigger than 0.025 and the null hypothesis should be rejected (at that significance level).

The confidence coefficient for the test-based confidence limits is 100(1-2a)% according to the documentation.

杨润煌
Fluorite | Level 6

thanks for you information, I'd checked the document and it said the confidence limits of noninferiority is 100(1-2α)%, if i calculate the 95% CL in noninferiority test, i should compare p value with alpha=0.025 and in this case, the null hypothesis shouldn't be rejected, is this correct?

FreelanceReinh
Jade | Level 19

@杨润煌 wrote:

thanks for you information, I'd checked the document and it said the confidence limits of noninferiority is 100(1-2α)%, if i calculate the 95% CL in noninferiority test, i should compare p value with alpha=0.025 and in this case, the null hypothesis shouldn't be rejected, is this correct?


In your example, p=0.0432>alpha, so this is correct. However, the default (and most commonly used) significance level is alpha=0.05. I assume you have good reasons to choose a different value.

杨润煌
Fluorite | Level 6
thanks for your help, i set alpha=0.025 since it is one-side test

sas-innovate-white.png

Join us for our biggest event of the year!

Four days of inspiring keynotes, product reveals, hands-on learning opportunities, deep-dive demos, and peer-led breakouts. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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
  • 4 replies
  • 1509 views
  • 0 likes
  • 2 in conversation