Latin Squares (Kirk, chapter 8) BUSI 6480 Lecture 7.

Slides:



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

Statistics in Science  Statistical Analysis & Design in Research Structure in the Experimental Material PGRM 10.
Latin Square Designs (§15.4)
1 Chapter 4 Experiments with Blocking Factors The Randomized Complete Block Design Nuisance factor: a design factor that probably has an effect.
Chapter 4 Randomized Blocks, Latin Squares, and Related Designs
Other Analysis of Variance Designs Chapter 15. Chapter Topics Basic Experimental Design Concepts  Defining Experimental Design  Controlling Nuisance.
STA305 week 101 RCB - Example An accounting firm wants to select training program for its auditors who conduct statistical sampling as part of their job.
Random Effects & Repeated Measures Alternatives to Fixed Effects Analyses.
Analysis of variance (ANOVA)-the General Linear Model (GLM)
Chapter Fourteen The Two-Way Analysis of Variance.
Chapter 5 Introduction to Factorial Designs
1 Multifactor ANOVA. 2 What We Will Learn Two-factor ANOVA K ij =1 Two-factor ANOVA K ij =1 –Interaction –Tukey’s with multiple comparisons –Concept of.
RESEARCH STATISTICS Jobayer Hossain Larry Holmes, Jr, November 20, 2008 Analysis of Variance.
Experimental Design Terminology  An Experimental Unit is the entity on which measurement or an observation is made. For example, subjects are experimental.
1 Chapter 5 Introduction to Factorial Designs Basic Definitions and Principles Study the effects of two or more factors. Factorial designs Crossed:
Experimental Design & Analysis
1 Chapter 7 Blocking and Confounding in the 2 k Factorial Design.
Analysis of variance (2) Lecture 10. Normality Check Frequency histogram (Skewness & Kurtosis) Probability plot, K-S test Normality Check Frequency histogram.
Incomplete Block Designs
Repeated Measures ANOVA Used when the research design contains one factor on which participants are measured more than twice (dependent, or within- groups.
ANCOVA Lecture 9 Andrew Ainsworth. What is ANCOVA?
Factorial Experiments
Introduction to SAS Essentials Mastering SAS for Data Analytics
1 Experimental Statistics - week 7 Chapter 15: Factorial Models (15.5) Chapter 17: Random Effects Models.
1 Experimental Statistics - week 6 Chapter 15: Randomized Complete Block Design (15.3) Factorial Models (15.5)
1 Experimental Statistics - week 4 Chapter 8: 1-factor ANOVA models Using SAS.
G Lecture 5 Example fixed Repeated measures as clustered data
23-1 Analysis of Covariance (Chapter 16) A procedure for comparing treatment means that incorporates information on a quantitative explanatory variable,
1 Experimental Statistics - week 2 Review: 2-sample t-tests paired t-tests Thursday: Meet in 15 Clements!! Bring Cody and Smith book.
7-1 The Strategy of Experimentation Every experiment involves a sequence of activities: 1.Conjecture – the original hypothesis that motivates the.
Testing Multiple Means and the Analysis of Variance (§8.1, 8.2, 8.6) Situations where comparing more than two means is important. The approach to testing.
Randomized Block Design (Kirk, chapter 7) BUSI 6480 Lecture 6.
5-5 Inference on the Ratio of Variances of Two Normal Populations The F Distribution We wish to test the hypotheses: The development of a test procedure.
STA305 week 51 Two-Factor Fixed Effects Model The model usually used for this design includes effects for both factors A and B. In addition, it includes.
Psych 5500/6500 Other ANOVA’s Fall, Factorial Designs Factorial Designs have one dependent variable and more than one independent variable (i.e.
The Completely Randomized Design (§8.3)
BUSI 6480 Lecture 8 Repeated Measures.
ANOVA: Analysis of Variance.
Control of Experimental Error Blocking - –A block is a group of homogeneous experimental units –Maximize the variation among blocks in order to minimize.
1 Psych 5510/6510 Chapter 14 Repeated Measures ANOVA: Models with Nonindependent ERRORs Part 3: Factorial Designs Spring, 2009.
Latin Square Designs KNNL – Sections Description Experiment with r treatments, and 2 blocking factors: rows (r levels) and columns (r levels)
Chapter 13 Complete Block Designs. Randomized Block Design (RBD) g > 2 Treatments (groups) to be compared r Blocks of homogeneous units are sampled. Blocks.
1 Experimental Statistics - week 9 Chapter 17: Models with Random Effects Chapter 18: Repeated Measures.
Correlated-Samples ANOVA The Univariate Approach.
1 Experimental Statistics Spring week 6 Chapter 15: Factorial Models (15.5)
Experimental Statistics - week 3
7-2 Factorial Experiments A significant interaction mask the significance of main effects. Consequently, when interaction is present, the main effects.
One-Way Analysis of Variance Recapitulation Recapitulation 1. Comparing differences among three or more subsamples requires a different statistical test.
Smith/Davis (c) 2005 Prentice Hall Chapter Fifteen Inferential Tests of Significance III: Analyzing and Interpreting Experiments with Multiple Independent.
Other experimental designs Randomized Block design Repeated Measures designs.
Latin Square Design If you can block on two (perpendicular) sources of variation (rows x columns) you can reduce experimental error when compared to the.
CRD, Strength of Association, Effect Size, Power, and Sample Size Calculations BUSI 6480 Lecture 4.
Chapter 9 More Complicated Experimental Designs. Randomized Block Design (RBD) t > 2 Treatments (groups) to be compared b Blocks of homogeneous units.
Experimental Statistics - week 9
Topic 29: Three-Way ANOVA. Outline Three-way ANOVA –Data –Model –Inference.
BMTRY 789 Lecture 6: Proc Sort, Random Number Generators, and Do Loops Readings – Chapters 5 & 6 Lab Problem - Brain Teaser Homework Due – HW 2 Homework.
Topic 27: Strategies of Analysis. Outline Strategy for analysis of two-way studies –Interaction is not significant –Interaction is significant What if.
1 Mixed and Random Effects Models 1-way ANOVA - Random Effects Model 1-way ANOVA - Random Effects Model 2-way ANOVA - Mixed Effects Model 2-way ANOVA -
ANOVA and Multiple Comparison Tests
1 Experimental Statistics - week 8 Chapter 17: Mixed Models Chapter 18: Repeated Measures.
Design Lecture: week3 HSTS212.
Factorial Experiments
Chapter 5 Introduction to Factorial Designs
5-5 Inference on the Ratio of Variances of Two Normal Populations
Statistics for the Social Sciences
Latin Square Designs KNNL – Sections
Randomized Complete Block and Repeated Measures (Each Subject Receives Each Treatment) Designs KNNL – Chapters 21,
7-2 Factorial Experiments
Experimental Statistics - week 8
STATISTICS INFORMED DECISIONS USING DATA
Presentation transcript:

Latin Squares (Kirk, chapter 8) BUSI 6480 Lecture 7

Example: Number of Combinations of Factor Levels May Be Too Large

Fewer Combinations of Factor Levels Without Bias

Treatment Levels Always Appear Once In Each Row and Column

Sums of Squares For One Observation Per Cell (for more than one obs. per cell use Table 8.3-1, p. 326)

Blocks may be Treatments of interest as well

Another Example of a Latin Square Design  Main Factor – Evaluate Perceived Attractiveness of 4 types of Animation on Web Pages  Nuisance Factor 1 – Four Web Designs  Nuisance Factor 2 – Four Color Patterns  Subjects can be assigned to factor level combinations. But note that 4X4X4 = 64.  Two subjects to each combination is 128 for all combinations.  Easier to use a Latin Square with 16X2 = 32 subjects.

Model for Latin Square with n Subjects Per Cell  Y ijkl =  +  j +  k +  l +  jkl +  i(jkl)  (i = 1,..., n; j = 1,..., p;  k = 1,..., p; l = 1,..., p)  Note: n represents number of obs. per cell.  p is usually used to represent factor levels Looks like a three factor model with only main effects. But not all factor level combinations are observed.

Within-Subjects and Between-Subjects Designs  If Subjects are assigned to each cell, then the design is a between-subjects design.  If Subjects are assigned so that they a subject is tested across the levels of a factor then the design is a within-subject design. This design can also be called a repeated measures design, especially if measurements are repeated over time.

Examples of Latin Squares: 2 x 2 design  Note: 1 could be replaced by the letter A and 2 could be replaced by the letter B. Then, the first design would become: AB BA

Examples of Latin Squares 3 x 3 (12 in total). First One is a “Standard” Square.

Critisism: Asymmetric Skill Transfer  A criticism of Latin Squares is that there may be learning effects that may account for significance of factors.  Because of the cyclic ordering of the levels, there is some counterbalancing that helps to mitigate learning effects.  Also, there should be a sufficient time delay between administration of the treatment combinations to offset learning.

Look at Patterns – B always follows A

Completely Balanced Designs Do Not Exist for p=Odd

Computational Example

Initial Computations Using [ ] Notation

Set up ANOVA Table with SS below and compute MSs and Fs Pooled MSRES is recommended.

SAS PROC PLAN TO GET RANDOM LATIN SQ DESIGN  DM "Log;Clear;OUT;Clear;" ;  options pageno=min nodate formdlim='-';  title 'Latin Square Design';  proc plan seed=37430;  factors rows=4 ordered cols=4 ordered;  treatments tmts=4 cyclic;  output out=myoutput  rows cvals=('Day 1' 'Day 2' 'Day 3' 'Day 4') random  cols cvals=('Lab 1' 'Lab 2' 'Lab 3' 'Lab 4') random  tmts nvals=( ) random;  run;  proc print data = myoutput;  proc tabulate data = myoutput;  class rows cols;  var tmts;  table rows, cols*(tmts*f=6.) / rts=8; /* f controls length of cell for tmts */  run; /* rts stands for row title space */  quit;

Output from Proc Plan  Latin Square Design The PLAN Procedure  Plot Factors  Factor Select Levels Order  rows 4 4 Ordered  cols 4 4 Ordered  Treatment Factors  Initial Block  Factor Select Levels Order Increment  tmts 4 4 Cyclic ( )  rows --cols- --tmts-    

Assigning Treatments To Latin Square

SPSS Latin Square  Put Data in usual column format specifying three fixed or random effects.  Select main effects only under Model option.  Usually only the main treatment is selected in doing post hoc multiple comparisons, but other treatments can be selected.  Use Analyze > General Linear Model > Univariate.  Check observed power on Options for power figures.

SAS: Use Proc Glm – Same as for Randomized Block Designs, except there is an additional treatment Note Tukey option for this example  proc glm data=MyLatinSqData;  class Treat_a Treat_c Treat_b;  model y = Treat_a Treat_c Treat_b;  means Treat_a/Tukey;  run; If a treatment, say Treat_c, is random then after model statement insert: random Treat_c ;

SAS: Proc GLMPower  Use input column format data set.  proc glmpower data = LatinSqData;  class Treat_a Treat_b Treat_c;  model y = Treat_a Treat_b Treat_c;  contrast "1 vs 2" Treat_a ;  power stddev = /*Insert sqrt(MSE) or estimate of stddev*/  ntotal = 32 /*insert sample size*/  power =.; NOTE: Tang Charts in back of Kirk textbook can be used to obtain approximate power numbers similar to procedure for CRD or RBD models.

Relative Efficiency of Latin Square and Randomized Block Design  RE =  ((dfRES(LS) +1)/(dfRES(LS) +3))* (((p-1)^2 + 3)/((p-1)^2 + 1))* (MSRES(RB) / MSRES(LS)) This formula can be used to determine sample size in LS relative to that of RB similar to the procedure with RB and CRD. Note that MSRES(RB) needs to be estimated by (MSB + (p-1)MSRES(LS)/p) where C would represent the block factor. B and C could be switched depending on which factor represents the block factor in the RBD.

Crossover Design  Crossover designs have features of randomized block and Latin square designs.  Can be thought of as a stacked Latin square design.  As in a Latin square design, each treatment level occurs an equal number of times in each time period.  Effects of two “nuisance” variables – typically blocks and time can be isolated.

SAS: Reading In Latin Square Data Need Two Data Sets Actual Data here Design here

SAS Statements to Merge Data  PROC IMPORT OUT= WORK.MyData  DATAFILE= "D:\Data Example for LatinSq.xls"  DBMS=EXCEL2000 REPLACE;  RANGE="MyData$";  GETNAMES=Yes;  RUN;  proc print;  PROC IMPORT OUT= WORK.MyDesign  DATAFILE= "D:\Data Example for LatinSq.xls"  DBMS=EXCEL2000 REPLACE;  RANGE="MyDesign$";  GETNAMES=Yes;  RUN;  Proc print;  data combine;  merge MyData MyDesign;  proc print data = Combine;

SAS: Output of Merged Data Set Obs c1 c2 c3 Treat_b ac1 ac2 ac

SAS: Statements to put in column Format. Note use of Arrays because of Do Loop  Data LatinSqData;  set combine;  Array c[3] c1-c3;  Array ac[3] ac1-ac3;  p = 3;  Do I = 1 to p;  y = c[I]; Treat_a = ac[I]; Treat_c = I; output;  End;  Keep y Treat_a Treat_b Treat_c;

SAS: An Alternative Approach to Creating Columns – No Do Loop  data alterColFormatforshortDataSets;  set combine;  y = c1; Treat_c = 1; Treat_a = ac1; output;  y = c2; Treat_c = 2; Treat_a = ac2; output;  y = c3; Treat_c = 3; Treat_a = ac3; output;  Keep y Treat_a Treat_b Treat_c;

For more than one observation per cell  Data MyDesign;  set MyDesign;  n=10; /* number of obs per cell */  Do i = 1 to n;  output;  end;  Drop n i; The output statement in the Do Loop increases the number of replications in the design.

HW7:Kirk, Ex. 7 Page 357  Work Parts a, b, c, d, and g.  Reword part g to: Determine the efficiency of the randomized block design relative to the Latin Square. Assume that the blocks for the RBD is factor C.  Assume that the graduate students and the groups with similar subjects with respect to noun recognition are random effects.  In addition, get the power for the contrast between a1 and a2  Use SPSS.