Hi,(adsbygoogle = window.adsbygoogle || []).push({});

Can a few of you please review the approach I plan to take for obvious errors?

I have 50 subjects and each have a measure taken on the same variable before and after treatment. So, this is standard paired t-test time, but what I am actually interested in is the variance of the treatment versus the control. I would like to test the equality of variance for these two groups of values (treatment and control) and also place a 95% confidence interval around the difference of these two variances. I would prefer randomization/resampling methods to be used for each as normality assumptions do not hold and I would like a robust result. I have not found any routines specifically like what I would want, so I think I may have to do the following in R. Any advice on an easier or better approach is welcome.

I know that equality of variance for paired data can be tested using the pitman-morgan statistic. I was planning on calculating this for the original data and then randomly switching the values within pairs the the pre-treatment and post-treatment measures in order to achieve randomization that respects the paired nature of the data. I could then extract p-values based upon the percent of randomizations with more extreme pitman-morgan statistic.

For the 95% CI interval around the differences, I thought I would resample pairs of values with replacement. So, I would select among the 50 subjects 50 times with replacement. I would then calculate the variance for the pre-treatment measures and for the post-treatment measures and I would then take the difference and store this value. I would do this many times and then determine the 95% confidence interval by ordering my resamples and simply taking the 2.5% and 97.5% percentiles.

Does this make sense at all?

NOTE: Since posting I have been advised elsewhere that a ratio of the variances would be better than the difference.

Thanks,

Seth

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Paired samples-equality of variance and 95% CI around difference in variances

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

Loading...

Similar Threads - Paired samples equality | Date |
---|---|

A Pairing algorithm | Jan 27, 2018 |

I Can an ordered pair have identical elements? | Dec 18, 2016 |

Standard Deviation with Paired Values | Aug 12, 2015 |

Paired two sample t test | Feb 11, 2015 |

Paired means test vs two-sample means test | May 16, 2014 |

**Physics Forums - The Fusion of Science and Community**