Suppose that you are examining a categorical response with more than 2 levels before and after a treatment. You can test the existance of a categorical shift using Stuart-Maxwell's test.

Power Calculation Parameters

To input multiple values, seperate them by a comma.

{{ this.errors }}

Power Calculation Explanation

Solve For

The unknown you are interested in solving for.

N

The sample size used to test the hypothesis.

Alpha

The \(\alpha\) (Type I error rate) level of the hypothesis test.

Power

The power (1 - Type II error rate) of the hypothesis test.

Number of Levels

The number of levels of the endpoint being studied. This number is the dimension of the contingency table.

Contingency Table

The table representing pre and post treatment counts for each level. If you prefer, you can enter the raw probabilities here and you will get the same result, as long as the sum of the table is 1.