Calculating more general post tests

Print this Topic

Need for more general post tests

Prism only performs one kind of post test following two-way ANOVA. If your experimental situation requires different post tests, you can calculate them by hand without too much trouble. Or use the free web QuickCalcs provided at graphpad.com.

Consider this example where you measure a response to a drug after treatment with vehicle, agonist, or agonist+antagonist, in both men and women.

Prism will compare the two columns at each row. For this example, Prism's built-in post tests compare the two columns at each row, thus asking:

Do the control responses differ between men and women?
Do the agonist-stimulated responses differ between men and women?
Do the response in the presence of both agonist and antagonist differ between men and women?

If these questions match your experimental aims, Prism's built-in post tests will suffice. Many biological experiments compare two responses at several time points or doses, and Prism built-in post tests are just what you need for these experiments. But you may wish to perform different post tests. In this example, based on the experimental design above, you might want to ask these questions:

For men, is the agonist-stimulated response different than control? (Did the agonist work?)
For women, is the agonist-stimulated response different than control?
For men, is the agonist response different than the response in the presence of agonist plus antagonist? (Did the antagonist work?)
For women, is the agonist response different than the response in the presence of agonist plus antagonist?
For men, is the response in the presence of agonist plus antagonist different than control? (Does the antagonist completely block agonist response?)
For women, is the response in the presence of agonist plus antagonist different than control?

One could imagine making many more comparisons, but we'll make just these six. The fewer comparisons you make, the more power you'll have to find differences, so it is important to focus on the comparisons that make the most sense. But you must choose the comparisons based on experimental design and the questions you care about. Ideally you should pick the comparisons before you see the data. It is not appropriate to choose the comparisons you are interested in after seeing the data.

How to do the calculations

For each comparison (post test) you want to know:

What is the 95% confidence interval for the difference?
Is the difference statistically significant (P<0.05)?

Although Prism won't calculate these values for you, you can easily do the calculations yourself, starting from Prism's ANOVA table. For each comparison, calculate the confidence interval for the difference between means using this equation (from pages 741-744 and 771, J Neter, W Wasserman, and MH Kutner, Applied Linear Statistical Models, 3rd edition, Irwin, 1990).

In this equation, mean1 and mean 1 are the means of the two groups you are comparing, and N1 and N2 are their sample size. MSresidual is reported in the ANOVA results, and is the same for all post tests.

The variable t* is the critical value from the student t distribution, using the Bonferroni correction for multiple corrections. When making a single confidence interval, t* is the value of the t ratio that corresponds to a two-tail P value of 0.05 (or whatever significance level you chose). If you are making six comparisons, t* is the t ratio that corresponds to a P value of 0.05/6, or 0.00833. Find the value using this Excel formula =TINV(0.00833,6), which equals 3.863. The first parameter is the significance level corrected for multiple comparisons; the second is the number of degrees of freedom for the ANOVA (residuals for regular two-way ANOVA, subject' for repeated measures). The value of t* will be the same for each comparison. Its value depends on the degree of confidence you desire, the number of degrees of freedom in the ANOVA, and the number of comparisons you made.

To determine significance levels, calculate for each comparison:

The variables are the same as those used in the confidence interval calculations, but notice the key difference. Here, you calculate a t ratio for each comparison, and then use it to determine the significance level (as explained in the next paragraph). When computing a confidence interval, you choose a confidence level (95% is standard) and use that to determine a fixed value from the t distribution, which we call t*. Note that the numerator is the absolute value of the difference between means, so the t ratio will always be positive.

To determine the significance level, compare the values of the t ratio computed for each comparison against the standard values, which we abbreviate t*. For example, to determine whether the comparison is significant at the 5% level (P<0.05), compare the t ratios computed for each comparison to the t* value calculated for a confidence interval of 95% (equivalent to a significance level of 5%, or a P value of 0.05) corrected for the number of comparisons and taking into account the number of degrees of freedom. As shown above, this value is 3.863. If a t ratio is greater than t*, then that comparison is significant at the 5% significance level. To determine whether a comparison is significant at the stricter 1% level, calculate the t ratio corresponding to a confidence interval of 99% (P value of 0.01) with six comparisons and six degrees of freedom. First divide 0.01 by 6 (number of comparisons), which is 0.001667. Then use the Excel formula =TINV(0.001667,6) to find the critical t ratio of 5.398. Each comparison that has a t ratio greater than 5.398 is significant at the 1% level.

Tip: All these calculations can be performed using a free QuickCalcs web calculator.

Example

For this example, here are the values you need to do the calculations (or enter into the web calculator).

Comparison

Mean1

Mean2

N1

N2

1: Men. Agonist vs. control

176.0

98.5

2

2

2: Women. Agonist vs. control

206.5

100.0

2

2

3: Men. Agonist vs. Ag+Ant

176.0

116.0

2

2

4: Women. Agonist vs. Ag+Ant

206.5

121.0

2

2

5: Men Control vs. Ag+Ant

98.5

116.0

2

2

6: Women. Control vs. Ag+Ant

100.0

121.0

2

2

 

And here are the results: 

Comparison

Significant? (P < 0.05?)

t

1: Men. Agonist vs. control

Yes

8.747

2: Women. Agonist vs. control

Yes

12.020

3: Men. Agonist vs. Ag+Ant

Yes

6.772

4: Women. Agonist vs. Ag+Ant

Yes

9.650

5: Men Control vs. Ag+Ant

No

1.975

6: Women. Control vs. Ag+Ant

No

2.370

Comparison

Mean1 - Mean2

95% CI of difference

1: Men. Agonist vs. control

+ 77.5

+ 43.3 to + 111.7

2: Women. Agonist vs. control

+ 106.5

+ 72.3 to + 140.7

3: Men. Agonist vs. Ag+Ant

+ 60.0

+ 25.8 to + 94.2

4: Women. Agonist vs. Ag+Ant

+ 85.5

+ 51.3 to + 119.7

5: Men Control vs. Ag+Ant

-17.5

-51.7 to + 16.7

6: Women Control vs. Ag+Ant

-21.0

-55.2 to + 13.2

 

The calculations account for multiple comparisons. This means that the 95% confidence level applies to all the confidence intervals. You can be 95% sure that all the intervals include the true value. The 95% probability applies to the entire family of confidence intervals, not to each individual interval. Similarly, if the null hypothesis were true (that all groups really have the same mean, and all observed differences are due to chance) there will be a 95% chance that all comparisons will be not significant, and a 5% chance that any one or more of the comparisons will be deemed statistically significant with P< 0.05.

For the sample data, we conclude that the agonist increases the response in both men and women. The combination of antagonist plus agonist decreases the response down to a level that is indistinguishable from the control response.



Copyright (c) 2007 GraphPad Software Inc. All rights reserved.
URL: http://www.graphpad.com/help/Prism5/Prism5Help.html?calculating_more_general_post_tests.htm