Title: Analysis of Covariance
1Analysis of Covariance
- Qualitative variables
- Quantitative variables
2Example Kutner Ch 22 table 1
of populations Sampled??
3Run regression 3 times
- Once for each promotion
- Save output
4Simple Model
Covariate
Common Slope
Factor Level
5Simple Model
6Hypothesis testing
7SPSS
8SPSS Simple Model
9SPSS - Simple
What is being tested ?
10Estimates
eq1 Predicted sales 17.368
.899prev_sales
eq2 Predicted sales 12.292
.899prev_sales
eq3 Predicted sales 4.391
.899prev_sales
11Compare Output
- Did we same results??
- What about Sigma?
12More Complex Model
Covariate
Different Slopes
Factor Level
13Complex Model
14Hypothesis testing
15SPSS - Complex
16SPSS - Complex
What is being tested?
17SPSS Complex
What are the prediction equations ? Same result
as when we did the 3 separately?
18Which model is appropriate?
- Simple ??
- Complex ??
- We do not know at this point
19Need to test
20Matrix Setup
21L Matrix
- /lmatrix betas all 0 0 0 1 -1 0
- all 0 0 0 1 0 -1
22Additional topics
- Expected Marginal Means
- Test at some other X
- RSQ
- Design Matrix
23Problems Areas
- Multi-colinearity
- Problem Points
- Non-constant variance as a function of the
independents bp test on design matrix - Variable selection
24Additional Topics In ANCOVA
25Subset Selection In ANACOV
- Much more complex
- Uses - stepwise
26Steps
- Setup Model
- Get Design Matrix
- Merge design with original data
- Fit Y versus factors save residuals - r
- Fit multivariate (factorscovariates) versus
factors save residuals rr - Fit r versus rr use stepwise
- Take final model Use ANCOVA
27"Statistical Issues Associated with Analysis of
Weight Change in Animals."
- or
- Some Things You Might Not Know
28Two Major Topics Today
- Weight Gain (Pre-Post test before-after
baseline data) very simple approach - Analysis of Covariance What is Really Being
Tested?
29Weight Gain
Treatment
BEFORE X
AFTER Y
30Usual Analysis
31Example - Milliken Johnsonpre_post.sav
- Cholesterol Study
- Pre and Post
- 4 Diets
32Data
33Results - Usual
34Trouble In River City ??
- Not So Fast General Approach
- Analysis of Covariance
35From the General to the Usual
36Results - RSQUARED
Usual - R Squared .131 (Adjusted R Squared
.038)
General - R Squared .542 (Adjusted R Squared
.409)
37Usual Prediction Model
38General Prediction Model
39Computer Model - SPSS
40More Results - General
41What is Being Tested ? Depends Upon The Computer
Package!!
42DietPre_Ch
43Intercept
44Pre_Ch
45A Different Look