SJS SDI_111 Design of Statistical Investigations Stephen Senn 11 Nested Factors.

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

The t Test for Two Independent Samples
You have been given a mission and a code. Use the code to complete the mission and you will save the world from obliteration…
Multistage Sampling.
Advanced Piloting Cruise Plot.
Chapter 1 The Study of Body Function Image PowerPoint
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 5 Author: Julia Richards and R. Scott Hawley.
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
By D. Fisher Geometric Transformations. Reflection, Rotation, or Translation 1.
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
My Alphabet Book abcdefghijklm nopqrstuvwxyz.
Multiplying binomials You will have 20 seconds to answer each of the following multiplication problems. If you get hung up, go to the next problem when.
0 - 0.
ALGEBRAIC EXPRESSIONS
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
ADDING INTEGERS 1. POS. + POS. = POS. 2. NEG. + NEG. = NEG. 3. POS. + NEG. OR NEG. + POS. SUBTRACT TAKE SIGN OF BIGGER ABSOLUTE VALUE.
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Addition Facts
1 Learning Touchmath *Graphics taken from
Year 6 mental test 5 second questions
SJS SDI_71 Design of Statistical Investigations Stephen Senn 7. Orthogonal Designs Two (plus) Blocking Factors.
SJS SDI_81 Design of Statistical Investigations Stephen Senn 8 Factorial Designs.
SJS SDI_101 Design of Statistical Investigations Stephen Senn 10 Random Effects.
SJS SDI_161 Design of Statistical Investigations Stephen Senn Random Sampling I.
SJS SDI_11 Design of Statistical Investigations Stephen Senn 1 General Introduction.
SJS SDI_51 Design of Statistical Investigations Stephen Senn 5. Orthogonal Designs Randomised Blocks.
Overview of Lecture Parametric vs Non-Parametric Statistical Tests.
Overview of Lecture Partitioning Evaluating the Null Hypothesis ANOVA
Lecture 2 ANALYSIS OF VARIANCE: AN INTRODUCTION
1 Contact details Colin Gray Room S16 (occasionally) address: Telephone: (27) 2233 Dont hesitate to get in touch.
Around the World AdditionSubtraction MultiplicationDivision AdditionSubtraction MultiplicationDivision.
ZMQS ZMQS
1 STA 536 – Experiments with a Single Factor Regression and ANOVA.
BT Wholesale October Creating your own telephone network WHOLESALE CALLS LINE ASSOCIATED.
ABC Technology Project
© S Haughton more than 3?
© Charles van Marrewijk, An Introduction to Geographical Economics Brakman, Garretsen, and Van Marrewijk.
VOORBLAD.
Copyright © 2013, 2009, 2006 Pearson Education, Inc.
Twenty Questions Subject: Twenty Questions
1 4 Square Questions B A D C Look carefully to the diagram Now I will ask you 4 questions about this square. Are you ready?
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
Squares and Square Root WALK. Solve each problem REVIEW:
Lets play bingo!!. Calculate: MEAN Calculate: MEDIAN
Chapter 5 Test Review Sections 5-1 through 5-4.
GG Consulting, LLC I-SUITE. Source: TEA SHARS Frequently asked questions 2.
Addition 1’s to 20.
25 seconds left…...
Test B, 100 Subtraction Facts
11 = This is the fact family. You say: 8+3=11 and 3+8=11
Week 1.
We will resume in: 25 Minutes.
A SMALL TRUTH TO MAKE LIFE 100%
1 Unit 1 Kinematics Chapter 1 Day
PSSA Preparation.
Experimental Design and Analysis of Variance
21-July-111 University of Toronto Radioactive materials In Progress ELMER (
BPS - 5th Ed. Chapter 111 Sampling Distributions.
How Cells Obtain Energy from Food
Copyright © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 14 Factorial Experiments (Two or More Factors)
Estimating Volatilities and Correlations
Fugacity of Non-Ideal Mixtures (SVNA 11.6 and 11.7)
SJS Dundonald RoadThe Story of MTA021 The Story of MT/A02 Stephen Senn.
Presentation transcript:

SJS SDI_111 Design of Statistical Investigations Stephen Senn 11 Nested Factors

SJS SDI_112 Crossed Factors So far the treatment and blocking factors we have considered have been crossed. In principle every level of one could be observed with every level of the other. –Every treatment in each block Or at least the same treatments in various blocks –Each level of a factor in combination with each of another

SJS SDI_113 Nested Factors Sometimes some factors can only appear within other factors Blocks with sub-blocks –Example: Patients within given group allocated a particular sequence Episodes of treatment within patients Treatments with sub-treatments Such factors are nested

SJS SDI_114 Exp_15 Nested Treatments Suppose that we wish to compare two beta- agonists in asthma, formoterol and salmeterol Formoterol has three formulations solution, single-dose dry-powder inhaler, multi- dose dry-powder inhaler Salmeterol has two suspension, multi-dose dry powder inhaler

SJS SDI_115 Exp_15 Treatment Structure

SJS SDI_116 Exp_15 Treatments From one point of view we have five treatments –defined by combination of molecule and formulation We may have a hierarchy of interest –primarily to compare molecules then to compare formulations within molecules –possibly delivery type within formulations

SJS SDI_117 Exp_15 Possible factors (levels) A: Treatments ( Formoterol, Salmeterol) B: Formoterol formulation (Solution, Powder) B*: Salmeterol formulation (Suspension, Powder) C: Formoterol powder device (Single, Multi) Note that B* is not really the same as B and each of the lower level factors only has meaning in the context of the higher level

SJS SDI_118 Wilkinson and Roger Notation We encountered this in connection with factorial designs Now we add an operator / for nested designs A/B = A + A:B Not that if B is a factor nested within A, it has no meaning on its own. Hence the main effect B does not exist on its own. NB In their original papers Applied Statistics,1973,22, , W&R used instead of : as used in S-PLUS

SJS SDI_119 Exp_13 We encountered this example before We could regard this as an example of a nested design Treatments, placebo, ISF, MTA Doses within treatments

SJS SDI_1110 Exp_13 As nested design

SJS SDI_1111 Exp_13 Nested Analysis > #As before but treat as nested factors fit2 <- aov(AUC ~ Patient + Period + Active/Formul/Dose, na.action = na.exclude) > summary(fit2, corr = F) Df Sum of Sq Mean Sq F Value Pr(F) Patient Period Active Formul %in% Active Dose %in% (Active/Formul) Residuals

SJS SDI_1112 Random Treatment Effects We now pick up a theme we alluded to in lecture 10 Cases where our principle interest is in random effects –not random blocks –random treatments This example has nesting

SJS SDI_1113 Exp_16 Clarke and Kempson Example 13.1 Four labs, A,B,C,D. Six samples of uniform batch given to each. However a sample intended for A is sent to B by mistake

SJS SDI_1114 Fixed or Random? If we are interested in the performance of these four labs, we can consider them as fixed However we may be interested in using them to tell us how measurements vary in general from lab to lab If they are a sample of such labs, we could consider the effects as random

SJS SDI_1115 Exp_16 The Data Lab Sample Result 1 A A A A A B B B B B B B Lab Sample Result 13 C C C C C C D D D D D D

SJS SDI_1116

SJS SDI_1117 Model

SJS SDI_1118 Sums of Squares & Expectations

SJS SDI_1119

SJS SDI_1120 ANOVA

SJS SDI_1121 Calculations Exp_16

SJS SDI_1122 ANOVA Exp_16

SJS SDI_1123 Exp_16 Components of Variance

SJS SDI_1124 Exp_16 S-PLUS Analysis > is.random(one.frame) <- T > varcomp.1 <- varcomp(Result ~ Lab, data = one.frame, method = "reml") > summary(varcomp.1) Call: varcomp(formula = Result ~ Lab, data = one.frame, method = "reml") Variance Estimates: Variance Lab Residuals Method: reml Approximate Covariance Matrix of Variance Estimates: Lab Residuals Lab Residuals

SJS SDI_1125 Exp_14 Revisited > #Variance components analysis Subject.ran <- data.frame(Subject) > is.random(Subject.ran) <- T > varcomp(lAUC ~ Subject + Formulation, data = Subject.ran) Variances: Subject Residuals > varcomp(lAUC ~ Subject * Formulation, data = Subject.ran) Variances: Subject Subject:Formulation Residuals