The Kenton Study. (Applied Linear Statistical Models, 5th ed., pp , Kutner et al., 2005) Page 1 of 5

Similar documents
Contrasts and Multiple Comparisons

1 The SAS System 23:01 Friday, November 9, 2012

Factorial ANOVA with SAS

Factorial ANOVA. Skipping... Page 1 of 18

Within-Cases: Multivariate approach part one

Centering and Interactions: The Training Data

Chapter Seven: Multiple Regression II

Repeated Measures Part 4: Blood Flow data

Module 3: SAS. 3.1 Initial explorative analysis 02429/MIXED LINEAR MODELS PREPARED BY THE STATISTICS GROUPS AT IMM, DTU AND KU-LIFE

R-Square Coeff Var Root MSE y Mean

Cell means coding and effect coding

CSC 328/428 Summer Session I 2002 Data Analysis for the Experimenter FINAL EXAM

Week 3/4 [06+ Sept.] Class Activities. File: week sep07.doc Directory: \\Muserver2\USERS\B\\baileraj\Classes\sta402\handouts

BIOMETRICS INFORMATION

SAS data statements and data: /*Factor A: angle Factor B: geometry Factor C: speed*/

The ANOVA Procedure (Chapter)

STAT 5200 Handout #21. Split Split Plot Example (Ch. 16)

STAT 5200 Handout #24: Power Calculation in Mixed Models

SAS Programs and Output for Alternative Experimentals Designs. Section 13-8 in Howell (2010)

STAT 2607 REVIEW PROBLEMS Word problems must be answered in words of the problem.

NCSS Statistical Software. Design Generator

Comparison of Means: The Analysis of Variance: ANOVA

STA431 Handout 9 Double Measurement Regression on the BMI Data

Lab #9: ANOVA and TUKEY tests

Introductory Guide to SAS:

STAT:5201 Applied Statistic II

6:1 LAB RESULTS -WITHIN-S ANOVA

Data Management - 50%

Flattening Dependent Tables from Relational Databases for Use in SAS Processing

enote 3 1 enote 3 Case study

5:2 LAB RESULTS - FOLLOW-UP ANALYSES FOR FACTORIAL

Week 6, Week 7 and Week 8 Analyses of Variance

Stat 500 lab notes c Philip M. Dixon, Week 10: Autocorrelated errors

Recall the expression for the minimum significant difference (w) used in the Tukey fixed-range method for means separation:

SAS PROC GLM and PROC MIXED. for Recovering Inter-Effect Information

* Sample SAS program * Data set is from Dean and Voss (1999) Design and Analysis of * Experiments. Problem 3, page 129.

ST512. Fall Quarter, Exam 1. Directions: Answer questions as directed. Please show work. For true/false questions, circle either true or false.

T-test og variansanalyse i SAS. T-test og variansanalyse i SAS p.1/18

ST706: Spring One-Way Random effects example.

Simulating Multivariate Normal Data

SAS/STAT 13.1 User s Guide. The NESTED Procedure

Introduction to Statistical Analyses in SAS

Stat 411/511 MULTIPLE COMPARISONS. Charlotte Wickham. stat511.cwick.co.nz. Nov

2.2 Introduction to SAS

SAS: AN OVERVIEW. RAJENDER PARSAD Indian Agricultural Statistics Research Institute Library Avenue, New Delhi

The NESTED Procedure (Chapter)

Stat 5100 Handout #6 SAS: Linear Regression Remedial Measures

The Solution to the Factorial Analysis of Variance

Analysis of Two-Level Designs

Statistics Lab #7 ANOVA Part 2 & ANCOVA

Statistics and Data Analysis. Common Pitfalls in SAS Statistical Analysis Macros in a Mass Production Environment

Introduction to SAS proc calis

Fly wing length data Sokal and Rohlf Box 10.1 Ch13.xls. on chalk board

Enter your UID and password. Make sure you have popups allowed for this site.

Page 1 of 8. Language Development Study

THE UNIVERSITY OF BRITISH COLUMBIA FORESTRY 430 and 533. Time: 50 minutes 40 Marks FRST Marks FRST 533 (extra questions)

Generating Least Square Means, Standard Error, Observed Mean, Standard Deviation and Confidence Intervals for Treatment Differences using Proc Mixed

by John Barnard and Walter T. Federer Cornell University

Online Supplementary Appendix for. Dziak, Nahum-Shani and Collins (2012), Multilevel Factorial Experiments for Developing Behavioral Interventions:

Using PC SAS/ASSIST* for Statistical Analyses

LAMPIRAN. Tests of Normality. Kolmogorov-Smirnov a. Berat_Limfa KB KP P

Analysis of variance - ANOVA

enote 3 1 enote 3 Case study

1 Downloading files and accessing SAS. 2 Sorting, scatterplots, correlation and regression

THIS IS NOT REPRESNTATIVE OF CURRENT CLASS MATERIAL. STOR 455 Midterm 1 September 28, 2010

Chapter 2. Introduction to SAS. 2.1 The Four Main File Types

9.1 Random coefficients models Constructed data Consumer preference mapping of carrots... 10

E-Campus Inferential Statistics - Part 2

Lecture Notes #4: Randomized Block, Latin Square, and Factorials4-1

Stat 5303 (Oehlert): Split Plots 1

Output from redwing2.r

Mixed Effects Models. Biljana Jonoska Stojkova Applied Statistics and Data Science Group (ASDa) Department of Statistics, UBC.

SAS/STAT 14.2 User s Guide. The PLM Procedure

For our example, we will look at the following factors and factor levels.

Hypermarket Retail Analysis Customer Buying Behavior. Reachout Analytics Client Sample Report

Laboratory for Two-Way ANOVA: Interactions

Stat 5303 (Oehlert): Unbalanced Factorial Examples 1

Laboratory Topics 1 & 2

MIXED MODEL PROCEDURES TO ASSESS POWER, PRECISION, AND SAMPLE SIZE IN THE DESIGN OF EXPERIMENTS

APPLIED LINEAR STATISTICAL MODELS 5TH EDITION PDF

Regression on the trees data with R

Intermediate SAS: Statistics

STAT 5200 Handout #25. R-Square & Design Matrix in Mixed Models

Outline. Topic 16 - Other Remedies. Ridge Regression. Ridge Regression. Ridge Regression. Robust Regression. Regression Trees. Piecewise Linear Model

Conditional and Unconditional Regression with No Measurement Error

5.5 Regression Estimation

Getting Correct Results from PROC REG

STAT:5400 Computing in Statistics

CREATING A SALES PROPOSAL. Proposal Setup. Tabbed Job Summary Form

Output from redwing3.r

LAMPIRAN Hubungan Job..., Dian Tri Utami, F.PSI UI, 2008

Generalized Additive Models

The STANDARD Procedure

The following procedures and commands, are covered in this part: Command Purpose Page

MS in Applied Statistics: Study Guide for the Data Science concentration Comprehensive Examination. 1. MAT 456 Applied Regression Analysis

The SURVEYREG Procedure

. predict mod1. graph mod1 ed, connect(l) xlabel ylabel l1(model1 predicted income) b1(years of education)

( ) = Y ˆ. Calibration Definition A model is calibrated if its predictions are right on average: ave(response Predicted value) = Predicted value.

Withdrawn Equity Offerings: Event Study and Cross-Sectional Regression Analysis Using Eventus Software

Checking the Math Data

Transcription:

The Kenton Study The Kenton Food Company wished to test four different package designs for a new breakfast cereal. Twenty stores, with approximately equal sales volumes, were selected as the experimental units. Each store was randomly assigned one of the package designs, with each package design assigned to five stores. A fire occurred in one store during the study period, so this store had to be dropped from the study. Hence, one of the designs was tested in only four stores. The stores were chosen to be comparable in location and sales volume. Other relevant conditions that could affect sales, such as price, amount and location of shelf space, and special promotional efforts, were kept the same for all of the stores in the experiment. Sales, in number of cases, were observed for the study period, and the results are recorded in Table 16.1. This study is a completely randomized design with package design as the single, four-level factor. (Applied Linear Statistical Models, 5th ed., pp. 724-725, Kutner et al., 2005) Page 1 of 5

% cat kenton.data 1 11 1 17 1 16 1 14 1 15 2 12 2 10 2 15 2 19 2 11 3 23 3 20 3 18 3 17 4 27 4 33 4 22 4 26 4 28 /********************** kenton1.sas **************************/ options linesize=79 pagesize=100 noovp formdlim=' '; title 'Kenton Oneway Example From Neter et al.'; proc format; value pakfmt 1 = '3Colour Cartoon' 2 = '3Col No Cartoon' 3 = '5Colour Cartoon' 4 = '5Col No Cartoon'; data food; infile 'kenton.data'; input package sales; label package = 'Package Design' sales = 'Number of Cases Sold'; format package pakfmt.; /* Basic one-way ANOVA -- well, not completely basic */ proc glm; class package; model sales = package; /* Multiple comparisons. Tukey should be best */ lsmeans package / pdiff adjust=tukey; /* Test some custom contrasts */ contrast '3Colourvs5Colour' package 1 1-1 -1; contrast 'Cartoon' package 1-1 1-1; contrast 'CartoonDepends' package 1-1 -1 1; /* Test a COLLECTION of contrasts */ contrast 'Overall F = 18.59' package 1-1 0 0, package 0 1-1 0, package 0 0 1-1; /* Get estimated value of a contrast along with a test (F=t-squared) */ estimate '3Colourvs5Colour' package 1 1-1 -1 / divisor = 2; /* Scheffe critical value for a test of s contrasts is critval * (p-1)/s. For p=4 means and a single contrast, it's critval * (4-1)/1 = 3 */ proc iml; title2 'Critical value for all possible 1-df Scheffe tests'; numdf = 3; /* p-1 = Numerator degrees of freedom for initial test */ dendf = 15; /* n-p = Denominator degrees of freedom for initial test */ alpha = 0.05; critval = finv(1-alpha,numdf,dendf); print critval; ScheffeCritval = critval*numdf; print ScheffeCritval; Page 2 of 5

Kenton Oneway Example From Kutner et al. 1 Class Level Information Class package Levels Values 4 3Col No Cartoon 3Colour Cartoon 5Col No Cartoon 5Colour Cartoon Number of Observations Read 19 Number of Observations Used 19 Kenton Oneway Example From Kutner et al. 2 Number of Cases Sold Sum of Source DF Squares Mean Square F Value Pr > F Model 3 588.2210526 196.0736842 18.59 <.0001 Error 15 158.2000000 10.5466667 Corrected Total 18 746.4210526 R-Square Coeff Var Root MSE sales Mean 0.788055 17.43042 3.247563 18.63158 Source DF Type I SS Mean Square F Value Pr > F package 3 588.2210526 196.0736842 18.59 <.0001 Source DF Type III SS Mean Square F Value Pr > F package 3 588.2210526 196.0736842 18.59 <.0001 Page 3 of 5

Kenton Oneway Example From Kutner et al. 3 Least Squares Means Adjustment for Multiple Comparisons: Tukey-Kramer LSMEAN package sales LSMEAN Number 3Col No Cartoon 13.4000000 1 3Colour Cartoon 14.6000000 2 5Col No Cartoon 27.2000000 3 5Colour Cartoon 19.5000000 4 Least Squares Means for effect package Pr > t for H0: LSMean(i)=LSMean(j) 1 0.9353 <.0001 0.0583 2 0.9353 0.0001 0.1549 3 <.0001 0.0001 0.0142 4 0.0583 0.1549 0.0142 Kenton Oneway Example From Kutner et al. 4 Number of Cases Sold Contrast DF Contrast SS Mean Square F Value Pr > F 3Colourvs5Colour 1 411.4000000 411.4000000 39.01 <.0001 Cartoon 1 49.7058824 49.7058824 4.71 0.0464 CartoonDepends 1 93.1882353 93.1882353 8.84 0.0095 Overall F = 18.59 3 588.2210526 196.0736842 18.59 <.0001 Standard Parameter Estimate Error t Value Pr > t 3Colourvs5Colour -9.35000000 1.49705266-6.25 <.0001 Kenton Oneway Example From Kutner et al. 5 Critical value for all possible 1-df Scheffe tests critval 3.2873821 ScheffeCritval 9.8621463 Page 4 of 5

Comparing adjusted p-values for Tukey, Bonferroni, Scheffé Adjustment for Multiple Comparisons: Tukey-Kramer LSMEAN package sales LSMEAN Number 3Col No Cartoon 13.4000000 1 3Colour Cartoon 14.6000000 2 5Col No Cartoon 27.2000000 3 5Colour Cartoon 19.5000000 4 1 0.9353 <.0001 0.0583 2 0.9353 0.0001 0.1549 3 <.0001 0.0001 0.0142 4 0.0583 0.1549 0.0142 Adjustment for Multiple Comparisons: Bonferroni 1 1.0000 <.0001 0.0808 2 1.0000 0.0001 0.2397 3 <.0001 0.0001 0.0180 4 0.0808 0.2397 0.0180 Adjustment for Multiple Comparisons: Scheffe 1 0.9507 <.0001 0.0895 2 0.9507 0.0002 0.2125 3 <.0001 0.0002 0.0248 4 0.0895 0.2125 0.0248 Page 5 of 5