PSY 817: SAS-lab #23
April 18, 1997

Objectives:

     1) Analysis of Covariance (ANCOVA)

     2) testing for interactions

Objective 1: The Analysis of Covariance (ANCOVA)

 You may want to refer back to lab #8 where I first introduced ANOVAs. This week, we're going to add a covariate and run an ANCOVA. In addition, to make things more interesting, we'll also add another independent variable to the model. As before, you will need to used the Jam/U.S. data set for this objective.
 

model AGGRESS = culture sexcb age ;

Objective 2: testing for interactions So far, we've only looked at main effects in all our analyses. However, as all of you know, sometimes there are interactions between two or more different variables. It's important to test for these interactions. Here's how to do it with PROC GLM. Please note that the procedure is different for PROC REG.
 

model AGGRESS = age*sexcb age*culture sexcb*culture age sex culture;