400 likes | 484 Views
Inference About 2 or More Normal Populations, Part 1. BMTRY 726 2/4/14. Paired Samples. Common when we want to compare response to treatment before and after using the same subject. Helps control subject to subject variation. Univariate case :. Paired Samples. Multivariate case :
E N D
Inference About 2 or More Normal Populations, Part 1 BMTRY 726 2/4/14
Paired Samples Common when we want to compare response to treatment before and after using the same subject. Helps control subject to subject variation. Univariate case:
Paired Samples Multivariate case: • Notation
Paired Samples Multivariate case: (2) Results 6.1: Assuming the differences D1, D2,…, Dn are a random sample from a Np(d,Sd), then This follows directly from the one sample Hotelling’sT2 test in chapter 5.
Paired Samples Thus it is easy to see that the 100(1-a)% confidence region for d is Similarly the 100(1-a)% simultaneous confidence intervals for the individuals di’s are And the Bonferroni100(1-a)% CIs for the individuals di’s are
Example Say we want to compare reliability of two faculty members grading dental student crown preparations
Example Find T2
Example What are 95% simultaneous CIs for d1 and d2 (F2,3(a)= 9.55)?
Repeated Measures Consider a design with 1 response variable but multiple treatments for the same subject For example… -Measure outcome at different time points -Measure response under different treatments -Measure response for different raters
Repeated Measures Cognitive performance in Parkinsons rats: -Three treatments to improve cognitive performance -Each rat receives each treatment for 1 week -Measure average cognitive performance at the end of each week of treatment Identification of seizure center onset in patients with epilepsy -70 intercranial electrodes in different regions of the brain -Record electrode activity in one second intervals across 10 seizures -Measure average connectivity for all electrode pairs
Repeated Measures & Contrasts Test the hypothesis Write the null hypothesis in matrix form
Repeated Measures & Contrasts Transform the vector of observed values Then Y1, Y2, …, Yn is a random sample form a q -1 dimensional normal with mean Cm and So our HotellingT2 test statistic is
Repeated Measures & Contrasts Proof Then
Repeated Measures & Contrasts So we start with Test: Reject if: Note, for
Example Reaction times of n = 20 people have to visual stimuli driving in a simulator at 0, 30, and 60 minutes after consumption of 2 alcoholic beverages.
Example Are the mean reaction times the same for all 3 stimuli?
Example Are the mean reaction times the same for all 3 stimuli?
More about Contrasts Note the choice of C is not unique. Any matrix C that is of full (row) rank will do and defines the null hypothesis in the same way In the example we could write These C matrices will give the same T2 value
More about Contrasts • Proof
Example 6.2 in the book -Four anesthetic treatments given to n =19 dogs: -T1 = High CO2, no Halothane -T2 = Low CO2, no Halothane -T3 = High CO2, with Halothane -T4 = Low CO2, with Halothane Milliseconds between heartbeats was measured for each treatment
We want to know if average time between heartbeats the same for the four treatments? We could use something similar to our last example…
Alternatively we could use our contrast matrix to estimate particular comparisons
Repeated Measures: CIs For Cm, the 100(1-a)% confidence region is: Similarly the 100(1-a)% simultaneous confidence intervals for single contrasts are And the Bonferroni100(1-a)% CIs for the individuals contrasts are
We can construct 95% simultaneous confidence intervals for these 3 contrasts… • Halothane versus no Halothane • High CO2 versus low CO2 • Interaction between Halothane and CO2
However if a priori we decide we are only interested in these three effects, we can construct Bonferroni CIs • Halothane versus no Halothane • High CO2 versus low CO2 • Interaction between Halothane and CO2
Conclusions • Use of halothane produces longer times between heartbeats. This is consistent across CO2 levels since the interaction was not significant • Lower levels of CO2 results in longer times between heartbeats whether or not halothane is used. -Note, we did not need T2 to come to this conclusion -The investigators in this study also did not randomized order in which the dogs received each treatment combination. Thus time or carry-over effects may be confounded with halothane or CO2 effects.
What About ANOVA? ANOVA table Use of the F-test in this ANOVA is based on the assumptions (1) The 4 observations for each dog are independent (2) Observations taken in different dogs are independent (3) Homogeneous variance
Repeated Measures Random Sample: Linear model: -random errors can have different variances and can also be correlated
Mixed Model Analysis What happens if we have the following data We also assume {sj} are independent of {rij} Note: Observations taken on the same subject are correlated leading to… Fixed Trt Effect Random Sub Effect Random w/in Sub Effect
Mixed Model Analysis For the jth subject
Then Where Correlation between any 2 obs on the same unit -Note: the T2 test doesn’t assume this special covariance structure
Mixed Model ANOVA Where Reject if
When the mixed model F-test is applied when The type I error level often exceeds the specified a When is true Where the zj’s are the NID(0,1) random variables
Otherwise Where
Note that q will be close to when S has a large diversity in variance, or S has some unequal eigenvalues near zero, or both q= 1 if the mixed model assumptions are correct, or more generally when
Since S is unknown, a conservative approach is to make q as small as possible, i.e. close to Then Reject H0: m1 = m2 = … = mp if Alternative approach: -Estimate q from the data
Analysis of Repeated Measures Studies Mixed model ANOVA: -Familiar random subjects model -Simple, well known -Assumes Equal variances and equal correlations -Good power -Other covariance structures are available in PROC MIXED
Analysis of Repeated Measures Studies Conservative degrees of freedom: -Familiar random subjects mixed model -Arbitrary covariance structure -Conservative -Actual type I error has less than nominal a -Loss of power -Could estimate correction to degrees of freedom
Analysis of Repeated Measures Studies HotellingT2 (or MANOVA) -Arbitrary covariance structure -Exact type I error level -Less familiar -Power: -More power than conservative degree of freedom approach -Less power than random subjects mixed model