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

Similar documents
STAT 5200 Handout #26. Generalized Linear Mixed Models

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

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

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

SAS Syntax and Output for Data Manipulation:

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

Covariance Structure Approach to Within-Cases

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

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

SAS Syntax and Output for Data Manipulation: CLDP 944 Example 3a page 1

Odor attraction CRD Page 1

Differences of Least Squares Means

ANOVA Longitudinal Models for the Practice Effects Data: via GLM

Linear Mixed Models with Repeated Effects

WITHIN-PARTICIPANT EXPERIMENTAL DESIGNS

Repeated Measures Design. Advertising Sales Example

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

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

Correlated data. Longitudinal data. Typical set-up for repeated measurements. Examples from literature, I. Faculty of Health Sciences

Correlated data. Repeated measurements over time. Typical set-up for repeated measurements. Traditional presentation of data

Topic 32: Two-Way Mixed 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

Models for longitudinal data

Topic 20: Single Factor Analysis of Variance

Answer to exercise: Blood pressure lowering drugs

Chapter 9. Multivariate and Within-cases Analysis. 9.1 Multivariate Analysis of Variance

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

Example 7b: Generalized Models for Ordinal Longitudinal Data using SAS GLIMMIX, STATA MEOLOGIT, and MPLUS (last proportional odds model only)

SAS Code for Data Manipulation: SPSS Code for Data Manipulation: STATA Code for Data Manipulation: Psyc 945 Example 1 page 1

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

Analysis of variance and regression. May 13, 2008

Serial Correlation. Edps/Psych/Stat 587. Carolyn J. Anderson. Fall Department of Educational Psychology

Repeated Measures Modeling With PROC MIXED E. Barry Moser, Louisiana State University, Baton Rouge, LA

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

Random Coefficient Model (a.k.a. multilevel model) (Adapted from UCLA Statistical Computing Seminars)

Introduction to SAS proc mixed

Descriptions of post-hoc tests

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

Introduction to SAS proc mixed

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

Lecture 4. Random Effects in Completely Randomized Design

Lecture 10: Experiments with Random Effects

Repeated Measures Data

Random Intercept Models

Q30b Moyale Observed counts. The FREQ Procedure. Table 1 of type by response. Controlling for site=moyale. Improved (1+2) Same (3) Group only

Repeated Measures ANOVA Multivariate ANOVA and Their Relationship to Linear Mixed Models

BIOSTATISTICAL METHODS

REPEATED MEASURES. Copyright c 2012 (Iowa State University) Statistics / 29

Describing Within-Person Fluctuation over Time using Alternative Covariance Structures

Random Coefficients Model Examples

T-test: means of Spock's judge versus all other judges 1 12:10 Wednesday, January 5, judge1 N Mean Std Dev Std Err Minimum Maximum

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

POWER ANALYSIS TO DETERMINE THE IMPORTANCE OF COVARIANCE STRUCTURE CHOICE IN MIXED MODEL REPEATED MEASURES ANOVA

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

Faculty of Health Sciences. Correlated data. Variance component models. Lene Theil Skovgaard & Julie Lyng Forman.

Correlated data. Overview. Variance component models. Terminology for correlated measurements. Faculty of Health Sciences. Variance component models

STAT 501 EXAM I NAME Spring 1999

Topic 23: Diagnostics and Remedies

Sample Size / Power Calculations

Models for Clustered Data

Models for Clustered Data

STAT 135 Lab 11 Tests for Categorical Data (Fisher s Exact test, χ 2 tests for Homogeneity and Independence) and Linear Regression

Stat 5100 Handout #26: Variations on OLS Linear Regression (Ch. 11, 13)

Practice with Interactions among Continuous Predictors in General Linear Models (as estimated using restricted maximum likelihood in SAS MIXED)

Analyzing the Behavior of Rats by Repeated Measurements

ESTIMATE PROP. IMPAIRED PRE- AND POST-INTERVENTION FOR THIN LIQUID SWALLOW TASKS. The SURVEYFREQ Procedure

Introduction to Within-Person Analysis and RM ANOVA

Supplemental Materials. In the main text, we recommend graphing physiological values for individual dyad

Swabs, revisited. The families were subdivided into 3 groups according to the factor crowding, which describes the space available for the household.

Overdispersion Workshop in generalized linear models Uppsala, June 11-12, Outline. Overdispersion

A Re-Introduction to General Linear Models (GLM)

Independence (Null) Baseline Model: Item means and variances, but NO covariances

Hypothesis Testing for Var-Cov Components

Dynamic Determination of Mixed Model Covariance Structures. in Double-blind Clinical Trials. Matthew Davis - Omnicare Clinical Research

Faculty of Health Sciences. Correlated data. Variance component models. Lene Theil Skovgaard & Julie Lyng Forman.

Correlated data. Overview. Example: Swelling due to vaccine. Variance component models. Faculty of Health Sciences. Variance component models

36-402/608 Homework #10 Solutions 4/1

Least Squares Analyses of Variance and Covariance

Poisson Data. Handout #4

Variance components and LMMs

Variance components and LMMs

Mixed Models Lecture Notes By Dr. Hanford page 199 More Statistics& SAS Tutorial at

STAT3401: Advanced data analysis Week 10: Models for Clustered Longitudinal Data

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

Mixed models with correlated measurement errors

STAT5044: Regression and Anova. Inyoung Kim

Statistical Inference: The Marginal Model

Multivariate Regression (Chapter 10)

Modelling the Covariance

Chapter 7, continued: MANOVA

Lecture 9 STK3100/4100

Longitudinal Studies. Cross-Sectional Studies. Example: Y i =(Y it1,y it2,...y i,tni ) T. Repeatedly measure individuals followed over time

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

Section Poisson Regression

Changes Report 2: Examples from the Australian Longitudinal Study on Women s Health for Analysing Longitudinal Data

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.

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

Multi-factor analysis of variance

Statistical Analysis of Hierarchical Data. David Zucker Hebrew University, Jerusalem, Israel

Multilevel Methodology

Transcription:

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 people participate in the experiment and are randomly assigned to the three diets. Serum glucose measurements are made 15, 30, and 45 minutes after eating a meal from the appropriate diet. That is, there is one measurement per subject per time period. Diet: 1 3 Subject: 1 3 4 5 6 7 8 9 10 11 1 Time: 15 x x x x x x x x x x x x 30 x x x x x x x x x x x x 45 x x x x x x x x x x x x The treatment structure in this experiment is that of a completely randomized design. There is one factor with three levels, and the experimental units (subjects) are randomly assigned to the factor levels. However, we have three measurements on each subject collected over time so this experiment is a repeated measures design. This looks similar to a split-plot design: Whole-plot factor: Diet Whole-plot unit: Subject Split-plot factor: Time Split-plot unit: Subject (at particular time) However, unlike the split-plot design, here there is only one randomization (for the whole-plot factor). The split-plot factor (time) is not randomized to split-plot units. Hasse Diagram Model Y ijk = µ + Diet i + Subj k(i) + Time j + Diet Time ij + ε k(ij) 1

Covariance Structure Because of the lack of randomization at the split-plot level, each subject s measurements across time levels are dependent. A key feature of the model for repeated measures data is that we allow / account for this dependence by defining a covariance matrix for the multivariate response (across time) for each subject. Here, think of each subject s error values (ε) as a length-3 vector (for 3 time points): ε 15 Var(ε 15 ) Cov(ε 15, ε 30 ) Cov(ε 15, ε 45 ) ε = [ ε 30 ] Cov[ε] = [ Cov(ε 15, ε 30 ) Var(ε 30 ) Cov(ε 30, ε 45 )] ε 45 Cov(ε 15, ε 45 ) Cov(ε 30, ε 45 ) Var(ε 45 ) We have previously assumed the ε s are iid N(0,σ ), so Cov[ε]= σ I. But now we need to specify dependence in a symmetric covariance matrix. Many possible structures exist. The table below shows just a few: Description Structure (Type =... ) Example (Cov[ε]) Compound Symmetry σ + φ φ φ CS [ φ σ + φ φ ] φ φ σ + φ First-Order 1 ρ ρ Autoregressive AR(1) σ [ ρ 1 ρ ] ρ ρ 1 σ 1 σ 1 σ 13 Unstructured UN [ σ 1 σ σ 3 ] σ 13 σ 3 σ 3 First-Order Autoregressive Moving-Average 1 γ γρ ARMA(1,1) σ [ γ 1 γ ] γρ γ 1 How to choose a structure? One reasonable approach is to obtain the AICC fit statistic (found in output) for several possible structures; smaller AICC values indicate more parsimonious models (better fit with fewer parameters).

/* STAT 500 repeated measures design glucose data */ /* Define options */ ods html image_dpi=300 style=journal; /* Read in data */ data glucose; input Diet Subj Time Glucose @@; cards; 1 1 15 1 1 30 34 1 1 45 3 1 15 15 1 30 9 1 45 7 1 3 15 1 1 3 30 33 1 3 45 8 1 4 15 1 1 4 30 40 1 4 45 39 5 15 5 30 18 5 45 1 6 15 3 6 30 6 45 10 7 15 18 7 30 16 7 45 9 8 15 5 8 30 4 8 45 15 3 9 15 31 3 9 30 30 3 9 45 39 3 10 15 8 3 10 30 7 3 10 45 36 3 11 15 4 3 11 30 6 3 11 45 36 3 1 15 1 3 1 30 6 3 1 45 3 ; run; /* Fit Compound Symmetry Covariance Structure */ proc glimmix data=glucose plots=residualpanel; class Diet Time Subj; model Glucose = Diet Time ; random intercept / Rside V subject=subj(diet) type=cs; /* 1. 'V' requests within-subject estimated covariance matrix of error terms. 'intercept' here when no other random terms in model (besides subject) 3. 'Rside' here specifies that dependence is among the error terms within subject */ covtest 'Zero Covariance' diagr; /* Tests null that off-diagonal elements are all zero in covariance matrix of error terms */ title1 'Compound Symmetry Covariance Structure'; run; 3

Compound Symmetry Covariance Structure Convergence criterion (ABSGCONV=0.00001) satisfied. Fit Statistics AICC (smaller is better) 148.37 Estimated V Matrix for Subj(Diet) 1 1 Row Col1 Col Col3 1 14.8333 11.4167 11.4167 11.4167 14.8333 11.4167 3 11.4167 11.4167 14.8333 Covariance Parameter Estimates Cov Parm Subject Estimate Standard Error CS Subj(Diet) 11.4167 5.9309 Residual 3.4167 1.1389 Type III Tests of Fixed Effects Effect Num DF Den DF F Value Pr > F Diet 9 1.78 0.003 Time 18 7.96 <.0001 Diet*Time 4 18 66.98 <.0001 Tests of Covariance Parameters Based on the Restricted Likelihood Label DF - Res Log Like ChiSq Pr > ChiSq Note Zero Covariance 1 161.9 18.04 <.0001 DF DF: P-value based on a chi-square with DF degrees of freedom 4

/* Fitting same model, look at interaction plot and contrast */ proc glimmix data=glucose; class Diet Time Subj; model Glucose = Diet Time ; random intercept / Rside V subject=subj(diet) type=cs; lsmeans Diet*Time / pdiff=all adjust=tukey lines plot=mean(sliceby=diet join); /* Recall interaction plot code */ contrast 'Last Contrast!' Time 0 - Diet*Time 0 1-1 0 0 0 0 1-1; estimate 'Estimate of Last Contrast' Time 0 - Diet*Time 0 1-1 0 0 0 0 1-1; /* Averaging over over Diets 1 and 3 only, compare Time30 with Time45 */ run; 5

Tukey-Kramer Grouping for Diet*Time Least Squares Means (Alpha=0.05) LS-means with the same letter are not significantly different. Diet Time Estimate 3 45 35.7500 A 1 30 34.0000 B A 1 45 31.5000 B A C 3 30 7.500 B D C 3 15 6.0000 B E D C 15.0000 E D C 30 0.0000 E D 1 15 17.5000 E F 45 11.5000 F 6

Estimates Label Estimate Standard Error DF t Value Pr > t Estimate of Last Contrast -6.0000 1.8484 18-3.5 0.0045 Contrasts Label Num DF Den DF F Value Pr > F Last Contrast! 1 18 10.54 0.0045 One Last Contrast: Looking at the interaction plot, it appears that maybe there really isn t a difference between Time30 and Time45 when averaging over Diets 1 and 3 only. As before, we can test this using a contrast: 7