GLM Example: One-Way Analysis of Covariance

Similar documents
Statistical Consulting Topics. RCBD with a covariate

Replicated Latin Square and Crossover Designs

Latin Square Design. Design of Experiments - Montgomery Section 4-2

RANDOMIZED COMPLETE BLOCK DESIGN (RCBD) Probably the most used and useful of the experimental designs.

Modelling Intervention Effects in Clustered Randomized Pretest/Posttest Studies. Ed Stanek

RCBD with Sampling Pooling Experimental and Sampling Error

PROC GLM AND PROC MIXED CODES FOR TREND ANALYSES FOR ROW-COLUMN DESIGNED EXPERIMENTS

Problem Points Score USE YOUR TIME WISELY USE CLOSEST DF AVAILABLE IN TABLE SHOW YOUR WORK TO RECEIVE PARTIAL CREDIT

1'-tq/? BU-- _-M August 2000 Technical Report Series of the Department of Biometrics, Cornell University, Ithaca, New York 14853

Linear mixed models and when implied assumptions not appropriate

Block Block Block

Subject-specific observed profiles of change from baseline vs week trt=10000u

Mixed Models Lecture Notes By Dr. Hanford page 151 More Statistics& SAS Tutorial at Type 3 Tests of Fixed Effects

Mixed models in R using the lme4 package Part 2: Longitudinal data, modeling interactions

More About Regression

I. Model. Q29a. I love the options at my fingertips today, watching videos on my phone, texting, and streaming films. Main Effect X1: Gender

Model II ANOVA: Variance Components

MANOVA/MANCOVA Paul and Kaila

Resampling Statistics. Conventional Statistics. Resampling Statistics

DV: Liking Cartoon Comedy

MANOVA COM 631/731 Spring 2017 M. DANIELS. From Jeffres & Neuendorf (2015) Film and TV Usage National Survey

UPDATED STANDARDIZED CATCH RATES OF BLUEFIN TUNA (THUNNUS THYNNUS) FROM THE TRAP FISHERY IN TUNISIA

Moving on from MSTAT. March The University of Reading Statistical Services Centre Biometrics Advisory and Support Service to DFID

Paired plot designs experience and recommendations for in field product evaluation at Syngenta

Sociology 7704: Regression Models for Categorical Data Instructor: Natasha Sarkisian

Chapter 27. Inferences for Regression. Remembering Regression. An Example: Body Fat and Waist Size. Remembering Regression (cont.)

Mixed Effects Models Yan Wang, Bristol-Myers Squibb, Wallingford, CT

Bootstrap Methods in Regression Questions Have you had a chance to try any of this? Any of the review questions?

8 Nonparametric test. Question 1: Are (expected) value of x and y the same?

Predicting the Importance of Current Papers

K-Pop Idol Industry Minhyung Lee

TWO-FACTOR ANOVA Kim Neuendorf 4/9/18 COM 631/731 I. MODEL

ECONOMICS 351* -- INTRODUCTORY ECONOMETRICS. Queen's University Department of Economics. ECONOMICS 351* -- Winter Term 2005 INTRODUCTORY ECONOMETRICS

Sociology 704: Topics in Multivariate Statistics Instructor: Natasha Sarkisian

Perceptual dimensions of short audio clips and corresponding timbre features

Supplementary Figures Supplementary Figure 1 Comparison of among-replicate variance in invasion dynamics

SECTION I. THE MODEL. Discriminant Analysis Presentation~ REVISION Marcy Saxton and Jenn Stoneking DF1 DF2 DF3

Algebra I Module 2 Lessons 1 19

Exercises. ASReml Tutorial: B4 Bivariate Analysis p. 55

Research Article. ISSN (Print) *Corresponding author Shireen Fathima

Comparison of Mixed-Effects Model, Pattern-Mixture Model, and Selection Model in Estimating Treatment Effect Using PRO Data in Clinical Trials

GENOTYPE AND ENVIRONMENTAL DIFFERENCES IN FIBRE DIAMETER PROFILE CHARACTERISTICS AND THEIR RELATIONSHIP WITH STAPLE STRENGTH IN MERINO SHEEP

1. Model. Discriminant Analysis COM 631. Spring Devin Kelly. Dataset: Film and TV Usage National Survey 2015 (Jeffres & Neuendorf) Q23a. Q23b.

Best Pat-Tricks on Model Diagnostics What are they? Why use them? What good do they do?

Discriminant Analysis. DFs

Modeling television viewership

Do delay tactics affect silking date and yield of maize inbreds? Stephen Zimmerman Creative Component November 2015

Repeated measures ANOVA

For these items, -1=opposed to my values, 0= neutral and 7=of supreme importance.

System Identification

A STATISTICAL VIEW ON THE EXPRESSIVE TIMING OF PIANO ROLLED CHORDS

CONCLUSION The annual increase for optical scanner cost may be due partly to inflation and partly to special demands by the State.

Relationships Between Quantitative Variables

(Week 13) A05. Data Analysis Methods for CRM. Electronic Commerce Marketing

CS229 Project Report Polyphonic Piano Transcription

K ABC Mplus CFA Model. Syntax file (kabc-mplus.inp) Data file (kabc-mplus.dat)

Relationships. Between Quantitative Variables. Chapter 5. Copyright 2006 Brooks/Cole, a division of Thomson Learning, Inc.

THE FAIR MARKET VALUE

hprints , version 1-1 Oct 2008

SUBMISSION AND GUIDELINES

Unsymmetrical Aryl(2,4,6-trimethoxyphenyl)iodonium Salts: One-pot Synthesis, Scope, Stability, and Synthetic Applications. Supporting Information

LCD and Plasma display technologies are promising solutions for large-format

Normalization Methods for Two-Color Microarray Data

subplots (30-m by 33-m) without space between potential subplots. Depending on the size of the

in the Howard County Public School System and Rocketship Education

MID-TERM EXAMINATION IN DATA MODELS AND DECISION MAKING 22:960:575

Mixed Linear Models. Case studies on speech rate modulations in spontaneous speech. LSA Summer Institute 2009, UC Berkeley

%CHCKFRQS A Macro Application for Generating Frequencies for QC and Simple Reports

Setting Energy Efficiency Requirements Using Multivariate Regression

Detecting Medicaid Data Anomalies Using Data Mining Techniques Shenjun Zhu, Qiling Shi, Aran Canes, AdvanceMed Corporation, Nashville, TN

Analysis of Seabright study on demand for Sky s pay TV services. Annex 7 to pay TV phase three document

Modeling Voting Behavior in the Eurovision Song Contest

Timing and Social Change: An Introduction to and Short Course on Event History Analysis

Note: Please use the actual date you accessed this material in your citation.

Automatic Laughter Detection

Analysis of Packet Loss for Compressed Video: Does Burst-Length Matter?

Reconstruction of Ca 2+ dynamics from low frame rate Ca 2+ imaging data CS229 final project. Submitted by: Limor Bursztyn

Image Resolution and Contrast Enhancement of Satellite Geographical Images with Removal of Noise using Wavelet Transforms

Drift Compensation for Reduced Spatial Resolution Transcoding

Visible Vibrations (originally Chladni Patterns) - Adding Memory Buttons. Joshua Gutwill. August 2002

Variation in fibre diameter profile characteristics between wool staples in Merino sheep

Regression Model for Politeness Estimation Trained on Examples

Draft December 15, Rock and Roll Bands, (In)complete Contracts and Creativity. Cédric Ceulemans, Victor Ginsburgh and Patrick Legros 1

STAT 113: Statistics and Society Ellen Gundlach, Purdue University. (Chapters refer to Moore and Notz, Statistics: Concepts and Controversies, 8e)

Gender and Age Estimation from Synthetic Face Images with Hierarchical Slow Feature Analysis

Modeling memory for melodies

Restoration of Hyperspectral Push-Broom Scanner Data

Factors affecting enhanced video quality preferences

Draft last edited May 13, 2013 by Belinda Robertson

TERRESTRIAL broadcasting of digital television (DTV)

Guide for Utilization Measurement and Management of Fleet Equipment NCHRP 13-05

Automatic Laughter Detection

Aesthetic vs. efferent reading in reading comprehension courses in the Iranian EFL context

Calibrated Colour Mapping Between LCD and CRT Displays: A Case Study

The Bias-Variance Tradeoff

Master's thesis FACULTY OF SCIENCES Master of Statistics

Video-Viewing Behavior in the Era of Connected Devices

K3. Why did the certain ethnic mother put her baby in a crib with 20-foot high legs? So she could hear it if it fell out of bed.

complex than coding of interlaced data. This is a significant component of the reduced complexity of AVS coding.

Objective Video Quality Assessment of Direct Recording and Datavideo HDR-40 Recording System

Transcription:

Understanding Design and Analysis of Research Experiments An animal scientist is interested in determining the effects of four different feed plans on hogs. Twenty four hogs of a breed were chosen and randomly assigned to one of the four feeding plans for certain period. Initial weight (X) of the hogs and gains in weight (Y) in pounds at the end of the experiment are given below: Feed Plan 1 2 3 4 X Y X Y X Y X Y 30 165 24 180 34 156 41 201 27 170 31 169 32 189 32 173 20 130 20 171 35 138 30 200 21 156 26 161 35 190 35 193 33 167 20 180 30 160 28 142 29 151 25 170 29 172 36 189 Since differences in initial weight may contribute to the differences in gain in weight, it is decided to use initial weight as a covariate in an analysis of covariance. Assumptions: Initial weight (X ij ) are fixed, measured without error and independent of treatments (feed plans); Regression of gain in weight, after removal of treatment effect (i.e., Y ij - Y i. ), on initial weight, X ij, is linear and independent of treatments; The residuals (e ij ) are normally and independently distributed with zero mean and a common variance, i.e., e ij ~ N(0, 2 ). 1 of 7 09/26/2002 2:45 PM

ANOVA (Gain in weight unadjusted): Source df SS MS F Treatment 3 2163.1 721.0 2.43 Error 20 5937.8 296.9 CV = 10.2% SEM = 17.2 ANOVA (Gain in weight adjusted for initial weight): Sums of products Y adjusted for X df (X,X) (X,Y) (Y,Y) df SS MS F Trt. 3 365.5 451.2 2163.1 Error 20 361.5 496.8 5937.8 19 5255.1 276.6 T + E 23 727.0 948.0 8100.9 22 6864.7 Trt adj. 3 1609.6 536.5 1.94 Test for regression coefficient = 0 (i.e., initial weight has nothing to do with gain in weight): Test for homogeneity of within-treatment regressions (cf. Steel & Torrie 1980, Table 17.6): Adjusted means: 2 of 7 09/26/2002 2:45 PM

SAS programs to carry out the analysis of covariance for the above data options nodate nonumber; title ''; data raw; input trt x y; cards; 1 30 165 1 27 170 1 20 130 1 21 156 1 33 167 1 29 151 2 24 180 2 31 169 2 20 171 2 26 161 2 20 180 2 25 170 3 34 156 3 32 189 3 35 138 3 35 190 3 30 160 3 29 172 4 41 201 4 32 173 4 30 200 4 35 193 4 28 142 4 36 189 ; title2 'ANOVA (Gain in weight unadjusted)'; proc anova manova outstat=newstat data=raw; class trt; model x y=trt; title2 'Output cross-product matrics'; proc print data=newstat; title2 'ANOVA (Gain in weight adjusted): SAS Type III SS should be used'; proc glm data=raw; 3 of 7 09/26/2002 2:45 PM

class trt; model y=trt x/solution ss1 ss2 ss3 ss4; lsmeans trt / stderr pdiff cov out=adjmeans; title2 'Output adjusted means'; proc print data=adjmeans; /******************************************************************** Compute necessary statistics to test for homogeneity of regressions ********************************************************************/ proc sort data=raw out=new; by trt; proc corr data=new outp=sscp csscp noprint; var x y; by trt; data sscp; set sscp; if _type_='csscp'; data s1; set sscp(keep=trt _type name_ x); if _name_='x'; data s2(drop=_name_ rename=(x=xy)); set sscp(keep= _name_ x); if _name_='y'; data s3(drop=_name_); set sscp(keep= _name_ y); if _name_='y'; data snew; merge s1 s2 s3; drop _name type_; rss=y-(xy*xy/x); title2 'Output statistics needed to test for homogeneity of regressions'; proc means data=snew n sum; var x xy y rss; SAS OUTPUT ANOVA (Gain in weight unadjusted) Analysis of Variance Procedure Class Level Information Class Levels Values TRT 4 1 2 3 4 Number of observations in data set = 24 ANOVA (Gain in weight unadjusted) 4 of 7 09/26/2002 2:45 PM

Analysis of Variance Procedure Dependent Variable: X Source DF Sum of Squares Mean Square F Valu Model 3 365.45833333 121.81944444 6.7 Error 20 361.50000000 18.07500000 Corrected Total 23 726.95833333 R-Square C.V. Root MSE 0.502723 14.51427 4.25147033 Source DF Anova SS Mean Square F Valu TRT 3 365.45833333 121.81944444 6.7 Dependent Variable: Y ANOVA (Gain in weight unadjusted) Analysis of Variance Procedure Source DF Sum of Squares Mean Square F Valu Model 3 2163.12500000 721.04166667 2.4 Error 20 5937.83333333 296.89166667 Corrected Total 23 8100.95833333 R-Square C.V. Root MSE 0.267021 10.15303 17.23054458 Source DF Anova SS Mean Square F Valu TRT 3 2163.12500000 721.04166667 2.4 Output cross-product matrics OBS _NAME SOURCE TYPE_ X Y DF SS F 1 X ERROR ERROR 361.500 496.83 20 361.50. 2 Y ERROR ERROR 496.833 5937.83 20 5937.83. 3 X TRT ANOVA 365.458 451.21 3 365.46 6.73966 4 Y TRT ANOVA 451.208 2163.13 3 2163.13 2.42864 ANOVA (Gain in weight adjusted): SAS Type III SS should be used General Linear Models Procedure Class Level Information Class Levels Values 5 of 7 09/26/2002 2:45 PM

TRT 4 1 2 3 4 Number of observations in data set = 24 Dependent Variable: Y ANOVA (Gain in weight adjusted): SAS Type III SS should be used General Linear Models Procedure Source DF Sum of Squares Mean Square F Valu Model 4 2845.95587444 711.48896861 2.5 Error 19 5255.00245889 276.57907678 Corrected Total 23 8100.95833333 R-Square C.V. Root MSE 0.351311 9.799558 16.63066676 Source DF Type I SS Mean Square F Valu TRT 3 2163.12500000 721.04166667 2.6 Source DF Type II SS Mean Square F Valu TRT 3 1609.59477846 536.53159282 1.9 Source DF Type III SS Mean Square F Valu TRT 3 1609.59477846 536.53159282 1.9 Source DF Type IV SS Mean Square F Valu TRT 3 1609.59477846 536.53159282 1.9 T for H0: Pr > T Std Parameter Estimate Parameter=0 Es INTERCEPT 136.7296757 B 4.52 0.0002 30. TRT 1-16.8794375 B -1.48 0.1547 11. 2 1.6607500 B 0.13 0.8965 12. 3-13.8965729 B -1.44 0.1664 9. 4 0.0000000 B... X 1.3743661 1.57 0.1326 0. NOTE: The X'X matrix has been found to be singular and a generalized inverse was use the normal equations. Estimates followed by the letter 'B' are biased, and a unique estimators of the parameters. 6 of 7 09/26/2002 2:45 PM

ANOVA (Gain in weight adjusted): SAS Type III SS should be used General Linear Models Procedure Least Squares Means TRT Y Std Err Pr > T Pr > T H0: LSMEAN(i)=LSMEAN LSMEAN LSMEAN H0:LSMEAN=0 i/j 1 2 3 1 160.107711 7.167178 0.0001 1. 0.0743 0.7868 0. 2 178.647898 8.056441 0.0001 2 0.0743. 0.2092 0. 3 163.090576 7.346555 0.0001 3 0.7868 0.2092. 0. 4 176.987148 7.793636 0.0001 4 0.1547 0.8965 0.1664. NOTE: To ensure overall protection level, only probabilities associated with pre-pla comparisons should be used. Output adjusted means OBS _NAME_ TRT LSMEAN STDERR NUMBER COV1 COV2 COV3 1 Y 1 160.108 7.16718 1 51.3684 9.9581-6.4435 2 Y 2 178.648 8.05644 2 9.9581 64.9062-12.1710 3 Y 3 163.091 7.34655 3-6.4435-12.1710 53.9719 4 Y 4 176.987 7.79364 4-8.7866-16.5968 10.7391 Output statistics needed to test for homogeneity of regressions This information is maintained by Dr. Rong-Cai Yang Last Revised/Reviewed July 14, 1998 Variable N Sum ------------------------- X 4 361.5000000 XY 4 496.8333333 Y 4 5937.83 RSS 4 4196.40 [Top of Document] The user of this information agrees to the terms and conditions in the terms of use and disclaimer. Copyright 1999-2000 Her Majesty the Queen in the Right of Alberta. All rights reserved. 7 of 7 09/26/2002 2:45 PM