Analysis of covariance Experimental design and data analysis for biologists (Quinn & Keough, 2002) Environmental sampling and analysis.

Slides:



Advertisements
Similar presentations
Randomized Complete Block and Repeated Measures (Each Subject Receives Each Treatment) Designs KNNL – Chapters 21,
Advertisements

Topic 12: Multiple Linear Regression
Research Support Center Chongming Yang
Experimental design and analysis Multiple linear regression  Gerry Quinn & Mick Keough, 1998 Do not copy or distribute without permission of authors.
1 Chapter 4 Experiments with Blocking Factors The Randomized Complete Block Design Nuisance factor: a design factor that probably has an effect.
Inference for Regression
Regression Inferential Methods
Copyright, Gerry Quinn & Mick Keough, 1998 Please do not copy or distribute this file without the authors’ permission Experimental Design & Analysis Factorial.
ANALYSIS OF VARIANCE  Gerry Quinn & Mick Keough, 1998 Do not copy or distribute without permission of authors. One factor.
Generalized Linear Models (GLM)
Chapter 13 Multiple Regression
LINEAR REGRESSION: Evaluating Regression Models Overview Assumptions for Linear Regression Evaluating a Regression Model.
LINEAR REGRESSION: Evaluating Regression Models. Overview Assumptions for Linear Regression Evaluating a Regression Model.
Chapter 12 Multiple Regression
Chapter 7 Analysis of ariance Variation Inherent or Natural Variation Due to the cumulative effect of many small unavoidable causes. Also referred to.
Analysis of Covariance Goals: 1)Reduce error variance. 2)Remove sources of bias from experiment. 3)Obtain adjusted estimates of population means.
Lesson #32 Simple Linear Regression. Regression is used to model and/or predict a variable; called the dependent variable, Y; based on one or more independent.
CHAPTER 4 ECONOMETRICS x x x x x Multiple Regression = more than one explanatory variable Independent variables are X 2 and X 3. Y i = B 1 + B 2 X 2i +
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc. Chap 14-1 Chapter 14 Introduction to Multiple Regression Basic Business Statistics 11 th Edition.
One-way Between Groups Analysis of Variance
January 7, morning session 1 Statistics Micro Mini Multi-factor ANOVA January 5-9, 2008 Beth Ayers.
Analysis of Covariance Goals: 1)Reduce error variance. 2)Remove sources of bias from experiment. 3)Obtain adjusted estimates of population means.
Chapter 12 Inferential Statistics Gay, Mills, and Airasian
Regression Analysis Regression analysis is a statistical technique that is very useful for exploring the relationships between two or more variables (one.
Simple Linear Regression
Regression. Height Weight How much would an adult female weigh if she were 5 feet tall? She could weigh varying amounts – in other words, there is a distribution.
Regression. Height Weight Suppose you took many samples of the same size from this population & calculated the LSRL for each. Using the slope from each.
Conducting ANOVA’s. I.Why? A. more than two groups to compare.
Correlation and Regression Used when we are interested in the relationship between two variables. NOT the differences between means or medians of different.
GENERAL LINEAR MODELS Oneway ANOVA, GLM Univariate (n-way ANOVA, ANCOVA)
Multiple regression models Experimental design and data analysis for biologists (Quinn & Keough, 2002) Environmental sampling and analysis.
Regression. Population Covariance and Correlation.
2nd Half Review ANOVA (Ch. 11) Non-Parametric (7.11, 9.5) Regression (Ch. 12) ANCOVA Categorical (Ch. 10) Correlation (Ch. 12)
Regression with Inference Notes: Page 231. Height Weight Suppose you took many samples of the same size from this population & calculated the LSRL for.
Lesson Multiple Regression Models. Objectives Obtain the correlation matrix Use technology to find a multiple regression equation Interpret the.
Be humble in our attribute, be loving and varying in our attitude, that is the way to live in heaven.
Educational Research Chapter 13 Inferential Statistics Gay, Mills, and Airasian 10 th Edition.
How to use a covariate to get a more sensitive analysis.
Analysis of Covariance Combines linear regression and ANOVA Can be used to compare g treatments, after controlling for quantitative factor believed to.
Analysis of Covariance (ANCOVA)
Simple Linear Regression (OLS). Types of Correlation Positive correlationNegative correlationNo correlation.
Data Analysis.
Environmental Modeling Basic Testing Methods - Statistics III.
Overview of our study of the multiple linear regression model Regression models with more than one slope parameter.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 14 Comparing Groups: Analysis of Variance Methods Section 14.3 Two-Way ANOVA.
Randomized block designs  Environmental sampling and analysis (Quinn & Keough, 2002)
28. Multiple regression The Practice of Statistics in the Life Sciences Second Edition.
Handout Twelve: Design & Analysis of Covariance
ANCOVA.
Analysis of Covariance KNNL – Chapter 22. Analysis of Covariance Goal: To Compare treatments (1-Factor or Multiple Factors) after Controlling for Numeric.
Jump to first page Inferring Sample Findings to the Population and Testing for Differences.
Formula for Linear Regression y = bx + a Y variable plotted on vertical axis. X variable plotted on horizontal axis. Slope or the change in y for every.
Chapter 8 Analysis of METOC Variability. Contents 8.1. One-factor Analysis of Variance (ANOVA) 8.2. Partitioning of METOC Variability 8.3. Mathematical.
Educational Research Inferential Statistics Chapter th Chapter 12- 8th Gay and Airasian.
Université d’Ottawa / University of Ottawa 2001 Bio 4118 Applied Biostatistics L12.1 Lecture 12: Generalized Linear Models (GLM) What are they? When do.
Education 793 Class Notes ANCOVA Presentation 11.
Stats Methods at IC Lecture 3: Regression.
Regression.
How to use a covariate to get a more sensitive analysis
Statistics review Basic concepts: Variability measures Distributions
Regression.
Regression.
Regression.
Regression.
Randomized Complete Block and Repeated Measures (Each Subject Receives Each Treatment) Designs KNNL – Chapters 21,
Regression.
The Analysis of Variance
Analysis of Covariance
How to use a covariate to get a more sensitive analysis
REVIEW Course Review.
Presentation transcript:

Analysis of covariance Experimental design and data analysis for biologists (Quinn & Keough, 2002) Environmental sampling and analysis

Linear models All predictors continuous –regression models –effects measured as regression slopes All predictors categorical –“ANOVA” models –effects measured as differences b/w group means Continuous and categorical predictors –covariance models –effects measured as adjusted differences b/w group means

Analysis of covariance Covariance: –measure of how much two variables covary, i.e. vary together Analysis of covariance (ANCOVA): –comparing mean values of response variable between groups (single or multifactor design) where response variable covaries with other measured continuous variables (covariates)

Sex and fruitfly longevity Response variable –longevity of male fruitflies Factor A –“sex” treatment with 5 groups –1 virgin female, 8 virgin females, 1 pregnant female etc. Covariate –thorax length Hypothesis –no effect of treatment on longevity of male fruitflies, adjusting for thorax length

Shrinking in sea urchins Response variable –suture width in sea urchins Factor A –food treatment with 3 groups –high food, low food, initial sample Covariate –body volume Hypothesis –no effect of food treatment on suture width of sea urchins, adjusting for body volume

ANCOVA model  i is effect of factor A (groups or treatments)  is pooled (across groups) regression slope b/w Y and X x ij is value of covariate for jth observation in ith group  ij is variation in Y not explained by either factor A or covariate X

Adjusted Y Adjusted Y values: Adjusted Y means:

Adjusted means x1x1 x2x2 x Group 1 Group 2 y2y2 y1y1 y 1adj y 2adj

Assumptions Apply to adjusted response variable Normality and homogeneity of variances –boxplots, residual plots, etc. Linearity of Y and covariate relationship –scatterplot Covariate not different between groups –ANOVA on covariate Homogeneity of within-group regression slopes –test factor by covariate interaction term

Homogeneity of slopes Fit model: –y =  +  + x +  x Test  by x interaction term If not significant –fit usual ANCOVA model If significant –use Wilcox modification of Johnson-Neyman procedure –tedious but informative

Sex and fruitfly longevity H 0 :  1 =  2 =  3 =  i (equal within-group regression slopes) Fit model: (log longevity) ij = mean + (treatment) i + (thorax length) i j + (treatment x thorax length) ij +  ij SourcedfMSFP Treatment x thorax length Residual No evidence to reject H 0 of equal within-group slopes Refit model with pooled regression slope

Sex and fruitfly longevity

H 0 :  1(adj) =  2(adj) = … =  i(adj) SourcedfMSFP Treatment <0.001 Thorax length <0.001 Residual Reject H 0 of equal adjusted mean log longevity between groups Also reject H 0 of zero pooled regression slope (log longevity against thorax length) ANOVA MS Residual = (120df); cf above

Sex and fruitfly longevity TreatmentAdjusted meanUnadjusted mean 1 (8 preg females) (no partners) (1 preg female) (1 virg female) (8 virg females)

Further tests Planned contrasts and trends on adjusted means –partition SS on adjusted means Unplanned multiple comparisons on adjusted means –use conditional (on covariate) Tukey test

Complexities More covariates –adjust Y for both covariates –homogeneity of slopes for each covariate –covariates shouldn’t be correlated (collinearity) More factors –nested or factorial or both –testing homogeneity of slopes is tricky interactions b/w covariate and each factor and b/w covariate and factor interactions X by A, X by B, X by A by B