Regression designs Y X1 Plant size Growth rate 1 10

Slides:



Advertisements
Similar presentations
Topic 12: Multiple Linear Regression
Advertisements

Analysis of covariance Experimental design and data analysis for biologists (Quinn & Keough, 2002) Environmental sampling and analysis.
Chapter 17 Making Sense of Advanced Statistical Procedures in Research Articles.
Some Terms Y =  o +  1 X Regression of Y on X Regress Y on X X called independent variable or predictor variable or covariate or factor Which factors.
Multiple regression. Problem: to draw a straight line through the points that best explains the variance Regression.
Regression designs Growth rate Y 110 Plant size X1X1 X Y
January 6, afternoon session 1 Statistics Micro Mini Multiple Regression January 5-9, 2008 Beth Ayers.
PSY 1950 General Linear Model November 12, The General Linear Model Or, What the Hell ’ s Going on During Estimation?
Analysis of Covariance Harry R. Erwin, PhD School of Computing and Technology University of Sunderland.
 Combines linear regression and ANOVA  Can be used to compare g treatments, after controlling for quantitative factor believed to be related to response.
7.1 - Motivation Motivation Correlation / Simple Linear Regression Correlation / Simple Linear Regression Extensions of Simple.
23-1 Analysis of Covariance (Chapter 16) A procedure for comparing treatment means that incorporates information on a quantitative explanatory variable,
ALISON BOWLING THE GENERAL LINEAR MODEL. ALTERNATIVE EXPRESSION OF THE MODEL.
Analysis of Covariance, ANCOVA (GLM2)
Correlation and Regression Used when we are interested in the relationship between two variables. NOT the differences between means or medians of different.
Regression. Population Covariance and Correlation.
Sociology 680 Multivariate Analysis: Analysis of Variance.
Complex Analytic Designs. Outcomes (DVs) Predictors (IVs)1 ContinuousMany Continuous1 CategoricalMany Categorical None(histogram)Factor Analysis: PCA,
Multiple Regression BPS chapter 28 © 2006 W.H. Freeman and Company.
How to use a covariate to get a more sensitive analysis.
PS 225 Lecture 20 Linear Regression Equation and Prediction.
Analysis of Covariance Combines linear regression and ANOVA Can be used to compare g treatments, after controlling for quantitative factor believed to.
Correlation. Up Until Now T Tests, Anova: Categories Predicting a Continuous Dependent Variable Correlation: Very different way of thinking about variables.
General Linear Model.
Multivariate Analysis: Analysis of Variance
Week 101 ANOVA F Test in Multiple Regression In multiple regression, the ANOVA F test is designed to test the following hypothesis: This test aims to assess.
Direct Variation y = mx (no b) Lines that go through the origin Y intercept of zero Slope also called constant of variation (variation constant)
Another way to select sample size The sample R-squared method.
Writing equations given 2 points on the line. Write the equation of the line that goes through the points (1, 6) and (3, -4) m = y₂ - y₁ x₂ - x₁ -4 -
Correlation and Regression Chapter 9. § 9.2 Linear Regression.
Tutorial 5 Thursday February 14 MBP 1010 Kevin Brown.
VARIABLES, GRAPHS, RATES OF CHANGE, AND REGRESSION LINES EXAMPLE IN EXCEL.
Warm-up Get a sheet of computer paper/construction paper from the front of the room, and create your very own paper airplane. Try to create planes with.
Modeling in R Sanna Härkönen.
STATISTICAL TESTS FOR SCIENCE FAIR PROJECTS
Chapter 12 Simple Linear Regression and Correlation
Chapter 8 Linear normal models.
REGRESSION (R2).
Regression Scientific
CHAPTER 7 Linear Correlation & Regression Methods
4.4 The Slope-Intercept Form of the Equation of a Line
Chapter 11 Analysis of Covariance
Convert Standard to Slope-Intercept
B&A ; and REGRESSION - ANCOVA B&A ; and
The Correlation Coefficient (r)
Analysis of Covariance, ANCOVA (GLM2)
STAT 250 Dr. Kari Lock Morgan
CHAPTER 29: Multiple Regression*
Lesson 5.3 How do you write linear equations in point-slope form?
How to use a covariate to get a more sensitive analysis
Statistics review Basic concepts: Variability measures Distributions
Multiple Regression BPS 7e Chapter 29 © 2015 W. H. Freeman and Company.
Chapter 12 Simple Linear Regression and Correlation
Scientific Practice Regression.
Simple Linear Regression
So far --> looked at the effect of a discrete variable on a continuous variable t-test, ANOVA, 2-way ANOVA.
Independent variables correlate with each other
Two-way analysis on variance
4.5 The Point-Slope Form of an Equation of a Line
Quadrat sampling Quadrat shape Quadrat size Lab Regression and ANCOVA
Multivariate Analysis: Analysis of Variance
Section 6.2 Prediction.
An Introductory Tutorial
Regression and Categorical Predictors
Exercise 1: Gestational age and birthweight
Dr. Green note. This starter slide deck generally follows the sequence of slides the department uses. Over time, some requirements tend to be added, this.
How to use a covariate to get a more sensitive analysis
Multivariate Analysis: Analysis of Variance
The Correlation Coefficient (r)
Regression designs Y X1 Plant size Growth rate 1 10
Presentation transcript:

Regression designs Y X1 Plant size 1 2 3 4 5 6 7 8 9 Growth rate 1 10 1 2 3 4 5 6 7 8 9 Growth rate Y 1 10 Plant size X1 X Y 1 1.5 2 3.3 4 4.0 6 4.5 8 5.2 10 72

Regression designs Y Y X1 X1 Plant size Plant size 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 Growth rate Y 1 2 3 4 5 6 7 8 9 Growth rate Y 10 Plant size X1 1 10 Plant size X1 X Y 1 1.5 2 3.3 4 4.0 6 4.5 8 5.2 10 72 X Y 1 0.8 1 1.7 1 3.0 10 5.2 10 7.0 10 8.5

Regression designs Y Y X1 Y X1 X1 Code 0=small, 1=large Plant size 1 2 3 4 5 6 7 8 9 Growth rate Y 1 2 3 4 5 6 7 8 9 Growth rate Y 10 Plant size X1 1 2 3 4 5 6 7 8 9 Growth rate Y Plant size X1 1 10 Plant size X1 X Y 1 1.5 2 3.3 4 4.0 6 4.5 8 5.2 10 7.2 X Y 1 0.8 1 1.7 1 3.0 10 5.2 10 7.0 10 8.5 X Y 0 0.8 0 1.7 0 3.0 1 5.2 1 7.0 1 8.5

Growth = m*Size + b Y X1 Questions on the general equation above: Code 0=small, 1=large Growth = m*Size + b 1 2 3 4 5 6 7 8 9 Growth rate Y Plant size X1 Questions on the general equation above: 1. What parameter predicts the growth of a small plant? 2. Write an equation to predict the growth of a large plant. 3. Based on the above, what does “m” represent? X Y 0 0.8 0 1.7 0 3.0 1 5.2 1 7.0 1 8.5

Growth = m*Size + b If small Y Growth = m*0 + b If large X1 Difference in growth Growth of small Code 0=small, 1=large Growth = m*Size + b 1 2 3 4 5 6 7 8 9 Growth rate Y Plant size X1 If small Growth = m*0 + b If large Growth = m*1 + b X Y 0 0.8 0 1.7 0 3.0 1 5.2 1 7.0 1 8.5 Large - small = m

Nitrogen What about “covariates”… - looking at the effect of salmon on tree growth rates Nitrogen

Compare tree growth around 2 streams, one with and one without salmon No Salmon Growth rate (g/day) t(9) = 0.06, p = 0.64

ANCOVA In an Analysis of Covariance, we look at the effect of a treatment (categorical) while accounting for a covariate (continuous) Salmon No Salmon Growth rate (g/day) Plant height (cm)

ANCOVA Fertilizer treatment (X1): code as 0 = No Salmon; 1 = Salmon Plant height (X2): continuous Salmon No Salmon Growth rate (g/day) Plant height (cm)

ANCOVA Fertilizer treatment (X1): code as 0 = No Salmon; 1 = Salmon Plant height (X2): continuous ? X1 X2 Y 0 1 1.1 0 2 4.0 : : : 1 1 3.1 1 2 5.2 1 5 11.3 X1*X2 : 1 2 5 Growth rate (g/day) ? Salmon No Salmon Plant height (cm)

ANCOVA Fit full model (categorical treatment, covariate, interaction) Y=m1X1+ m2X2 +m3X1X2 +b Salmon No Salmon Growth rate (g/day) Plant height (cm)

ANCOVA Fit full model (categorical treatment, covariate, interaction) Y=m1X1+ m2X2 +m3X1X2 +b Questions: Write out equation for No Salmon (X1= 0) Write out equation for Salmon (X1 = 1) What differs between two equations? If no interaction (i.e. m3 = 0) what differs between eqns?

ANCOVA Fit full model (categorical treatment, covariate, interaction) Y=m1X1+ m2X2 +m3X1X2 +b If X1=0: Y=m1X1+ m2X2 +m3X1X2 +b If X1=1: Y=m1 + m2X2 +m3X2 +b Difference: m1 +m3X2 Difference if no interaction: m1 +m3X2

Difference between categories…. Constant, doesn’t depend on covariate Depends on covariate = m1 + m3X2 (interaction) = m1 (no interaction) 12 10 8 Growth rate (g/day) Growth rate (g/day) 6 4 2 2 4 6 Plant height (cm) Plant height (cm)

ANCOVA Fit full model (categorical treatment, covariate, interaction) Test for interaction (if significant- stop!) If no interaction, the lines will be parallel Salmon No Salmon Growth rate (g/day) Plant height (cm)

ANCOVA Fit full model (categorical treatment, covariate, interaction) Test for interaction (if significant- stop!) Test for differences in intercepts between lines = m1 } m1 Growth rate (g/day) No interaction Intercepts differ Plant height (cm)

Multiple X variables: Both categorical …………... ANOVA One categorical, one continuous……………...ANCOVA Both continuous …………....Multiple Regression

Regression’s deep dark secret: Order matters! Input: height p=0.001 weight p=0.34 age p=0.07 age p=0.04 weight p=0.88 Why? In the first order, even though weight wasn’t significant, it explained some of the variation before age was tested. Common when x-variables are correlated with each other.