1 / 21

ANCOVA

ANCOVA. A hybrid of regression and analysis of variance. Analysis of covariance. It is an analysis of variance performed on residuals from the regression of the response variable on the covariate…. Analysis of covariance. Where Ai is the treatment effect (categorical)

jtyra
Download Presentation

ANCOVA

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ANCOVA A hybrid of regression and analysis of variance

  2. Analysis of covariance • It is an analysis of varianceperformed on residuals from the regression of the response variable on the covariate…

  3. Analysis of covariance Where Ai is the treatment effect (categorical) and Bc is the covariate effect (continuous)

  4. Plotting ANCOVAs • The ANCOVA plot should use the continuous covariate variable plotted on the x-axis, and the continuous response variable plotted on the y-axis. Each point represents an independent replicate, and different symbols or colors should be used for each treatment group.

  5. Possible results A B C D E F

  6. Can you match these explanations to the plots on the previous slide? • Treatment significant, covariate and interaction term non-significant… • Treatment and covariate significant, interaction term non-significant… • Interaction term significant, everything else non-significant… • Covariate not significant, treatment, and interaction significant… • Covariate significant, treatment and interaction non-significant… • No term significant…

  7. Can you match these explanations to the plots on the previous slide? • Treatment significant, covariate and interaction term non-significant (C) • Treatment and covariate significant, interaction term non-significant (D) • Interaction term significant, everything else non-significant (E) • Covariate not significant, treatment, and interaction significant (F) • Covariate significant, treatment and interaction non-significant (B) • No term significant (A)

  8. Beware of dangerous data!!

  9. An important thing… • In Analysis of Covariance order matters! • This model: model <- lm(Y ~ X*Group) • is not the same as this one model <- lm(Y ~ Group*X)

  10. E.G. Membrane potential (in millivolts) 'Action potential' is the name given to the electrical nerve impulse waveform that is generated by the neuron (nerve cell). The shape of an action potential can be seen using an amplifier circuit (voltage clamp) as shown in the diagram below, which measures the flow of ions using two electrodes inserted into the nerve fiber. www.ebme.co.uk/arts/aps/pic1a.gif

  11. E.G. Membrane potential (in millivolts) • Yamauchi and Kimizuka (1971) measured membrane potential for 4 different cation systems as a function of the logarithm of the activity ratio of various electrolytes at various concentrations. We wish to test whether the mean membrane potential “Y” is different for these systems…

  12. Data

  13. Membrane potential for four different cation systems

  14. …the formulas!

  15. For each group compute the following:

  16. For each group compute the following:

  17. We obtain We calculate unexplained sums of squares for these two levels of variation:

  18. We test the null hypothesis that there are no differences among sample means when these are adjusted for a common and a common regression line:

  19. …the results! Sokal and Rohlf, 2000. Biometry

  20. …or you run it in R! Df Sum Sq Mean Sq F value Pr(>F) X 1 4197.0 4197.0 1395.25 < 2.2e-16 *** Group 3 1768.6 589.5 195.98 8.005e-13 *** Residuals 16 48.1 3.0 …from this you can conclude that both the effect of the treatment (cation) and the covariate (concentration) have a significant effect on membrane potential!

More Related