cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
Choose Language Hide Translation Bar

Can you use the Equivalence of means sample size calculator for attribute data?

Hi,  Maybe i'm using the wrong type of test..but I would like to generate a sample size to compare two parts.  The test is an attribute test and I just want to verify the new part doesn't increase the failures by more than 10%.  This seemed like a non inferiority test when I first thought about it but playing around with the calculator, it seems like it's more of a test for variable data.  Am I just thinking about the wrong test or is there a way to adapt the calculator for attribute data?  Thanks

1 REPLY 1
MRB3855
Super User

Re: Can you use the Equivalence of means sample size calculator for attribute data?

Hi @SerialDeviation : It might help to put the problem in the framework of hypotheses testing. 

Suppose p1 is the failure rate for the old part, and p2 is the failure rate for the new part.  

Do you want to "prove" p2-p1<0.10?  (i.e., and absolute difference of no more than 10%):

 

If so, your null and alternative hypotheses are:

H0: p2-p1=0.1.

Ha: p2-p1<0.1.

 

Then this is indeed an NI study,  you have to ask yourself some questions: 

(1). Are the failure rates independent? i.e., does part 1 failing influence whether part 2 fails or not (or visa-versa)?

(2). What information do you have about p1 and p2?

(3). What is your desired Type 1 error rate?

 

Let's suppose the answer to (1 ) is yes (they are independent),  and you (2) expect the true proportions to be p1 = 0.1 and p2 = 0.19, and (3) Type 1 error rate (alpha) = 0.05.. Then you can use the "Power Explorer for Two Independent Sample Proportions" as shown below if you want 80% power:

MRB3855_0-1727699995911.png

 

More here: https://www.jmp.com/support/help/en/18.0/index.shtml#page/jmp/power-for-two-independent-sample-propo...

 

If, however, your alternative  (the thing you want to "prove") is:

Ha: p2/p1<1.1 then that is a different animal (that is a relative difference of 10%).