Discussion 3 1/20/2014. Outline How to fill out the table in the appendix in HW3 What does the Model statement do in SAS Proc GLM ( please download lab.

Slides:



Advertisements
Similar presentations
Multiple-choice question
Advertisements

Experimental Statistics - week 5
I OWA S TATE U NIVERSITY Department of Animal Science Using Basic Graphical and Statistical Procedures (Chapter in the 8 Little SAS Book) Animal Science.
Statistical Techniques I EXST7005 Miscellaneous ANOVA Topics & Summary.
i) Two way ANOVA without replication
Hierarchical (nested) ANOVA. In some two-factor experiments the level of one factor, say B, is not “cross” or “cross classified” with the other factor,
Linear regression models
Classical Regression III
ANOVA: ANalysis Of VAriance. In the general linear model x = μ + σ 2 (Age) + σ 2 (Genotype) + σ 2 (Measurement) + σ 2 (Condition) + σ 2 (ε) Each of the.
Lesson #23 Analysis of Variance. In Analysis of Variance (ANOVA), we have: H 0 :  1 =  2 =  3 = … =  k H 1 : at least one  i does not equal the others.
Chapter 3 Analysis of Variance
Intro to Statistics for the Behavioral Sciences PSYC 1900
Analysis of Variance Chapter 3Design & Analysis of Experiments 7E 2009 Montgomery 1.
Chapter 10 - Part 1 Factorial Experiments.
13-1 Designing Engineering Experiments Every experiment involves a sequence of activities: Conjecture – the original hypothesis that motivates the.
Incomplete Block Designs
Analysis of Variance & Multivariate Analysis of Variance
13 Design and Analysis of Single-Factor Experiments:
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Analysis of Variance Statistics for Managers Using Microsoft.
Chap 10-1 Analysis of Variance. Chap 10-2 Overview Analysis of Variance (ANOVA) F-test Tukey- Kramer test One-Way ANOVA Two-Way ANOVA Interaction Effects.
Example of Simple and Multiple Regression
Fundamentals of Data Analysis Lecture 7 ANOVA. Program for today F Analysis of variance; F One factor design; F Many factors design; F Latin square scheme.
One-Factor Experiments Andy Wang CIS 5930 Computer Systems Performance Analysis.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on the Least-Squares Regression Model and Multiple Regression 14.
1 Experimental Statistics - week 4 Chapter 8: 1-factor ANOVA models Using SAS.
© 2014 by Pearson Higher Education, Inc Upper Saddle River, New Jersey All Rights Reserved HLTH 300 Biostatistics for Public Health Practice, Raul.
STA305 week21 The One-Factor Model Statistical model is used to describe data. It is an equation that shows the dependence of the response variable upon.
Chapter 10 Analysis of Variance.
Lecturer’s desk INTEGRATED LEARNING CENTER ILC 120 Screen Row A Row B Row C Row D Row E Row F Row G Row.
Psychology 301 Chapters & Differences Between Two Means Introduction to Analysis of Variance Multiple Comparisons.
1 Chapter 13 Analysis of Variance. 2 Chapter Outline  An introduction to experimental design and analysis of variance  Analysis of Variance and the.
Testing Hypotheses about Differences among Several Means.
MGS3100_04.ppt/Sep 29, 2015/Page 1 Georgia State University - Confidential MGS 3100 Business Analysis Regression Sep 29 and 30, 2015.
The Completely Randomized Design (§8.3)
Design Of Experiments With Several Factors
General Linear Model 2 Intro to ANOVA.
Previous Lecture: Phylogenetics. Analysis of Variance This Lecture Judy Zhong Ph.D.
STA 286 week 131 Inference for the Regression Coefficient Recall, b 0 and b 1 are the estimates of the slope β 1 and intercept β 0 of population regression.
Topic 26: Analysis of Covariance. Outline One-way analysis of covariance –Data –Model –Inference –Diagnostics and rememdies Multifactor analysis of covariance.
Chapter Seventeen. Figure 17.1 Relationship of Hypothesis Testing Related to Differences to the Previous Chapter and the Marketing Research Process Focus.
ONE WAY ANALYSIS OF VARIANCE ANOVA o It is used to investigate the effect of one factor which occurs at h levels (≥3). Example: Suppose that we wish to.
General Linear Model.
Chapter 13 Repeated-Measures and Two-Factor Analysis of Variance
1 Experimental Statistics - week 9 Chapter 17: Models with Random Effects Chapter 18: Repeated Measures.
Topic 20: Single Factor Analysis of Variance. Outline Analysis of Variance –One set of treatments (i.e., single factor) Cell means model Factor effects.
IE241: Introduction to Design of Experiments. Last term we talked about testing the difference between two independent means. For means from a normal.
One-Way Analysis of Variance Recapitulation Recapitulation 1. Comparing differences among three or more subsamples requires a different statistical test.
Other experimental designs Randomized Block design Repeated Measures designs.
The Mixed Effects Model - Introduction In many situations, one of the factors of interest will have its levels chosen because they are of specific interest.
CRD, Strength of Association, Effect Size, Power, and Sample Size Calculations BUSI 6480 Lecture 4.
Introduction to Statistics for the Social Sciences SBS200, COMM200, GEOG200, PA200, POL200, or SOC200 Lecture Section 001, Fall 2015 Room 150 Harvill.
1 Topic 14 – Experimental Design Crossover Nested Factors Repeated Measures.
Factorial BG ANOVA Psy 420 Ainsworth. Topics in Factorial Designs Factorial? Crossing and Nesting Assumptions Analysis Traditional and Regression Approaches.
Introduction to Statistics for the Social Sciences SBS200, COMM200, GEOG200, PA200, POL200, or SOC200 Lecture Section 001, Spring 2016 Room 150 Harvill.
University of Ottawa - Bio 4158 – Applied Biostatistics © Antoine Morin and Scott Findlay 06/07/2016 6:16 AM 1 Single classification analysis of variance.
Chapter 11 Analysis of Variance
i) Two way ANOVA without replication
Relationship with one independent variable
Chapter 5 Introduction to Factorial Designs
Introduction to ANOVA.
Example of chai square test (1) false dice
Chapter 13 Group Differences
Relationship with one independent variable
The Analysis of Variance
ENM 310 Design of Experiments and Regression Analysis Chapter 3
Experimental Statistics - week 8
Chapter 10 – Part II Analysis of Variance
ANOVA: Analysis of Variance
One-way Analysis of Variance
MGS 3100 Business Analysis Regression Feb 18, 2016
Presentation transcript:

Discussion 3 1/20/2014

Outline How to fill out the table in the appendix in HW3 What does the Model statement do in SAS Proc GLM ( please download lab 2 for reference ) – What is a statistical model in layman’s terms – What are the residuals and predicted values How to calculate Variance Components Power questions

Questions?

How to fill out the table in the appendix in HW3 The treatments are the herbicides used and there are 6 different herbicides (treatments) The pots are the objects that were applied the treatment therefore they are your experimental unit Each pot contained 4 plants therefore 4 measurements were made to each pot (sub- samples)

How to fill out the table in the appendix in HW3 Specify what design was used Specify what was measured Specify your what was the treatment applied to Specify what were your treatments and how many levels (i.e. different treatments) Specify if sub-samples were measured and what was measure as a sub-sample

What does the Model statement do in SAS Proc GLM What is a statistical model in layman’s terms – A mathematical equation constructed to describe the makeup of an observation or a group of observations – Example: One-way ANOVA model The One-way ANOVA model describes an observation (Y) as a deviation from an overall mean (µ) of a group of observations due to a treatment effect (τ) and the addition of random error (ε).

What does the Model statement do in SAS Proc GLM The overall mean (Ῡ.. ) is the mean of all the observations Y ij – Y ij read as observation from the ith treatment and the jth replication. The treatment effect is the deviation from the overall mean Ῡ.. to the treatment mean (Ῡ i. ) The random error is the deviation from the treatment mean (Ῡ i. ) to a given replication of that treatment (Y ij )

What are the predicted values? – The theoretical values obtained based on the statistical model (the error is excluded from the model): What are the residuals? – The deviation from the expected values to the observed values: What does the Model statement do in SAS Proc GLM Predicted Y ij — ( )

To do ANOVA in SAS we use Proc GLM and specify our model: – Example 3.2 in lab 2: What does the Model statement do in SAS Proc GLM Proc GLM; Class Culture; Model Nlevel = Culture; Means Culture; Output Out = Residual R = Res1 P = Pred1; The Class statement tells SAS that our data is grouped by the variable Culture in the model statement we tell SAS that we want to explain Nlevel by the variable Culture ; therefore: SAS calculates the overall mean and the residuals but what Proc GLM is also calculating is the sums of squares, mean squares, F – values, and p –values for each variable we specify in the model see how in the following slide.

How does SAS calculate the sums of square (SS)? What does the Model statement do in SAS Proc GLM Which is equivalent to: When you divide the SS by their respective degrees of freedom the mean squares are obtained (Equivalent to the variances, s 2 ) Where: r = number of replications

In Nested Designs: – Example 3.4 in lab 2: What does the Model statement do in SAS Proc GLM Proc GLM; Class Trtmt Pot;* We want SAS to calculate the variances between pots because that will be our error for our ANOVA Model Growth = Trtmt Pot(Trtmt); *Pot is not a treatment. Pot is only an ID variable Random Pot(Trtmt); *must specify pot as random because we are not interested in detecting differences between pots Test H = Trtmt E = Pot(Trtmt);* Here we request a customized F test Where i is treatment ID, j is replication ID, k is subsample ID r = number of replications, s = number of sub-samples Total SS Treatment SSPot SS (e.u.)sub-sample SS

How to Calculate Variance Components We analyze nested designs to estimate the variance components which can be used to estimate optimal sub-sample size (section in lecture reading topic 3) The variance components are the estimate of variance for a particular variable (e.g. treatment, experimental unit, and subsample) – The variance components can be calculate using Proc VarComp in SAS

In the lecture topic 3 reading section an experiment is described where mint plants are exposed to different treatments of temperature and daylight and stem length was measured There are a total of 6 treatments, 3 pots (replications) per treatment, and 4 plants were measured per pot (subsamples) How to Calculate Variance Components

The sums of squares was calculated for treatment, pots and subsamples Then the variances (equivalent to means squares) How to Calculate Variance Components Total SS Treatment SSPot SS (e.u.)sub-sample SS MS TreatmentMS PotMS sub-sample t -1t (r -1)rt (s - 1) Where t = number of treatments, r = number of replications, and s = number of sub-samples

The variance due to the sub-sample is the variance due to error: How to Calculate Variance Components MS sub-sample = σ δ 2 To estimate the variance component of the subsample we just calculate the MS of sub- sample rt (s - 1) = 0.93

The variance of pots contains the variance of the sub-samples (NOTE: this is not the variance component of pots): How to Calculate Variance Components MS Pots = σ δ 2 + 4σ ε 2 To estimate the variance component of pots we have to solve for σ ε 2. The variance components of pot is calculated below: σ ε 2 = (MS Pots - σ δ 2 ) / 4 σ ε 2 = ( ) / 4 = 0.30 = 2.15

The variance of treatments includes the variance of pots and subsamples (NOTE:): How to Calculate Variance Components MS Treatments = σ δ 2 + 4σ ε Στ 2 /5 = To estimate the variance component of treatments only we have to solve for Στ 2 /5 Στ 2 /5 = (MS Treatments - σ δ 2 - 4σ ε 2 ) / 12 Στ 2 /5 = ( – 4*0.3) / 12 = 2.81

Power How to use Power Charts for ANOVA