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

Similar documents
SAS Syntax and Output for Data Manipulation:

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

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

ANOVA Longitudinal Models for the Practice Effects Data: via GLM

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

Introduction to Within-Person Analysis and RM ANOVA

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

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

A (Brief) Introduction to Crossed Random Effects Models for Repeated Measures Data

Describing Within-Person Fluctuation over Time using Alternative Covariance Structures

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

Review of CLDP 944: Multilevel Models for Longitudinal Data

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

Introduction to Random Effects of Time and Model Estimation

Random Intercept Models

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

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

Lab 11. Multilevel Models. Description of Data

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

Describing Change over Time: Adding Linear Trends

Simple, Marginal, and Interaction Effects in General Linear Models: Part 1

Describing Within-Person Change over Time

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

Longitudinal Data Analysis of Health Outcomes

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

Odor attraction CRD Page 1

Repeated Measures Design. Advertising Sales Example

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

Covariance Structure Approach to Within-Cases

A Re-Introduction to General Linear Models (GLM)

Review of Unconditional Multilevel Models for Longitudinal Data

Time-Invariant Predictors in Longitudinal Models

Models for Clustered Data

Models for Clustered Data

Review of Multilevel Models for Longitudinal Data

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

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

Answer to exercise: Blood pressure lowering drugs

WITHIN-PARTICIPANT EXPERIMENTAL DESIGNS

An Introduction to Multilevel Models. PSYC 943 (930): Fundamentals of Multivariate Modeling Lecture 25: December 7, 2012

Designing Multilevel Models Using SPSS 11.5 Mixed Model. John Painter, Ph.D.

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

Time Invariant Predictors in Longitudinal Models

Time-Invariant Predictors in Longitudinal Models

Introduction to SAS proc mixed

Topic 23: Diagnostics and Remedies

Models for longitudinal data

Introduction to SAS proc mixed

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

Variance component models part I

Topic 20: Single Factor Analysis of Variance

36-402/608 Homework #10 Solutions 4/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.

Lecture 4. Random Effects in Completely Randomized Design

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

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

Implementation of Pairwise Fitting Technique for Analyzing Multivariate Longitudinal Data in SAS

Analysis of variance and regression. May 13, 2008

Time-Invariant Predictors in Longitudinal Models

Time-Invariant Predictors in Longitudinal Models

Random Effects. Edps/Psych/Stat 587. Carolyn J. Anderson. Fall Department of Educational Psychology. university of illinois at urbana-champaign

General Linear Model (Chapter 4)

Describing Nonlinear Change Over Time

Longitudinal Invariance CFA (using MLR) Example in Mplus v. 7.4 (N = 151; 6 items over 3 occasions)

Some general observations.

Simple, Marginal, and Interaction Effects in General Linear Models

Statistical Distribution Assumptions of General Linear Models

Ron Heck, Fall Week 3: Notes Building a Two-Level Model

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

Introduction and Background to Multilevel Analysis

Modeling Effect Modification and Higher-Order Interactions: Novel Approach for Repeated Measures Design using the LSMESTIMATE Statement in SAS 9.

Repeated Measures Data

Generalized Linear Models for Non-Normal Data

36-309/749 Experimental Design for Behavioral and Social Sciences. Dec 1, 2015 Lecture 11: Mixed Models (HLMs)

Hierarchical Generalized Linear Models. ERSH 8990 REMS Seminar on HLM Last Lecture!

Course Introduction and Overview Descriptive Statistics Conceptualizations of Variance Review of the General Linear Model

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

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

Descriptions of post-hoc tests

Statistical Inference: The Marginal Model

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

Course Introduction and Overview Descriptive Statistics Conceptualizations of Variance Review of the General Linear Model

Multiple Group CFA Invariance Example (data from Brown Chapter 7) using MLR Mplus 7.4: Major Depression Criteria across Men and Women (n = 345 each)

5/3/2012 Moderator Effects with SAS 1

A Re-Introduction to General Linear Models

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

Statistics 262: Intermediate Biostatistics Model selection

ssh tap sas913, sas

STA441: Spring Multiple Regression. This slide show is a free open source document. See the last slide for copyright information.

Lab 3: Two levels Poisson models (taken from Multilevel and Longitudinal Modeling Using Stata, p )

Estimation: Problems & Solutions

Differences of Least Squares Means

Model Assumptions; Predicting Heterogeneity of Variance

Gregory Carey, 1998 Regression & Path Analysis - 1 MULTIPLE REGRESSION AND PATH ANALYSIS

Workshop 9.3a: Randomized block designs

Section 9c. Propensity scores. Controlling for bias & confounding in observational studies

Topic 32: Two-Way Mixed Effects Model

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

SAS Code: Joint Models for Continuous and Discrete Longitudinal Data

Transcription:

CLDP 944 Example 3a page 1 From Between-Person to Within-Person Models for Longitudinal Data The models for this example come from Hoffman (2015) chapter 3 example 3a. We will be examining the extent to which a learning achievement outcome) can be predicted from group (control as the reference vs. treatment) and time (pre-test as the reference vs. post-test) in a sample of 50 children. SAS Syntax and Output for Data Manipulation: * Defining global variable for file location to be replaced in code below; %LET filesave= C:\Dropbox\17_CLDP944\CLP944_Example03a; * Location for SAS files for these models (uses macro variable filesave); LIBNAME filesave "&filesave."; * Import and stack chapter 3 two-occasion multivariate data; * Create new variable on left from old variable on right, OUTPUT writes data; DATA work.chapter3a; SET filesave.sas_chapter3a; time=1; outcome=outcome1; OUTPUT; time=2; outcome=outcome2; OUTPUT; DROP outcome1 outcome2; LABEL time = "time: Occasion (1=pre-test, 2=post-test)" outcome = "outcome: Learning Outcome"; RUN; * Center predictors for analysis; DATA work.chapter3a; SET work.chapter3a; time1 = time - 1; treat = group - 1; LABEL time1 = "time1: Time (0=pre-test, 1=post-test)" treat = "treat: Treatment Group (0=control, 1=treatment)"; RUN; * CLASS= means per group and time, WAYS= means overall=0, per category=1, per cell=2; TITLE1 "Chapter 3a Example: Means by group and time for learning outcome"; PROC MEANS MEAN STDERR MIN MAX DATA=work.Chapter3a; CLASS group time; WAYS 0 1 2; VAR outcome; RUN; TITLE1; Cell means by group and time for y outcome Treatment Group Time (1=control, (1=pre-test N 2=treatment) 2=post-test) Obs Mean Std Error Minimum Maximum ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ 1 1 25 49.0767977 1.1370576 37.5335041 59.5504810 2 25 54.8991630 1.1256529 44.5615778 67.1060321 2 1 25 50.7587396 0.9070808 40.5321932 62.1309134 2 25 58.6236314 0.9864754 47.4303443 68.6163028 ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Marginal means by group for y outcome Treatment Group (1=control, N 2=treatment) Obs Mean Std Error Minimum Maximum ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ 1 50 51.9879804 0.8943692 37.5335041 67.1060321 2 50 54.6911855 0.8691455 40.5321932 68.6163028 ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Marginal means by time for y outcome Time (1=pre-test N 2=post-test) Obs Mean Std Error Minimum Maximum ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ 1 50 49.9177687 0.7297690 37.5335041 62.1309134 2 50 56.7613972 0.7870204 44.5615778 68.6163028 ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Grand mean for y outcome Mean Std Error Minimum Maximum ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ 53.3395829 0.6351006 37.5335041 68.6163028 ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ

CLDP 944 Example 3a page 2 3.1: Between-Person Empty Model TITLE "Eq 3.1: Empty Between-Person model via MIXED"; PROC MIXED DATA=work.Chapter3a NOCLPRINT COVTEST METHOD=REML; MODEL outcome = / SOLUTION DDFM=BW; REPEATED time / R RCORR TYPE=VC SUBJECT=PersonID; RUN; TITLE; Covariance Parameters 1 Columns in X 1 Read 100 Used 100 Not Used 0 1 40.3353 2 40.3353 This table tells you how many parameters are in your model for the means ( columns in x, the fixed effects, or 1 fixed intercept here) and in your model for the variance ( covariance parameters, or 1 residual variance here). It also tells you how many observations were read per subject, as defined by SUBJECT= on the REPEATED line. 1 1.0000 2 1.0000 Cov Z Parm Subject Estimate Error Value Pr > Z time PersonID 40.3353 5.7330 7.04 <.0001-2 Res Log Likelihood 651.6 AIC (smaller is better) 653.6 AICC (smaller is better) 653.6 BIC (smaller is better) 655.5.00 1.0000 651.6 1 653.6 653.6 654.3 655.5 656.5 Solution for Fixed Effects Intercept 53.3396 0.6351 49 83.99 <.0001 This is the estimate of the residual variance σ. It is labeled time because that is how the R matrix is structured via the REPEATED line. This null model LRT examines the need for any random effects variances and covariances. Because we don t have any (yet), df = 0. This is the estimate of the fixed intercept β. In REML, model df = # for calculating AIC and BIC only includes parameters in the model for the variance.

CLDP 944 Example 3a page 3 3.2: Within-Person Empty Model TITLE "Eq 3.2: Empty Within-Person model via MIXED"; PROC MIXED DATA=work.Chapter3a NOCLPRINT COVTEST METHOD=REML; MODEL outcome = / SOLUTION DDFM=BW; REPEATED time / R RCORR TYPE=CS SUBJECT=PersonID; RUN; TITLE; Covariance Parameters 2 Columns in X 1 We still have 1 fixed effect, the fixed intercept, but now the model for the variance includes random intercept variance and residual variance. Read 100 Used 100 Not Used 0 1 40.4590 12.2526 2 12.2526 40.4590 1 1.000.3028 2 0.3028 1.0000 e u u u e u 1 ICC ICC 1 Z Cov Parm Subject Estimate Error Value Pr Z CS PersonID 12.2526 6.0256 2.03 0.0420 Residual 28.2064 5.6413 5.00 <.0001 CS = Random Intercept Variance τ Residual = Residual Variance σ -2 Res Log Likelihood 646.8 AIC (smaller is better) 650.8 AICC (smaller is better) 650.9 BIC (smaller is better) 654.6 1 4.77 0.0289 Now we have a random intercept variance, so df=1. This is the model comparison of BP vs. WP. Who wins? 646.8 2 650.8 650.9 652.3 654.6 656.6 Solution for Fixed Effects Intercept 53.3396 0.7260 49 73.47 <.0001 Which is the better empty model, and how do you know? What is the ICC for these data and what does it mean? Now the model for the variance df=2. This is still the estimate of the fixed intercept β, but note the SE differs.

CLDP 944 Example 3a page 4 3.7 (top): Between-Person Conditional Model TITLE1 "Eq 3.7 (top): Between-Person Conditional (Predictor) Model via MIXED"; TITLE2 "Not using CLASS statement, manually dummy coding group and time"; PROC MIXED DATA=work.Chapter3a NOCLPRINT COVTEST METHOD=REML; MODEL outcome = time1 treat time1*treat / SOLUTION DDFM=BW; REPEATED time / R RCORR TYPE=VC SUBJECT=PersonID; ESTIMATE "Mean: Control Group at Pre-Test" intercept 1 time1 0 treat 0 time1*treat 0; ESTIMATE "Mean: Control Group at Post-Test" intercept 1 time1 1 treat 0 time1*treat 0; ESTIMATE "Mean: Treatment Group at Pre-Test" intercept 1 time1 0 treat 1 time1*treat 0; ESTIMATE "Mean: Treatment Group at Post-Test" intercept 1 time1 1 treat 1 time1*treat 1; ESTIMATE "Time Effect for Control Group" time1 1 time1*treat 0; ESTIMATE "Time Effect for Treatment Group" time1 1 time1*treat 1; ESTIMATE "Group Effect at Pre-Test" treat 1 time1*treat 0; ESTIMATE "Group Effect at Post-Test" treat 1 time1*treat 1; RUN; TITLE1; TITLE2; Covariance Parameters 1 Columns in X 4 Now we have 4 parameters in the model for the means and 1 parameter in the model for the variance (σ ). Read 100 Used 100 Not Used 0 1 27.2245 2 27.2245 1 1.0000 2 1.0000 Cov Z Parm Subject Estimate Error Value Pr > Z time PersonID 27.2245 3.9295 6.93 <.0001 This is the estimate of the residual variance σ. It is labeled time because that is how the R matrix is structured via the REPEATED line. -2 Res Log Likelihood 602.5 AIC (smaller is better) 604.5 AICC (smaller is better) 604.5 BIC (smaller is better) 606.4.00 1.0000 This null model LRT examines the need for any random effects variances and covariances. Because we don t have any (yet), df = 0. 602.5 1 604.5 604.5 605.2 606.4 607.4

CLDP 944 Example 3a page 5 BP Solution for Fixed Effects Intercept 49.0768 1.0435 48 47.03 <.0001 beta0 time1 5.8224 1.4758 48 3.95 0.0003 beta1 treat 1.6819 1.4758 48 1.14 0.2601 beta2 time1*treat 2.0425 2.0871 48 0.98 0.3327 beta3 Type 3 Tests of Fixed Effects Num Den Effect DF DF F Value Pr > F time1 1 48 15.56 0.0003 treat 1 48 1.3.2601 time1*treat 1 48 0.96 0.3327 Estimates Label Estimate Error DF t Value Pr > t Mean: Control Group at Pre-Test 49.0768 1.0435 48 47.03 <.0001 Mean: Control Group at Post-Test 54.8992 1.0435 48 52.61 <.0001 Mean: Treatment Group at Pre-Test 50.7587 1.0435 48 48.64 <.0001 Mean: Treatment Group at Post-Test 58.6236 1.0435 48 56.18 <.0001 Time Effect for Control Group 5.8224 1.4758 48 3.95 0.0003 beta1 Time Effect for Treatment Group 7.8649 1.4758 48 5.33 <.0001 beta1 + beta3*1 Group Effect at Pre-Test 1.6819 1.4758 48 1.14 0.2601 beta2 Group Effect at Post-Test 3.7245 1.4758 48 2.52 0.0150 beta2 + beta3*1 These results assume independent observations what happens if that s not the case? 3.7 (bottom): Within-Person Conditional Model TITLE1 "Eq 3.7 (bottom): Within-Person Conditional (Predictor) Model via MIXED"; TITLE2 "Not using CLASS statement, manually dummy coding group and time"; PROC MIXED DATA=work.Chapter3a NOCLPRINT IC COVTEST METHOD=REML; MODEL outcome = time1 treat time1*treat / SOLUTION DDFM=BW; REPEATED time / R RCORR TYPE=CS SUBJECT=PersonID; ESTIMATE "Mean: Control Group at Pre-Test" intercept 1 time1 0 treat 0 time1*treat 0; ESTIMATE "Mean: Control Group at Post-Test" intercept 1 time1 1 treat 0 time1*treat 0; ESTIMATE "Mean: Treatment Group at Pre-Test" intercept 1 time1 0 treat 1 time1*treat 0; ESTIMATE "Mean: Treatment Group at Post-Test" intercept 1 time1 1 treat 1 time1*treat 1; ESTIMATE "Time Effect for Control Group" time1 1 time1*treat 0; ESTIMATE "Time Effect for Treatment Group" time1 1 time1*treat 1; ESTIMATE "Group Effect at Pre-Test" treat 1 time1*treat 0; ESTIMATE "Group Effect at Post-Test" treat 1 time1*treat 1; RUN; TITLE1; TITLE2; Covariance Parameters 2 Columns in X 4 We still have 4 parameters in the model for the means, but now we have 2 parameters in the model for the variance (τ and σ ). Read 100 Used 100 Not Used 0

CLDP 944 Example 3a page 6 1 27.2245 22.7794 2 22.7794 27.2245 1 1.000.8367 2 0.8367 1.0000 e u u u e u 1 ICC ICC 1 Z Cov Parm Subject Estimate Error Value Pr Z CS PersonID 22.7794 5.1236 4.45 <.0001 Residual 4.4451 0.9073 4.90 <.0001 CS = Random Intercept Variance τ Residual = Residual Variance σ -2 Res Log Likelihood 544.7 AIC (smaller is better) 548.7 AICC (smaller is better) 548.8 BIC (smaller is better) 552.5 Now we have a random intercept variance, so df=1. This is the model comparison of conditional BP vs. WP. Who wins? 1 57.81 <.0001 544.7 2 548.7 548.8 550.2 552.5 554.5 WP Solution for Fixed Effects Intercept 49.0768 1.0435 48 47.03 <.0001 beta0 time1 5.8224 0.5963 48 9.76 <.0001 beta1 treat 1.6819 1.4758 48 1.14 0.2601 beta2 time1*treat 2.0425 0.8433 48 2.42 0.0193 beta3 Which results differ from the BP model, and why? Type 3 Tests of Fixed Effects Num Den Effect DF DF F Value Pr > F time1 1 48 95.33 <.0001 treat 1 48 1.3.2601 time1*treat 1 48 5.87 0.0193 Estimates Label Estimate Error DF t Value Pr > t Mean: Control Group at Pre-Test 49.0768 1.0435 48 47.03 <.0001 Mean: Control Group at Post-Test 54.8992 1.0435 48 52.61 <.0001 Mean: Treatment Group at Pre-Test 50.7587 1.0435 48 48.64 <.0001 Mean: Treatment Group at Post-Test 58.6236 1.0435 48 56.18 <.0001 Time Effect for Control Group 5.8224 0.5963 48 9.76 <.0001 beta1 Time Effect for Treatment Group 7.8649 0.5963 48 13.19 <.0001 beta1 + beta3*1 Group Effect at Pre-Test 1.6819 1.4758 48 1.14 0.2601 beta2 Group Effect at Post-Test 3.7245 1.4758 48 2.52 0.0150 beta2 + beta3*1 What other terms that could possibly be included are missing? Are they really missing?

CLDP 944 Example 3a page 7 What if we had used the CLASS statement instead for our conditional within-person model? TITLE1 "Eq 3.7 (bottom): Within-Person Conditional (Predictor) Model via MIXED"; TITLE2 "NOW using CLASS statement"; PROC MIXED DATA=work.Chapter3a NOCLPRINT IC COVTEST METHOD=REML; CLASS PersonID time time1 treat; MODEL outcome = time1 treat time1*treat / SOLUTION DDFM=BW; REPEATED time / R RCORR TYPE=CS SUBJECT=PersonID; LSMEANS time1 treat time1*treat / DIFF=ALL; RUN; TITLE1; TITLE2; Solution for Fixed Effects Time Treatment 1= (0=control, Effect post-test) 1=treatment) Estimate Error DF t Value Pr > t Intercept 58.6236 1.0435 48 56.18 <.0001 time1 0-7.8649 0.5963 48-13.19 <.0001 time1 1 0.... treat 0-3.7245 1.4758 48-2.52 0.0150 treat 1 0.... time1*treat 2.0425 0.8433 48 2.42 0.0193 time1*treat 0 1 0.... time1*treat 1.... time1*treat 1 1 0.... Type 3 Tests of Fixed Effects Num Den Effect DF DF F Value Pr > F time1 1 48 263.41 <.0001 treat 1 48 3.65 0.0619 time1*treat 1 48 5.87 0.0193 Note that the p-values from the solution for fixed effects (simple effects) and Type 3 tests of fixed effects (marginal effects) do not match because they mean different things (stay tuned). Least Squares Means Time Treatment 1= (0=control, Effect post-test) 1=treatment) Estimate Error DF t Value Pr > t time1 0 49.9178 0.7379 48 67.65 <.0001 time1 1 56.7614 0.7379 48 76.92 <.0001 treat 0 51.9880 1.0000 48 51.99 <.0001 treat 1 54.6912 1.0000 48 54.69 <.0001 time1*treat 49.0768 1.0435 48 47.03 <.0001 time1*treat 0 1 50.7587 1.0435 48 48.64 <.0001 time1*treat 1 0 54.8992 1.0435 48 52.61 <.0001 time1*treat 1 1 58.6236 1.0435 48 56.18 <.0001 Differences of Least Squares Means Time Treatment Time Treatment 1= (0=control, 1= (0=control, Effect post-test) 1=treatment) post-test) 1=treatment) Estimate Error DF t Value Pr > t time1 0 1-6.8436 0.4217 48-16.23 <.0001 treat 0 1-2.7032 1.4143 48-1.91 0.0619 time1*treat 0 1-1.6819 1.4758 48-1.14 0.2601 time1*treat 1 0-5.8224 0.5963 48-9.76 <.0001 time1*treat 1 1-9.5468 1.4758 48-6.47 <.0001 time1*treat 0 1 1 0-4.1404 1.4758 48-2.81 0.0072 time1*treat 0 1 1 1-7.8649 0.5963 48-13.19 <.0001 time1*treat 1 0 1 1-3.7245 1.4758 48-2.52 0.0150