# Estimating variability over time

I have a dataset that contains ~7,500 blood tests from ~2,500 individuals. I'm trying to find out if variability in the blood tests increases or decreases with the time between two tests. For example - I draw your blood for the baseline test, then immediately draw a second sample. Six months later, I draw another sample. One might expect the difference between the baseline and the immediate repeat tests to be smaller than the difference between the baseline and the six-month test.

Each point on the plot below reflects the difference between two tests. X is the number of days between two tests; Y is the size of the difference between the two tests. As you can see, tests aren't evenly distributed along X - the study wasn't designed to address this question, really. Because the points are so heavily stacked at the mean, I've included 95% (blue) and 99% (red) quantile lines, based on 28-day windows. These are obviously pulled around by the more extreme points, but you get the idea.

alt text http://a.imageshack.us/img175/6595/diffsbydays.png

It looks to me like the variability is fairly stable. If anything, it's higher when the test is repeated within a short period - that's terribly counterintuitive. How can I address this in a systematic way, accounting for varying n at each time point (and some periods with no tests at all)? Your ideas are greatly appreciated.

Just for reference, this is the distribution of the number of days between test and retest:

alt text http://a.imageshack.us/img697/6572/testsateachtimepoint.png

• +1 for interesting real case ! can you help us to understand what is blood test ? (how do you calculate it) Aug 7, 2010 at 9:35
• There was an article on LFT (liver function tests) and how it seemed to vary in a cyclic basis (in months). I think it was in Annals of Internal Medicine. Aug 7, 2010 at 15:24
• Sure - briefly, it's a test for latent tuberculosis infection. Blood is drawn from the patient into three tubes: one that has no antigens, one that has selected TB antigens, and one that has mitogen. We then compare amount of immunologic response in the tube with no antigens to the one with TB - if they have a strong boost of response in the TB tube, they may have latent TB. (The mitogen tube serves as a check to make sure that the person is capable of producing an immunologic response at all - most people have very strong reactions to it) Aug 7, 2010 at 17:25