Lecture 10: Experiments with Random Effects

Size: px
Start display at page:

Download "Lecture 10: Experiments with Random Effects"

Transcription

1 Lecture 10: Experiments with Random Effects Montgomery, Chapter 13 1 Lecture 10 Page 1

2 Example 1 A textile company weaves a fabric on a large number of looms. It would like the looms to be homogeneous so that it obtains a fabric of uniform strength. A process engineer suspects that, in addition to the usual variation in strength within samples of fabric from the same loom, there may also be significant variations in strength between looms. To investigate this, she selects four looms at random and makes four strength determinations on the fabric manufactured on each loom. The layout and data are given in the following. Observations looms Lecture 10 Page 2

3 Random Effects vs Fixed Effects Consider factor with numerous possible levels Want to draw inference on population of levels Not concerned with any specific levels Example of difference (1=fixed, 2=random) 1. Compare reading ability of 10 2nd grade classes in NY Select a = 10 specific classes of interest. Randomly choose n students from each classroom. Want to compare τ i (class-specific effects). 2. Study the variability among all 2nd grade classes in NY Randomly choose a = 10 classes from large number of classes. Randomly choose n students from each classroom. Want to assess στ 2 (class to class variability). Inference broader in random effects case Levels chosen randomly inference on population 3 Lecture 10 Page 3

4 Random Effects Model (CRD) Similar model (as in the fixed case) with different assumptions µ - grand mean y ij = µ + τ i + ϵ ij τ i - ith treatment effect (random) ϵ ij N(0, σ 2 ) Instead of τ i = 0, assume τ i N(0, σ 2 τ ) {τ i } and {ϵ ij } independent Var(y ij ) = σ 2 τ + σ 2 i = 1, 2... a j = 1, 2,... n i σ 2 τ and σ 2 are called variance components 4 Lecture 10 Page 4

5 The basic hypotheses are: Statistical Analysis H 0 : σ 2 τ = 0 vs. H 1 : σ 2 τ > 0 Same ANOVA table (as before) Source SS DF MS F 0 Between SS tr a 1 MS tr F 0 = MS tr MS E Within SS E N a MS E Total SS T = SS tr + SS E N 1 E(MS E )=σ 2 E(MS tr )=σ 2 + nσ 2 τ Under H 0, F 0 F a 1,N a Same test as before Conclusions, however, pertain to entire population 5 Lecture 10 Page 5

6 Estimation Usually interested in estimating variances Use mean squares (known as ANOVA method) ˆσ 2 = MS E ˆσ 2 τ = (MS tr MS E )/n If unbalanced, replace n with n 0 = 1 a 1 ( a i=1 n i Estimate of σ 2 τ can be negative ai=1 ) n 2 i ai=1 n i - Supports H 0? Use zero as estimate? - Validity of model? Nonlinear? - Other approaches (MLE, Bayesian with nonnegative prior) 6 Lecture 10 Page 6

7 σ 2 : Same as fixed case Confidence intervals (N a)ms E σ 2 χ 2 N a (N a)ms E χ 2 α/2,n a σ 2 (N a)ms E χ 2 1 α/2,n a σ 2 τ : Linear combination of χ 2 (a 1)MS tr σ 2 + nσ 2 τ χ 2 a 1 ˆσ 2 τ = (MS tr MS E )/n, so ˆσ 2 τ σ2 + nσ 2 τ n(a 1) χ2 a 1 σ 2 n(n a) χ2 N a No closed form expression for this distribution. Can use approximation 7 Lecture 10 Page 7

8 Recall For σ 2 τ /σ 2 : MS tr /(σ 2 + nσ 2 τ ) MS E /σ 2 F a 1,N a L = L σ2 τ σ U 2 ( ) ( ) MS tr MS MS E 1 /n and U = tr F α/2,a 1,N a MS E 1 /n F 1 α/2,a 1,N a For σ 2 τ /(σ 2 + σ 2 τ ) : L L + 1 σ2 τ σ 2 + σ 2 τ U U + 1, or F 0 F α/2,a 1,N a F 0 + (n 1)F α/2,a 1,N a σ2 τ σ 2 + σ 2 τ F 0 F 1 α/2,a 1,N a F 0 + (n 1)F 1 α/2,a 1,N a 8 Lecture 10 Page 8

9 Loom Experiment (continued) Source of Sum of Degrees of Mean F 0 Variation Squares Freedom Square Between Within Total Highly significant result (F.05,3,12 = 3.49) ˆσ τ 2 = ( )/4 = % (=6.98/( )) is attributable to loom differences Time to improve consistency of the looms 9 Lecture 10 Page 9

10 95% CI for σ 2 Loom Experiment Confidence Intervals SS E χ 2.025,12 σ 2 SS E χ 2.975,12 = c(22.75/23.34, 22.75/4.40) = (0.97, 5.17) 95% CI for στ 2 /(στ 2 + σ 2 ) ( ) (4 1)4.47, (1/14.34) (4 1)(1/14.34) F 0.025,3,12 = 4.47, F.975,3,12 = 1/14.34 using property that = (0.385, 0.982) F 1 α/2,v1,v 2 = 1/F α/2,v2,v 1 the variability between looms is not negligible. 10 Lecture 10 Page 10

11 options nocenter ps=35 ls=72; Using SAS data example; input loom strength; datalines; ; proc glm; class loom; model strength=loom; random loom; output out=diag r=res p=pred; proc plot; 11 Lecture 10 Page 11

12 plot res*pred; proc varcomp method = type1; class loom; model strength = loom; proc mixed CL; class loom; model strength = ; random loom; run; 12 Lecture 10 Page 12

13 SAS Output Dependent Variable: strength Sum of Source DF Squares Mean Square F Value Pr > F Model Error Corrected Total Source DF Type I SS Mean Square F Value loom Source Type III Expected Mean Square loom Var(Error) + 4 Var(loom) Variance Components Estimation Procedure Dependent Variable: strength Sum of Source DF Squares Mean Square loom Lecture 10 Page 13

14 Error Corrected Total Source loom Error Expected Mean Square Var(Error) + 4 Var(loom) Var(Error) Variance Component Estimate Var(loom) Var(Error) Lecture 10 Page 14

15 SAS Output (Continued) The Mixed Procedure Iteration History Iteration Evaluations -2 Res Log Like Criterion Convergence criteria met. Covariance Parameter Estimates Cov Parm Estimate Alpha Lower Upper loom Residual Fit Statistics -2 Res Log Likelihood 63.2 AIC (smaller is better) 67.2 AICC (smaller is better) 68.2 BIC (smaller is better) Lecture 10 Page 15

16 A Measurement Systems Capability Study A typical gauge R&R experiment is shown below. An instrument or gauge is used to measure a critical dimension of certain part. Twenty parts have been selected from the production process, and three randomly selected operators measure each part twice with this gauge. The order in which the measurements are made is completely randomized, so this is a two-factor factorial experiment with design factors parts and operators, with two replications. Both parts and operators are random factors. Parts Operator 1 Operator 2 Operator Variance components equation: σ 2 y = σ 2 τ + σ 2 β + σ 2 τβ + σ 2 Total variability=parts + Operators + Interaction + Experimental Error =Parts + Reproducibility + Repeatability 16 Lecture 10 Page 16

17 Statistical Model with Two Random Factors i = 1, 2,..., a y ijk = µ + τ i + β j + (τβ) ij + ϵ ijk j = 1, 2,..., b k = 1, 2,..., n τ i N(0, σ 2 τ ) β j N(0, σ 2 β) (τβ) ij N(0, σ 2 τβ) Var(y ijk ) = σ 2 + σ 2 τ + σ 2 β + σ 2 τβ Expected MS s similar to one-factor random model E(MS E )=σ 2 ; E(MS A ) = σ 2 + bnσ 2 τ + nσ 2 τβ E(MS B ) = σ 2 + anσ 2 β + nσ 2 τβ ; E(MS AB) = σ 2 + nσ 2 τβ EMS determine what MS to use in denominator H 0 : στ 2 = 0 MS A /MS AB H 0 : σβ 2 = 0 MS B /MS AB H 0 : στβ 2 = 0 MS AB /MS E 17 Lecture 10 Page 17

18 Estimating Variance Components Using ANOVA method ˆσ 2 = MS E ˆσ τ 2 = (MS A MS AB )/bn ˆσ β 2 = (MS B MS AB )/an ˆσ τβ 2 = (MS AB MS E )/n Sometimes results in negative estimates Proc Varcomp and Proc Mixed compute estimates Can use different estimation procedures ANOVA method - Method = type1 RMLE method - Method = reml (default) Proc Mixed Variance component estimates Hypothesis tests and confidence intervals 18 Lecture 10 Page 18

19 Gauge Capability Example in Text 13-2 options nocenter ls=75; data randr; input part operator resp cards; ; proc glm; class operator part; model resp=operator part; random operator part operator*part / test; test H=operator E=operator*part; test H=part E=operator*part; 19 Lecture 10 Page 19

20 proc mixed cl maxiter=20 covtest method=type1; class operator part; model resp = ; random operator part operator*part; proc mixed cl maxiter=20 covtest; class operator part; model resp = ; random operator part operator*part; run; quit; 20 Lecture 10 Page 20

21 Dependent Variable: resp Sum of Source DF Squares Mean Square F Value Pr > F Model <.0001 Error CorreTotal Source DF Type III SS Mean Square F Value Pr > F operator part <.0001 operator*part Source operator part operator*part Type III Expected Mean Square Var(Error) + 2 Var(operator*part) + 40 Var(operator) Var(Error) + 2 Var(operator*part) + 6 Var(part) Var(Error) + 2 Var(operator*part) Tests of Hypotheses Using the Type III MS for operator*part as an Error Term Source DF Type III SS Mean Square F Value Pr > F 21 Lecture 10 Page 21

22 operator part <.0001 Tests of Hypotheses for Random Model Analysis of Variance Dependent Variable: resp Source DF Type III SS Mean Square F Value Pr > F operator part <.0001 Error Error: MS(operator*part) Source DF Type III SS Mean Square F Value Pr > F operator*part Error: MS(Error) Lecture 10 Page 22

23 The Mixed Procedure Type 1 Analysis of Variance Sum of Source DF Squares Mean Square operator part operator*part Residual Type 1 Analysis of Variance Error Source Expected Mean Square Error Term DF operator Var(Residual) + 2 Var(operator*part) MS(operator*part) Var(operator) part Var(Residual) + 2 Var(operator*part) MS(operator*part) Var(part) operator*part Var(Residual) + 2 Var(operator*part) MS(Residual) 60 Residual Var(Residual). 23 Lecture 10 Page 23

24 Source F Value Pr > F operator part <.0001 operator*part Covariance Parameter Estimates Standard Z Cov Parm Estimate Error Value Pr Z Alpha Lower Upper operator part operator*part Residual < Lecture 10 Page 24

25 The Mixed Procedure Estimation Method REML Iteration History Iteration Evaluations -2 Res Log Like Criterion Convergence criteria met. Covariance Parameter Estimates Standard Z Cov Parm Estimate Error Value Pr Z Alpha Lower Upper operator E12 part operator*part Residual < Lecture 10 Page 25

26 Confidence Intervals for Variance Components Can use asymptotic variance estimates to form CI Known as Wald s approximate CI Mixed: option CL=WALD or METHOD=TYPE1 Use standard normal 95% CI uses 1.96 ˆσ β 2 ± 1.96(.0330) = ( 0.05, 0.08) ˆσ τ 2 ± 1.96(3.3738) = (3.67, 16.89) In general Proc Mixed uses Satterthwaite CI Default method - REML Versions < 6.12 computed Wald CI Current uses Satterthwaite s Approximation Will discuss this CI construction later on. 26 Lecture 10 Page 26

27 Rules For Expected Mean Squares In models so far, EMS fairly straightforward Could calculate EMS using brute force method For mixed models, good to have formal procedure Montgomery describes procedure for restricted model 0 Write the error term in the model as ϵ (ij..)m, where m represents the replication subscript 1 Write each variable term in model as a row heading in a two-way table 2 Write the subscripts in the model as column headings. Over each subscript write F if factor fixed and R if random. Over this, write down the levels of each subscript 3 For each row, copy the number of observations under each subscript, providing the subscript does not appear in the row variable term 4 For any bracketed subscripts in the model, place a 1 under those subscripts that are inside the brackets 5 Fill in remaining cells with a 0 (if subscript represents a fixed factor) or a 1 (if random factor). 27 Lecture 10 Page 27

28 6 To find the expected mean square of any term (row), cover the entries in the columns that contain non-bracketed subscript letters in this term in the model. For those rows with at least the same subscripts, multiply the remaining numbers to get coefficient for corresponding term in the model. 28 Lecture 10 Page 28

29 Two-Factor Fixed Model: y ijk = µ + τ i + β j + (τβ) ij + ϵ ijk F F R a b n term i j k EMS τ i 0 b n σ 2 + bnστ 2 i a 1 β j a 0 n σ 2 + anσβ2 j b 1 (τβ) ij 0 0 n σ 2 + nσσ(τβ)2 ij (a 1)(b 1) ϵ (ij)k σ 2 29 Lecture 10 Page 29

30 Two-Factor Random Model: y ijk = µ + τ i + β j + (τβ) ij + ϵ ijk R R R a b n term i j k EMS τ i 1 b n σ 2 + nστβ 2 + bnστ 2 β j a 1 n σ 2 + nστβ 2 + anσβ 2 (τβ) ij 1 1 n σ 2 + nστβ 2 ϵ (ij)k σ 2 30 Lecture 10 Page 30

31 Two-Factor Mixed Model (A Fixed): y ijk = µ + τ i + β j + (τβ) ij + ϵ ijk F R R a b n term i j k EMS τ i 0 b n σ 2 + nσ 2 τβ + bnστ 2 i a 1 β j a 1 n σ 2 + anσ 2 β (τβ) ij 0 1 n σ 2 + nσ 2 τβ ϵ (ij)k σ 2 31 Lecture 10 Page 31

32 Three-Factor Mixed Model (A Fixed): y ijkl = µ + τ i + β j + γ k + (τβ) ij + (τγ) ik + (βγ) jk + (τβγ) ijk + ϵ ijkl F R R R a b c n term i j k l EMS τ i 0 b c n σ 2 + cnσ 2 τβ + bnσ 2 τγ + nσ 2 τβγ + bcnστ 2 i a 1 β j a 1 c n σ 2 + anσ 2 βγ + acnσ 2 β γ k a b 1 n σ 2 + anσ 2 βγ + abnσ 2 γ (τβ) ij 0 1 c n σ 2 + nσ 2 τβγ + cnσ 2 τβ (τγ) ik 0 b 1 n σ 2 + nσ 2 τβγ + bnσ 2 τγ (βγ) jk a 1 1 n σ 2 + anσ 2 βγ (τβγ) ijk n σ 2 + nσ 2 τβγ ϵ ijkl σ 2 32 Lecture 10 Page 32

33 Two-Factor Mixed Effects Model y ijk = µ + τ i + β j + (τβ) ij + ϵ ijk Assume A fixed and B random 1 τ i = 0 and β N(0, σβ) 2 usual assumptions 2 (τβ) ij N(0, (a 1)στβ/a) 2 (a 1)/a simplifies EMS 3 (τβ) ij = 0 for β level j added restriction Due to added restriction Not all (τβ) ij indep, Cov((τβ) ij, (τβ) i j) = 1 a σ2 τβ Cov(y ijk, y i jk ) = σ2 β 1 a σ2 τβ, i i. Known as restricted mixed effects model This model coincides with EMS algorithm E(MS E )=σ 2 E(MS A ) = σ 2 + bn τi 2 /(a 1) + nστβ 2 E(MS B ) = σ 2 + anσβ 2 E(MS AB ) = σ 2 + nστβ 2 33 Lecture 10 Page 33

34 Hypotheses Testing and Diagnostics Testing hypotheses: H 0 : τ 1 = τ 2 =... = 0 MS A /MS AB H 0 : σβ 2 = 0 MS B /MS E H 0 : στβ 2 = 0 MS AB /MS E Variance Estimates ( Using ANOVA method) ˆσ 2 = MS E ˆσ β 2 = (MS B MS E )/an ˆσ τβ 2 = (MS AB MS E )/n Diagnostics Histogram or QQplot Normality or Unusual Observations Residual Plots Constant variance or Unusual Observations 34 Lecture 10 Page 34

35 Multiple Comparisons for Fixed Effects y ijk = µ + τ i + β j + (τβ) ij + ϵ ijk y i.. = µ + τ i + β. + (τβ) i. + ϵ i.. Var(y i.. ) = σ 2 β/b + (a 1)σ 2 τβ/ab + σ 2 /bn y i.. y i.. = τ i τ i + (τβ) i. (τβ) i. + ϵ i.. ϵ i.. Var(y i.. y i.. ) = 2σ2 τβ/b + 2σ 2 /bn = 2(nστβ 2 + σ 2 )/bn Need to plug in variance estimates to compute Var(y i.. ) What are the DF? For pairwise comparisons, use estimate 2MS AB /bn Use df AB for t-statistic or Tukey s method. 35 Lecture 10 Page 35

36 Gauge Capability Example in Text 12-3 options nocenter ls=75; data randr; input part operator resp cards; ; proc glm; class operator part; model resp=operator part; run; ================================================== Dependent Variable: resp Sum of 36 Lecture 10 Page 36

37 Source DF Squares Mean Square F Value Pr > F Model <.0001 Error CorrTotal Source DF Type I SS Mean Square F Value Pr > F operator part <.0001 operator*part Lecture 10 Page 37

38 H 0 : τ 1 = τ 2 = τ 3 = 0: P-value based on F 2,38 : H 0 : σ 2 β = 0: P-value based on F 19,60 : H 0 : σ 2 τβ = 0: P-value based on F 38,60 : 0.86 Variance components estimates: Gauge Capability Example F 0 = MS A MS AB = = 1.84 F 0 = MS B MS E = = F 0 = MS AB MS E = = 0.72 ˆσ 2 β = (3)(2) = Lecture 10 Page 38

39 ˆσ 2 τβ = ˆσ 2 = 0.99 =.14( 0) Pairwise comparison for τ 1, τ 2 and τ Lecture 10 Page 39

40 Unrestricted Mixed Model SAS uses unrestricted mixed model in analysis y ijk = µ + τ i + β j + (τβ) ij + ϵ ijk τi = 0 and β j N(0, σ 2 β) (τβ) ij N(0, σ 2 τβ) Expected mean squares: E(MS E )=σ 2 E(MS A ) = σ 2 + bn τ 2 i /(a 1) + nσ 2 τβ E(MS B ) = σ 2 + anσ 2 β + nσ 2 τβ E(MS AB ) = σ 2 + nσ 2 τβ random statement in SAS also gives these results Differences E(MS B ) Test H 0 : σ 2 β = 0 using MS AB in denominator Cov(y ijk, y i jk )=σ2 β, i i. 40 Lecture 10 Page 40

41 Connection (τβ).j = ( i (τβ) ij )/a y ijk = µ + τ + (β j + (τβ).j ) + ((τβ) ij (τβ).j ) + ϵ ijk Check the model above satisfies the conditions of restricted mixed model Restricted model is slightly more general. 41 Lecture 10 Page 41

42 Gauge Capability Example (Unrestricted Model) options nocenter ls=75; data randr; input part operator resp cards; ; proc glm; class operator part; model resp=operator part; random part operator*part / test; means operator / tukey lines E=operator*part; lsmeans operator / adjust=tukey E=operator*part tdiff stderr; 42 Lecture 10 Page 42

43 proc mixed alpha=.05 cl covtest; class operator part; model resp=operator / ddfm=kr; random part operator*part; lsmeans operator / alpha=.05 cl diff adjust=tukey; run; quit; 43 Lecture 10 Page 43

44 Approximate F Tests For some models, no exact F-test exists Recall 3 Factor Mixed Model (A - fixed) No exact test for A based on EMS Assume a = 3, b = 2, c = 3, n = 2 and following MS were obtained 44 Lecture 10 Page 44

45 Source DF MS EMS F P A ϕ A + 6σAB 2 + 4σAC 2?? +2σABC 2 + σ 2 B σB 2 + 6σBC 2 + σ AB σAB 2 + 2σABC 2 + σ C σC 2 + 6σBC 2 + σ AC σAC 2 + 2σABC 2 + σ BC σBC 2 + σ ABC σABC 2 + σ Error σ 2 Possible approaches: Could assume some variances are negligible, not recommended without conclusive evidence Pool (insignificant) means squares with error, also risky, not recommended when df for error is already big. 45 Lecture 10 Page 45

46 Satterthwaite s Approximate F-test H 0 : effect = 0, e.g., H 0 : τ 1 = = τ a = 0 or equivalently H 0 : τi 2 = 0. No exact test exists. Get two linear combinations of mean squares MS = MS r ±... ± MS s MS = MS u ±... ± MS v such that 1) MS and MS do not share common mean squares; 2) E(MS ) E(MS ) is a multiple of the effect. approximate test statistic F : F = MS MS = MS r±...±ms s MS u ±...±MS v F p,q where p = (MS r±...±ms s ) 2 MS 2 r /f r+...+ms 2 s /f s and q = (MS u±...±ms v ) 2 MS 2 u /f u+...+ms 2 v /f v f i is the degrees of freedom associated with MS i p and q may not be integers, interpolation is needed. SAS can handle noninteger dfs. Caution when subtraction is used 46 Lecture 10 Page 46

47 H 0 : τ 1 = τ 2 = τ 3 = 0 MS = MS A Example: 3-Factor Mixed Model (A Fixed) MS = MS AB + MS AC MS ABC E(MS MS ) = 12ϕ A = 12 Στ 2 i 3 1 F = MS A MS AB + MS AC MS ABC = = 57.0 p = 2 q = / / /4 = 4.15 Interpolation needed P(F 2,4 > 57) =.0011 P(F 2,5 > 57) =.0004 P =.85(.0011) +.15(.0004) = Lecture 10 Page 47

48 SAS can be used to compute P-values and quantile values for F and χ 2 values with noninteger degrees of freedom. Upper Tail Probability: probf(x,df1,df2) and probchi(x,df) Quantiles : finv(p,df1,df2) and cinv(p,df) data one; p=1-probf(57,2.0,4.15); f=finv(.95,2.0,4.15); c1=cinv(.025,18.57); c2=cinv(.975,18.57); proc print data=one; OBS P F C1 C Lecture 10 Page 48

49 Another Approach to Testing H 0 : τ 1 = τ 2 = τ 3 = 0 MS = MS A + MS ABC MS = MS AB + MS AC E(MS MS ) =? F = MS A + MS ABC MS AB + MS AC = = p = / /4 = 2.01 q = / /2 = 6.00 P-value= P (F > 48.41) = This is again found significant Avoid subtraction,summation should be preferred. 49 Lecture 10 Page 49

50 Suppose we are interested in σ 2 x. Approximate Confidence Intervals Case 1: there exists a mean square MS x with df x such that E(MS x ) = σ 2 x. Then ˆσ 2 x = MS x, and Exact 100(1-α)% CI: Case 2: there exist df x MS x χ 2 α/2,dfx df x MS x σ 2 x σ 2 x χ 2 (df x ) df xms x χ 2 1 α/2,dfx MS = MS r MS s and, MS = MS u MS v such that E(MS MS ) = kσ 2 x. Then ˆσ 2 x = MS MS k, and df xˆσ 2 x σ 2 x χ 2 (df x ) where df x = (ˆσ2 x) 2 MSi k 2 f i = (MS r + + MS s MS u MS v ) 2 MS 2 r/f r + + MS 2 s/f s + MS 2 u/f u + + MS 2 v/f v 50 Lecture 10 Page 50

51 Approximate 100(1-α)% CI: df xˆσ 2 x χ 2 α/2,df x σ 2 x df xˆσ 2 x χ 2 1 α/2,df x 51 Lecture 10 Page 51

52 Gauge Capability Example (Both Factors are Random) Dependent Variable: RESP Source DF Sum of Squares Mean Square F Value Pr > F Model Error CorrecTotal Source DF Type III SS Mean Square F Value Pr > F OPERATOR PART OPERATOR*PART ˆσ 2 τ = MS A MS AB bn = ( )/6 = df = ( ) / /38 = CI: (18.57(10.28)/32.28, 18.57(10.28)/8.61) = (5.91, 22.17) 52 Lecture 10 Page 52

53 ˆσ 2 β = MS B MS AB an = ( )/40 = df = ( ) / /38 =.413 CI: (.413(.015)/3.079,.413(.015)/ ) = (.002, ) 53 Lecture 10 Page 53

54 General Mixed Effect Model In terms of linear model Y = Xβ + Zδ + ϵ β is a vector of fixed-effect parameters δ is a vector of random-effect parameters ϵ is the error vector δ and ϵ assumed uncorrelated means 0 covariance matrices G and R (allows correlation) Cov(Y ) = ZGZ + R If R = σ 2 I and Z = 0, back to standard linear model SAS Proc Mixed allows one to specify G and R G through RANDOM, R through REPEATED Unrestricted linear mixed model is default 54 Lecture 10 Page 54

Lecture 10: Factorial Designs with Random Factors

Lecture 10: Factorial Designs with Random Factors Lecture 10: Factorial Designs with Random Factors Montgomery, Section 13.2 and 13.3 1 Lecture 10 Page 1 Factorial Experiments with Random Effects Lecture 9 has focused on fixed effects Always use MSE in

More information

Lecture 4. Random Effects in Completely Randomized Design

Lecture 4. Random Effects in Completely Randomized Design Lecture 4. Random Effects in Completely Randomized Design Montgomery: 3.9, 13.1 and 13.7 1 Lecture 4 Page 1 Random Effects vs Fixed Effects Consider factor with numerous possible levels Want to draw inference

More information

Topic 25 - One-Way Random Effects Models. Outline. Random Effects vs Fixed Effects. Data for One-way Random Effects Model. One-way Random effects

Topic 25 - One-Way Random Effects Models. Outline. Random Effects vs Fixed Effects. Data for One-way Random Effects Model. One-way Random effects Topic 5 - One-Way Random Effects Models One-way Random effects Outline Model Variance component estimation - Fall 013 Confidence intervals Topic 5 Random Effects vs Fixed Effects Consider factor with numerous

More information

This is a Randomized Block Design (RBD) with a single factor treatment arrangement (2 levels) which are fixed.

This is a Randomized Block Design (RBD) with a single factor treatment arrangement (2 levels) which are fixed. EXST3201 Chapter 13c Geaghan Fall 2005: Page 1 Linear Models Y ij = µ + βi + τ j + βτij + εijk This is a Randomized Block Design (RBD) with a single factor treatment arrangement (2 levels) which are fixed.

More information

Lecture 9: Factorial Design Montgomery: chapter 5

Lecture 9: Factorial Design Montgomery: chapter 5 Lecture 9: Factorial Design Montgomery: chapter 5 Page 1 Examples Example I. Two factors (A, B) each with two levels (, +) Page 2 Three Data for Example I Ex.I-Data 1 A B + + 27,33 51,51 18,22 39,41 EX.I-Data

More information

Chapter 11. Analysis of Variance (One-Way)

Chapter 11. Analysis of Variance (One-Way) Chapter 11 Analysis of Variance (One-Way) We now develop a statistical procedure for comparing the means of two or more groups, known as analysis of variance or ANOVA. These groups might be the result

More information

Lecture 11: Nested and Split-Plot Designs

Lecture 11: Nested and Split-Plot Designs Lecture 11: Nested and Split-Plot Designs Montgomery, Chapter 14 1 Lecture 11 Page 1 Crossed vs Nested Factors Factors A (a levels)and B (b levels) are considered crossed if Every combinations of A and

More information

Lec 5: Factorial Experiment

Lec 5: Factorial Experiment November 21, 2011 Example Study of the battery life vs the factors temperatures and types of material. A: Types of material, 3 levels. B: Temperatures, 3 levels. Example Study of the battery life vs the

More information

Lecture 3. Experiments with a Single Factor: ANOVA Montgomery 3.1 through 3.3

Lecture 3. Experiments with a Single Factor: ANOVA Montgomery 3.1 through 3.3 Lecture 3. Experiments with a Single Factor: ANOVA Montgomery 3.1 through 3.3 Fall, 2013 Page 1 Tensile Strength Experiment Investigate the tensile strength of a new synthetic fiber. The factor is the

More information

Lecture 3. Experiments with a Single Factor: ANOVA Montgomery 3-1 through 3-3

Lecture 3. Experiments with a Single Factor: ANOVA Montgomery 3-1 through 3-3 Lecture 3. Experiments with a Single Factor: ANOVA Montgomery 3-1 through 3-3 Page 1 Tensile Strength Experiment Investigate the tensile strength of a new synthetic fiber. The factor is the weight percent

More information

13. The Cochran-Satterthwaite Approximation for Linear Combinations of Mean Squares

13. The Cochran-Satterthwaite Approximation for Linear Combinations of Mean Squares 13. The Cochran-Satterthwaite Approximation for Linear Combinations of Mean Squares opyright c 2018 Dan Nettleton (Iowa State University) 13. Statistics 510 1 / 18 Suppose M 1,..., M k are independent

More information

Contents. TAMS38 - Lecture 6 Factorial design, Latin Square Design. Lecturer: Zhenxia Liu. Factorial design 3. Complete three factor design 4

Contents. TAMS38 - Lecture 6 Factorial design, Latin Square Design. Lecturer: Zhenxia Liu. Factorial design 3. Complete three factor design 4 Contents Factorial design TAMS38 - Lecture 6 Factorial design, Latin Square Design Lecturer: Zhenxia Liu Department of Mathematics - Mathematical Statistics 28 November, 2017 Complete three factor design

More information

Statistics 512: Applied Linear Models. Topic 9

Statistics 512: Applied Linear Models. Topic 9 Topic Overview Statistics 51: Applied Linear Models Topic 9 This topic will cover Random vs. Fixed Effects Using E(MS) to obtain appropriate tests in a Random or Mixed Effects Model. Chapter 5: One-way

More information

The Random Effects Model Introduction

The Random Effects Model Introduction The Random Effects Model Introduction Sometimes, treatments included in experiment are randomly chosen from set of all possible treatments. Conclusions from such experiment can then be generalized to other

More information

Topic 17 - Single Factor Analysis of Variance. Outline. One-way ANOVA. The Data / Notation. One way ANOVA Cell means model Factor effects model

Topic 17 - Single Factor Analysis of Variance. Outline. One-way ANOVA. The Data / Notation. One way ANOVA Cell means model Factor effects model Topic 17 - Single Factor Analysis of Variance - Fall 2013 One way ANOVA Cell means model Factor effects model Outline Topic 17 2 One-way ANOVA Response variable Y is continuous Explanatory variable is

More information

Outline. Topic 19 - Inference. The Cell Means Model. Estimates. Inference for Means Differences in cell means Contrasts. STAT Fall 2013

Outline. Topic 19 - Inference. The Cell Means Model. Estimates. Inference for Means Differences in cell means Contrasts. STAT Fall 2013 Topic 19 - Inference - Fall 2013 Outline Inference for Means Differences in cell means Contrasts Multiplicity Topic 19 2 The Cell Means Model Expressed numerically Y ij = µ i + ε ij where µ i is the theoretical

More information

Odor attraction CRD Page 1

Odor attraction CRD Page 1 Odor attraction CRD Page 1 dm'log;clear;output;clear'; options ps=512 ls=99 nocenter nodate nonumber nolabel FORMCHAR=" ---- + ---+= -/\*"; ODS LISTING; *** Table 23.2 ********************************************;

More information

SAS Commands. General Plan. Output. Construct scatterplot / interaction plot. Run full model

SAS Commands. General Plan. Output. Construct scatterplot / interaction plot. Run full model Topic 23 - Unequal Replication Data Model Outline - Fall 2013 Parameter Estimates Inference Topic 23 2 Example Page 954 Data for Two Factor ANOVA Y is the response variable Factor A has levels i = 1, 2,...,

More information

dm'log;clear;output;clear'; options ps=512 ls=99 nocenter nodate nonumber nolabel FORMCHAR=" = -/\<>*"; ODS LISTING;

dm'log;clear;output;clear'; options ps=512 ls=99 nocenter nodate nonumber nolabel FORMCHAR= = -/\<>*; ODS LISTING; dm'log;clear;output;clear'; options ps=512 ls=99 nocenter nodate nonumber nolabel FORMCHAR=" ---- + ---+= -/\*"; ODS LISTING; *** Table 23.2 ********************************************; *** Moore, David

More information

Stat 6640 Solution to Midterm #2

Stat 6640 Solution to Midterm #2 Stat 6640 Solution to Midterm #2 1. A study was conducted to examine how three statistical software packages used in a statistical course affect the statistical competence a student achieves. At the end

More information

Comparison of a Population Means

Comparison of a Population Means Analysis of Variance Interested in comparing Several treatments Several levels of one treatment Comparison of a Population Means Could do numerous two-sample t-tests but... ANOVA provides method of joint

More information

Single Factor Experiments

Single Factor Experiments Single Factor Experiments Bruce A Craig Department of Statistics Purdue University STAT 514 Topic 4 1 Analysis of Variance Suppose you are interested in comparing either a different treatments a levels

More information

Reference: Chapter 13 of Montgomery (8e)

Reference: Chapter 13 of Montgomery (8e) Reference: Chapter 1 of Montgomery (8e) Maghsoodloo 89 Factorial Experiments with Random Factors So far emphasis has been placed on factorial experiments where all factors are at a, b, c,... fixed levels

More information

Stat 217 Final Exam. Name: May 1, 2002

Stat 217 Final Exam. Name: May 1, 2002 Stat 217 Final Exam Name: May 1, 2002 Problem 1. Three brands of batteries are under study. It is suspected that the lives (in weeks) of the three brands are different. Five batteries of each brand are

More information

Topic 32: Two-Way Mixed Effects Model

Topic 32: Two-Way Mixed Effects Model Topic 3: Two-Way Mixed Effects Model Outline Two-way mixed models Three-way mixed models Data for two-way design Y is the response variable Factor A with levels i = 1 to a Factor B with levels j = 1 to

More information

Lecture 7: Latin Square and Related Design

Lecture 7: Latin Square and Related Design Lecture 7: Latin Square and Related Design Montgomery: Section 4.2-4.3 Page 1 Automobile Emission Experiment Four cars and four drivers are employed in a study for possible differences between four gasoline

More information

Lecture 2: Basic Concepts and Simple Comparative Experiments Montgomery: Chapter 2

Lecture 2: Basic Concepts and Simple Comparative Experiments Montgomery: Chapter 2 Lecture 2: Basic Concepts and Simple Comparative Experiments Montgomery: Chapter 2 Fall, 2013 Page 1 Random Variable and Probability Distribution Discrete random variable Y : Finite possible values {y

More information

EXST Regression Techniques Page 1. We can also test the hypothesis H :" œ 0 versus H :"

EXST Regression Techniques Page 1. We can also test the hypothesis H : œ 0 versus H : EXST704 - Regression Techniques Page 1 Using F tests instead of t-tests We can also test the hypothesis H :" œ 0 versus H :" Á 0 with an F test.! " " " F œ MSRegression MSError This test is mathematically

More information

Factorial designs. Experiments

Factorial designs. Experiments Chapter 5: Factorial designs Petter Mostad mostad@chalmers.se Experiments Actively making changes and observing the result, to find causal relationships. Many types of experimental plans Measuring response

More information

Differences of Least Squares Means

Differences of Least Squares Means STAT:5201 Homework 9 Solutions 1. We have a model with two crossed random factors operator and machine. There are 4 operators, 8 machines, and 3 observations from each operator/machine combination. (a)

More information

Unbalanced Designs Mechanics. Estimate of σ 2 becomes weighted average of treatment combination sample variances.

Unbalanced Designs Mechanics. Estimate of σ 2 becomes weighted average of treatment combination sample variances. Unbalanced Designs Mechanics Estimate of σ 2 becomes weighted average of treatment combination sample variances. Types of SS Difference depends on what hypotheses are tested and how differing sample sizes

More information

PLS205 Lab 2 January 15, Laboratory Topic 3

PLS205 Lab 2 January 15, Laboratory Topic 3 PLS205 Lab 2 January 15, 2015 Laboratory Topic 3 General format of ANOVA in SAS Testing the assumption of homogeneity of variances by "/hovtest" by ANOVA of squared residuals Proc Power for ANOVA One-way

More information

MIXED MODELS FOR REPEATED (LONGITUDINAL) DATA PART 2 DAVID C. HOWELL 4/1/2010

MIXED MODELS FOR REPEATED (LONGITUDINAL) DATA PART 2 DAVID C. HOWELL 4/1/2010 MIXED MODELS FOR REPEATED (LONGITUDINAL) DATA PART 2 DAVID C. HOWELL 4/1/2010 Part 1 of this document can be found at http://www.uvm.edu/~dhowell/methods/supplements/mixed Models for Repeated Measures1.pdf

More information

Mixed Model: Split plot with two whole-plot factors, one split-plot factor, and CRD at the whole-plot level (e.g. fancier split-plot p.

Mixed Model: Split plot with two whole-plot factors, one split-plot factor, and CRD at the whole-plot level (e.g. fancier split-plot p. STAT:5201 Applied Statistic II Mixed Model: Split plot with two whole-plot factors, one split-plot factor, and CRD at the whole-plot level (e.g. fancier split-plot p.422 OLRT) Hamster example with three

More information

Unit 7: Random Effects, Subsampling, Nested and Crossed Factor Designs

Unit 7: Random Effects, Subsampling, Nested and Crossed Factor Designs Unit 7: Random Effects, Subsampling, Nested and Crossed Factor Designs STA 643: Advanced Experimental Design Derek S. Young 1 Learning Objectives Understand how to interpret a random effect Know the different

More information

Analysis of Longitudinal Data: Comparison Between PROC GLM and PROC MIXED. Maribeth Johnson Medical College of Georgia Augusta, GA

Analysis of Longitudinal Data: Comparison Between PROC GLM and PROC MIXED. Maribeth Johnson Medical College of Georgia Augusta, GA Analysis of Longitudinal Data: Comparison Between PROC GLM and PROC MIXED Maribeth Johnson Medical College of Georgia Augusta, GA Overview Introduction to longitudinal data Describe the data for examples

More information

17. Example SAS Commands for Analysis of a Classic Split-Plot Experiment 17. 1

17. Example SAS Commands for Analysis of a Classic Split-Plot Experiment 17. 1 17 Example SAS Commands for Analysis of a Classic SplitPlot Experiment 17 1 DELIMITED options nocenter nonumber nodate ls80; Format SCREEN OUTPUT proc import datafile"c:\data\simulatedsplitplotdatatxt"

More information

5.3 Three-Stage Nested Design Example

5.3 Three-Stage Nested Design Example 5.3 Three-Stage Nested Design Example A researcher designs an experiment to study the of a metal alloy. A three-stage nested design was conducted that included Two alloy chemistry compositions. Three ovens

More information

Lecture 4. Checking Model Adequacy

Lecture 4. Checking Model Adequacy Lecture 4. Checking Model Adequacy Montgomery: 3-4, 15-1.1 Page 1 Model Checking and Diagnostics Model Assumptions 1 Model is correct 2 Independent observations 3 Errors normally distributed 4 Constant

More information

Analysis of Variance

Analysis of Variance Statistical Techniques II EXST7015 Analysis of Variance 15a_ANOVA_Introduction 1 Design The simplest model for Analysis of Variance (ANOVA) is the CRD, the Completely Randomized Design This model is also

More information

Introduction to SAS proc mixed

Introduction to SAS proc mixed Faculty of Health Sciences Introduction to SAS proc mixed Analysis of repeated measurements, 2017 Julie Forman Department of Biostatistics, University of Copenhagen 2 / 28 Preparing data for analysis The

More information

Homework 3 - Solution

Homework 3 - Solution STAT 526 - Spring 2011 Homework 3 - Solution Olga Vitek Each part of the problems 5 points 1. KNNL 25.17 (Note: you can choose either the restricted or the unrestricted version of the model. Please state

More information

Analysis of Variance

Analysis of Variance Analysis of Variance Blood coagulation time T avg A 62 60 63 59 61 B 63 67 71 64 65 66 66 C 68 66 71 67 68 68 68 D 56 62 60 61 63 64 63 59 61 64 Blood coagulation time A B C D Combined 56 57 58 59 60 61

More information

Lecture 7: Latin Squares and Related Designs

Lecture 7: Latin Squares and Related Designs Lecture 7: Latin Squares and Related Designs Montgomery: Section 4.2 and 4.3 1 Lecture 7 Page 1 Automobile Emission Experiment Four cars and four drivers are employed in a study of four gasoline additives(a,b,c,

More information

Random and Mixed Effects Models - Part III

Random and Mixed Effects Models - Part III Random and Mixed Effects Models - Part III Statistics 149 Spring 2006 Copyright 2006 by Mark E. Irwin Quasi-F Tests When we get to more than two categorical factors, some times there are not nice F tests

More information

This is a Split-plot Design with a fixed single factor treatment arrangement in the main plot and a 2 by 3 factorial subplot.

This is a Split-plot Design with a fixed single factor treatment arrangement in the main plot and a 2 by 3 factorial subplot. EXST3201 Chapter 13c Geaghan Fall 2005: Page 1 Linear Models Y ij = µ + τ1 i + γij + τ2k + ττ 1 2ik + εijkl This is a Split-plot Design with a fixed single factor treatment arrangement in the main plot

More information

Introduction to SAS proc mixed

Introduction to SAS proc mixed Faculty of Health Sciences Introduction to SAS proc mixed Analysis of repeated measurements, 2017 Julie Forman Department of Biostatistics, University of Copenhagen Outline Data in wide and long format

More information

Descriptions of post-hoc tests

Descriptions of post-hoc tests Experimental Statistics II Page 81 Descriptions of post-hoc tests Post-hoc or Post-ANOVA tests! Once you have found out some treatment(s) are different, how do you determine which one(s) are different?

More information

Split-plot Designs. Bruce A Craig. Department of Statistics Purdue University. STAT 514 Topic 21 1

Split-plot Designs. Bruce A Craig. Department of Statistics Purdue University. STAT 514 Topic 21 1 Split-plot Designs Bruce A Craig Department of Statistics Purdue University STAT 514 Topic 21 1 Randomization Defines the Design Want to study the effect of oven temp (3 levels) and amount of baking soda

More information

Introduction to Design and Analysis of Experiments with the SAS System (Stat 7010 Lecture Notes)

Introduction to Design and Analysis of Experiments with the SAS System (Stat 7010 Lecture Notes) Introduction to Design and Analysis of Experiments with the SAS System (Stat 7010 Lecture Notes) Asheber Abebe Discrete and Statistical Sciences Auburn University Contents 1 Completely Randomized Design

More information

Topic 29: Three-Way ANOVA

Topic 29: Three-Way ANOVA Topic 29: Three-Way ANOVA Outline Three-way ANOVA Data Model Inference Data for three-way ANOVA Y, the response variable Factor A with levels i = 1 to a Factor B with levels j = 1 to b Factor C with levels

More information

STAT 5200 Handout #23. Repeated Measures Example (Ch. 16)

STAT 5200 Handout #23. Repeated Measures Example (Ch. 16) Motivating Example: Glucose STAT 500 Handout #3 Repeated Measures Example (Ch. 16) An experiment is conducted to evaluate the effects of three diets on the serum glucose levels of human subjects. Twelve

More information

Chapter 13 Experiments with Random Factors Solutions

Chapter 13 Experiments with Random Factors Solutions Solutions from Montgomery, D. C. (01) Design and Analysis of Experiments, Wiley, NY Chapter 13 Experiments with Random Factors Solutions 13.. An article by Hoof and Berman ( Statistical Analysis of Power

More information

ANOVA Longitudinal Models for the Practice Effects Data: via GLM

ANOVA Longitudinal Models for the Practice Effects Data: via GLM Psyc 943 Lecture 25 page 1 ANOVA Longitudinal Models for the Practice Effects Data: via GLM Model 1. Saturated Means Model for Session, E-only Variances Model (BP) Variances Model: NO correlation, EQUAL

More information

Chap The McGraw-Hill Companies, Inc. All rights reserved.

Chap The McGraw-Hill Companies, Inc. All rights reserved. 11 pter11 Chap Analysis of Variance Overview of ANOVA Multiple Comparisons Tests for Homogeneity of Variances Two-Factor ANOVA Without Replication General Linear Model Experimental Design: An Overview

More information

Two-factor studies. STAT 525 Chapter 19 and 20. Professor Olga Vitek

Two-factor studies. STAT 525 Chapter 19 and 20. Professor Olga Vitek Two-factor studies STAT 525 Chapter 19 and 20 Professor Olga Vitek December 2, 2010 19 Overview Now have two factors (A and B) Suppose each factor has two levels Could analyze as one factor with 4 levels

More information

Subject-specific observed profiles of log(fev1) vs age First 50 subjects in Six Cities Study

Subject-specific observed profiles of log(fev1) vs age First 50 subjects in Six Cities Study Subject-specific observed profiles of log(fev1) vs age First 50 subjects in Six Cities Study 1.4 0.0-6 7 8 9 10 11 12 13 14 15 16 17 18 19 age Model 1: A simple broken stick model with knot at 14 fit with

More information

WITHIN-PARTICIPANT EXPERIMENTAL DESIGNS

WITHIN-PARTICIPANT EXPERIMENTAL DESIGNS 1 WITHIN-PARTICIPANT EXPERIMENTAL DESIGNS I. Single-factor designs: the model is: yij i j ij ij where: yij score for person j under treatment level i (i = 1,..., I; j = 1,..., n) overall mean βi treatment

More information

Lecture 5: Comparing Treatment Means Montgomery: Section 3-5

Lecture 5: Comparing Treatment Means Montgomery: Section 3-5 Lecture 5: Comparing Treatment Means Montgomery: Section 3-5 Page 1 Linear Combination of Means ANOVA: y ij = µ + τ i + ɛ ij = µ i + ɛ ij Linear combination: L = c 1 µ 1 + c 1 µ 2 +...+ c a µ a = a i=1

More information

STAT 705 Chapter 19: Two-way ANOVA

STAT 705 Chapter 19: Two-way ANOVA STAT 705 Chapter 19: Two-way ANOVA Adapted from Timothy Hanson Department of Statistics, University of South Carolina Stat 705: Data Analysis II 1 / 41 Two-way ANOVA This material is covered in Sections

More information

df=degrees of freedom = n - 1

df=degrees of freedom = n - 1 One sample t-test test of the mean Assumptions: Independent, random samples Approximately normal distribution (from intro class: σ is unknown, need to calculate and use s (sample standard deviation)) Hypotheses:

More information

Chapter 5 Introduction to Factorial Designs

Chapter 5 Introduction to Factorial Designs Chapter 5 Introduction to Factorial Designs 5. Basic Definitions and Principles Stud the effects of two or more factors. Factorial designs Crossed: factors are arranged in a factorial design Main effect:

More information

STAT 705 Chapter 19: Two-way ANOVA

STAT 705 Chapter 19: Two-way ANOVA STAT 705 Chapter 19: Two-way ANOVA Timothy Hanson Department of Statistics, University of South Carolina Stat 705: Data Analysis II 1 / 38 Two-way ANOVA Material covered in Sections 19.2 19.4, but a bit

More information

Lecture 10: 2 k Factorial Design Montgomery: Chapter 6

Lecture 10: 2 k Factorial Design Montgomery: Chapter 6 Lecture 10: 2 k Factorial Design Montgomery: Chapter 6 Page 1 2 k Factorial Design Involving k factors Each factor has two levels (often labeled + and ) Factor screening experiment (preliminary study)

More information

Repeated Measures Data

Repeated Measures Data Repeated Measures Data Mixed Models Lecture Notes By Dr. Hanford page 1 Data where subjects are measured repeatedly over time - predetermined intervals (weekly) - uncontrolled variable intervals between

More information

Outline. Topic 20 - Diagnostics and Remedies. Residuals. Overview. Diagnostics Plots Residual checks Formal Tests. STAT Fall 2013

Outline. Topic 20 - Diagnostics and Remedies. Residuals. Overview. Diagnostics Plots Residual checks Formal Tests. STAT Fall 2013 Topic 20 - Diagnostics and Remedies - Fall 2013 Diagnostics Plots Residual checks Formal Tests Remedial Measures Outline Topic 20 2 General assumptions Overview Normally distributed error terms Independent

More information

USE OF THE SAS VARCOMP PROCEDURE TO ESTIMATE ANALYTICAL REPEATABILITY. Anna Caroli Istituto di Zootecnica Veterinaria - Milano - Italy

USE OF THE SAS VARCOMP PROCEDURE TO ESTIMATE ANALYTICAL REPEATABILITY. Anna Caroli Istituto di Zootecnica Veterinaria - Milano - Italy INTRODUCTION USE OF THE SAS VARCOMP PROCEDURE TO ESTIMATE ANALYTICAL REPEATABILITY Anna Caroli Istituto di Zootecnica Veterinaria - Milano - Italy Researchers often have to assess if an analytical method

More information

Analysis of Covariance

Analysis of Covariance Analysis of Covariance (ANCOVA) Bruce A Craig Department of Statistics Purdue University STAT 514 Topic 10 1 When to Use ANCOVA In experiment, there is a nuisance factor x that is 1 Correlated with y 2

More information

Mixed Model: Split plot with two whole-plot factors, one split-plot factor, and CRD at the whole-plot level (e.g. fancier split-plot p.

Mixed Model: Split plot with two whole-plot factors, one split-plot factor, and CRD at the whole-plot level (e.g. fancier split-plot p. 22s:173 Combining multiple factors into a single superfactor Mixed Model: Split plot with two whole-plot factors, one split-plot factor, and CRD at the whole-plot level (e.g. fancier split-plot p.422 Oehlert)

More information

Testing Indirect Effects for Lower Level Mediation Models in SAS PROC MIXED

Testing Indirect Effects for Lower Level Mediation Models in SAS PROC MIXED Testing Indirect Effects for Lower Level Mediation Models in SAS PROC MIXED Here we provide syntax for fitting the lower-level mediation model using the MIXED procedure in SAS as well as a sas macro, IndTest.sas

More information

One-way ANOVA (Single-Factor CRD)

One-way ANOVA (Single-Factor CRD) One-way ANOVA (Single-Factor CRD) STAT:5201 Week 3: Lecture 3 1 / 23 One-way ANOVA We have already described a completed randomized design (CRD) where treatments are randomly assigned to EUs. There is

More information

Chapter 20 : Two factor studies one case per treatment Chapter 21: Randomized complete block designs

Chapter 20 : Two factor studies one case per treatment Chapter 21: Randomized complete block designs Chapter 20 : Two factor studies one case per treatment Chapter 21: Randomized complete block designs Adapted from Timothy Hanson Department of Statistics, University of South Carolina Stat 705: Data Analysis

More information

Reference: Chapter 14 of Montgomery (8e)

Reference: Chapter 14 of Montgomery (8e) Reference: Chapter 14 of Montgomery (8e) 99 Maghsoodloo The Stage Nested Designs So far emphasis has been placed on factorial experiments where all factors are crossed (i.e., it is possible to study the

More information

Solution to Final Exam

Solution to Final Exam Stat 660 Solution to Final Exam. (5 points) A large pharmaceutical company is interested in testing the uniformity (a continuous measurement that can be taken by a measurement instrument) of their film-coated

More information

The factors in higher-way ANOVAs can again be considered fixed or random, depending on the context of the study. For each factor:

The factors in higher-way ANOVAs can again be considered fixed or random, depending on the context of the study. For each factor: M. Two-way Random Effects ANOVA The factors in higher-way ANOVAs can again be considered fixed or random, depending on the context of the study. For each factor: Are the levels of that factor of direct

More information

Chapter 5 Introduction to Factorial Designs Solutions

Chapter 5 Introduction to Factorial Designs Solutions Solutions from Montgomery, D. C. (1) Design and Analysis of Experiments, Wiley, NY Chapter 5 Introduction to Factorial Designs Solutions 5.1. The following output was obtained from a computer program that

More information

EXST 7015 Fall 2014 Lab 11: Randomized Block Design and Nested Design

EXST 7015 Fall 2014 Lab 11: Randomized Block Design and Nested Design EXST 7015 Fall 2014 Lab 11: Randomized Block Design and Nested Design OBJECTIVES: The objective of an experimental design is to provide the maximum amount of reliable information at the minimum cost. In

More information

STAT 705 Chapters 23 and 24: Two factors, unequal sample sizes; multi-factor ANOVA

STAT 705 Chapters 23 and 24: Two factors, unequal sample sizes; multi-factor ANOVA STAT 705 Chapters 23 and 24: Two factors, unequal sample sizes; multi-factor ANOVA Timothy Hanson Department of Statistics, University of South Carolina Stat 705: Data Analysis II 1 / 22 Balanced vs. unbalanced

More information

over Time line for the means). Specifically, & covariances) just a fixed variance instead. PROC MIXED: to 1000 is default) list models with TYPE=VC */

over Time line for the means). Specifically, & covariances) just a fixed variance instead. PROC MIXED: to 1000 is default) list models with TYPE=VC */ CLP 944 Example 4 page 1 Within-Personn Fluctuation in Symptom Severity over Time These data come from a study of weekly fluctuation in psoriasis severity. There was no intervention and no real reason

More information

Analysis of Variance and Design of Experiments-I

Analysis of Variance and Design of Experiments-I Analysis of Variance and Design of Experiments-I MODULE VIII LECTURE - 35 ANALYSIS OF VARIANCE IN RANDOM-EFFECTS MODEL AND MIXED-EFFECTS MODEL Dr. Shalabh Department of Mathematics and Statistics Indian

More information

Outline Topic 21 - Two Factor ANOVA

Outline Topic 21 - Two Factor ANOVA Outline Topic 21 - Two Factor ANOVA Data Model Parameter Estimates - Fall 2013 Equal Sample Size One replicate per cell Unequal Sample size Topic 21 2 Overview Now have two factors (A and B) Suppose each

More information

COMPLETELY RANDOM DESIGN (CRD) -Design can be used when experimental units are essentially homogeneous.

COMPLETELY RANDOM DESIGN (CRD) -Design can be used when experimental units are essentially homogeneous. COMPLETELY RANDOM DESIGN (CRD) Description of the Design -Simplest design to use. -Design can be used when experimental units are essentially homogeneous. -Because of the homogeneity requirement, it may

More information

Multiple Linear Regression

Multiple Linear Regression Chapter 3 Multiple Linear Regression 3.1 Introduction Multiple linear regression is in some ways a relatively straightforward extension of simple linear regression that allows for more than one independent

More information

Mixed Model Theory, Part I

Mixed Model Theory, Part I enote 4 1 enote 4 Mixed Model Theory, Part I enote 4 INDHOLD 2 Indhold 4 Mixed Model Theory, Part I 1 4.1 Design matrix for a systematic linear model.................. 2 4.2 The mixed model.................................

More information

UNIVERSITY OF TORONTO. Faculty of Arts and Science APRIL 2010 EXAMINATIONS STA 303 H1S / STA 1002 HS. Duration - 3 hours. Aids Allowed: Calculator

UNIVERSITY OF TORONTO. Faculty of Arts and Science APRIL 2010 EXAMINATIONS STA 303 H1S / STA 1002 HS. Duration - 3 hours. Aids Allowed: Calculator UNIVERSITY OF TORONTO Faculty of Arts and Science APRIL 2010 EXAMINATIONS STA 303 H1S / STA 1002 HS Duration - 3 hours Aids Allowed: Calculator LAST NAME: FIRST NAME: STUDENT NUMBER: There are 27 pages

More information

Chapter 19. More Complex ANOVA Designs Three-way ANOVA

Chapter 19. More Complex ANOVA Designs Three-way ANOVA Chapter 19 More Complex ANOVA Designs This chapter examines three designs that incorporate more factors and introduce some new elements of experimental design. They are three-way ANOVA, one-way nested

More information

Topic 20: Single Factor Analysis of Variance

Topic 20: Single Factor Analysis of Variance Topic 20: Single Factor Analysis of Variance Outline Single factor Analysis of Variance One set of treatments Cell means model Factor effects model Link to linear regression using indicator explanatory

More information

Contrasting Marginal and Mixed Effects Models Recall: two approaches to handling dependence in Generalized Linear Models:

Contrasting Marginal and Mixed Effects Models Recall: two approaches to handling dependence in Generalized Linear Models: Contrasting Marginal and Mixed Effects Models Recall: two approaches to handling dependence in Generalized Linear Models: Marginal models: based on the consequences of dependence on estimating model parameters.

More information

Variance component models part I

Variance component models part I Faculty of Health Sciences Variance component models part I Analysis of repeated measurements, 30th November 2012 Julie Lyng Forman & Lene Theil Skovgaard Department of Biostatistics, University of Copenhagen

More information

These are multifactor experiments that have

These are multifactor experiments that have Design of Engineering Experiments Nested Designs Text reference, Chapter 14, Pg. 525 These are multifactor experiments that have some important industrial applications Nested and split-plot designs frequently

More information

Statistics 203: Introduction to Regression and Analysis of Variance Course review

Statistics 203: Introduction to Regression and Analysis of Variance Course review Statistics 203: Introduction to Regression and Analysis of Variance Course review Jonathan Taylor - p. 1/?? Today Review / overview of what we learned. - p. 2/?? General themes in regression models Specifying

More information

Statistics 512: Solution to Homework#11. Problems 1-3 refer to the soybean sausage dataset of Problem 20.8 (ch21pr08.dat).

Statistics 512: Solution to Homework#11. Problems 1-3 refer to the soybean sausage dataset of Problem 20.8 (ch21pr08.dat). Statistics 512: Solution to Homework#11 Problems 1-3 refer to the soybean sausage dataset of Problem 20.8 (ch21pr08.dat). 1. Perform the two-way ANOVA without interaction for this model. Use the results

More information

RCB - Example. STA305 week 10 1

RCB - Example. STA305 week 10 1 RCB - Example An accounting firm wants to select training program for its auditors who conduct statistical sampling as part of their job. Three training methods are under consideration: home study, presentations

More information

Sample Size / Power Calculations

Sample Size / Power Calculations Sample Size / Power Calculations A Simple Example Goal: To study the effect of cold on blood pressure (mmhg) in rats Use a Completely Randomized Design (CRD): 12 rats are randomly assigned to one of two

More information

Lecture 5: Determining Sample Size

Lecture 5: Determining Sample Size Lecture 5: Determining Sample Size Montgomery: Section 3.7 and 13.4 1 Lecture 5 Page 1 Choice of Sample Size: Fixed Effects Can determine the sample size for OverallF test Contrasts of interest For simplicity,

More information

SAS Procedures Inference about the Line ffl model statement in proc reg has many options ffl To construct confidence intervals use alpha=, clm, cli, c

SAS Procedures Inference about the Line ffl model statement in proc reg has many options ffl To construct confidence intervals use alpha=, clm, cli, c Inference About the Slope ffl As with all estimates, ^fi1 subject to sampling var ffl Because Y jx _ Normal, the estimate ^fi1 _ Normal A linear combination of indep Normals is Normal Simple Linear Regression

More information

Review of CLDP 944: Multilevel Models for Longitudinal Data

Review of CLDP 944: Multilevel Models for Longitudinal Data Review of CLDP 944: Multilevel Models for Longitudinal Data Topics: Review of general MLM concepts and terminology Model comparisons and significance testing Fixed and random effects of time Significance

More information

Factorial and Unbalanced Analysis of Variance

Factorial and Unbalanced Analysis of Variance Factorial and Unbalanced Analysis of Variance Nathaniel E. Helwig Assistant Professor of Psychology and Statistics University of Minnesota (Twin Cities) Updated 04-Jan-2017 Nathaniel E. Helwig (U of Minnesota)

More information

Lec 1: An Introduction to ANOVA

Lec 1: An Introduction to ANOVA Ying Li Stockholm University October 31, 2011 Three end-aisle displays Which is the best? Design of the Experiment Identify the stores of the similar size and type. The displays are randomly assigned to

More information

Example: Four levels of herbicide strength in an experiment on dry weight of treated plants.

Example: Four levels of herbicide strength in an experiment on dry weight of treated plants. The idea of ANOVA Reminders: A factor is a variable that can take one of several levels used to differentiate one group from another. An experiment has a one-way, or completely randomized, design if several

More information