Purpose to compare average response among levels of the factors Chapters 2-4 -predict future response at specific factor level -recommend best factor level for future use Purpose to Study Sources of Variability Chapter 5 - Medical diagnostic tests (procedures, equipment, reagents etc. - Educational testing (student, testing instrument, repeat tests) - Quality Control Measurements (operator, equipment, environment)
Random Sampling Experiment or RSE
Determine if changes in factor levels cause difference in mean response Estimate variance in response across levels of this factor Model for RSE Model for CRD
samples preparations variance components
From Chapter 2
Notice interval estimate for 2 t much wider than 2 What if MST < MSE ?
Variability in dry soup mix “intermix” (vegetable oil, salt flavorings etc.) - too little not enough flavor - too much too strong Make batch of soup and dry it on a rotary dryer Place dry soup in a mixer where intermix is injected through ports Package number of mixer ports for Vegetable oil temperature of mixer jacket Mixing time Batch weight delay time between mixing and packaging, etc. Ingredients Cook temperature Dryer temperature Dryer RPM, etc.
If you would like the width of the confidence interval to be ½ ( 2 ), search for t and r such that the multiplier of above is 1.0
Degrees of freedom for error is t(r-1)
Rule of thumb for determining t and r When 2 t is expected to be larger than 2 choose t = 2, r = 2 Another way is to determine the power of the F-test of H 0 : 2 t = 0
partoperator Repeat measurement gage reproducibility
Iteration Objective Var(part) Var(oper) Var(part*oper) Var(Error) Convergence criteria met. REML Estimates Variance Component Estimate Var(part) Var(oper) 0 Var(part*oper) Var(Error) Asymptotic Covariance Matrix of Estimates Var(part) Var(oper) Var(part*oper) Var(Error) Var(part) E E-13 Var(oper) Var(part*oper) E E-8 Var(Error) E E E-8
Replace t(r-1) by ab(r-1) in formula 5.8 in order to get the desired width for a confidence interval on 2 When 2 a, 2 b, and 2 ab are expected to be larger than 2 choose r = 2, partition ab according to your belief in the relative size of 2 a and 2 b
Method of Moments Estimators are not unique, because they depend on whether type I or type III sums of squares are used Maximum Likelihood and REML estimates are unique
Source DF Type I SS Mean Square F Value Pr > F lab sol lab*sol Source DF Type III SS Mean Square F Value Pr > F lab sol lab*sol proc glm; class lab sol; model conc=lab sol lab*sol/e1; random lab sol lab*sol; run;
Source Type III Expected Mean Square lab Var(Error) Var(lab*sol) Var(lab) sol Var(Error) Var(lab*sol) Var(sol lab*sol Var(Error) Var(lab*sol) Source Type I Expected Mean Square lab Var(Error) Var(lab*sol) Var(sol)+8.963Var(lab) sol Var(Error) Var(lab*sol) Var(sol) lab*sol Var(Error) Var(lab*sol)
proc varcomp method=reml; class lab sol; model conc=lab sol lab*sol; run; Maximum Likelihood and REML estimates are unique
Approximate Confidence Intervals
crossed factors – levels are uniquely defined (example operators and levels in Gage RR study) nested factors – levels are physically different depending on the level of the factor they are nested in.
Writing the model in SAS notation determination(sample )
Example: Experiment with goal of increasing amount of active pesticide on cotton leafs one week after application Fixed factors: A: pesticide formulation (liquid, powder) B: application method (distance above plants) Random Factors: 1) Experimental Unit- 20 foot row 2) Random subsample of leaves
Formulation (fixed) Application method (fixed) Experimental unit (random) Subsample (random)
Sum of Source DF Squares Mean Square F Value Pr > F Model Error Corrected Total R-Square Coeff Var Root MSE residue Mean Source DF Type I SS Mean Square F Value Pr > F form app <.0001 form*app plot(form*app) Source DF Type III SS Mean Square F Value Pr > F form app <.0001 form*app plot(form*app)
Least Squares Means Standard Errors and Probabilities Calculated Using the Type III MS for plot(form*app) as an Error Term residue Standard app LSMEAN Error Pr > |t| < <.0001 Dependent Variable: residue Standard Parameter Estimate Error t Value Pr > |t| application effect <.0001
Model for RSE Equal Variance and Normality Assumptions
partoperator Repeat measurement
if r =
Lot 19
Check this assumption by making normal plot of residuals Check this assumption by making normal plot of EBLUPs
Preparation 2 Box 1 Lot 19 Preparation 1 Box 2 Lot 2