Skip to main content icon/video/no-internet

Effect coding is a coding scheme used when an analysis of variance (ANOVA) is performed with multiple linear regression (MLR). With effect coding, the experimental effect is analyzed as a set of (nonorthogonal) contrasts that opposes all but one experimental condition to one given experimental condition (usually the last one). With effect coding, the intercept is equal to the grand mean, and the slope for a contrast expresses the difference between a group and the grand mean.

Multiple Regression Framework

In linear multiple regression analysis, the goal is to predict, knowing the measurements collected on N subjects, a dependent variable Y from a set of J independent variables denoted

{X1,,Xj,,XJ}.

We denote by X the N×(J+1) augmented matrix collecting the data for the independent variables (this matrix is called augmented because the first column is composed only of 1s), and by y the N×1 vector of observations for the dependent variable. These two matrices have the following structure.

X=[1x1,1x1,kx1,K1xn,1xn,kxn,k1xN,1xN,kxN,k]

andy=[y1ynyN]

The predicted values of the dependent variable Y^ are collected in a vector denoted y^ and are obtained as

y^=Xbwithb=(XTX)1XTy.

where T denotes the transpose of a matrix and the vector b has J components. Its first component is traditionally denoted b0, it is called the intercept of the regression, and it represents the regression component associated with the first column of the matrix X. The additional J components are called slopes, and each of them provides the amount of change in Y consecutive to an increase in one unit of its corresponding column.

The regression sum of squares is obtained as

SSregression=bTXTy1N(1Ty)2

(with 1T being a row vector of 1s conformable with y). The total sum of squares is obtained as

SStotal=yTy1N(1Ty)2.

The residual (or error) sum of squares is obtained as

SSerror=yTybTXTy.

The quality of the prediction is evaluated by computing the multiple coefficient of correlation denoted RY.1,,J2. This coefficient is equal to the squared coefficient of correlation between the dependent variable (Y) and the predicted dependent variable (Y^).

An alternative way of computing the multiple coefficient of correlation is to divide the regression sum of squares by the total sum of squares. This shows that RY.1,,J2 can also be interpreted as the proportion of variance of the dependent variable explained by the independent variables. With this interpretation, the multiple coefficient of correlation is computed as

RY.1,,J2=SSregressionSSregression+SSerror=SSregressionSStotal.

Significance Test

In order to assess the significance of a given RY.1,,J2, we can compute an F ratio as

F=RY.1,,J21RY.1,,J2×NJ1J.

Under the usual assumptions of normality of the error and of independence of the error and the scores, this F ratio is distributed under the null hypothesis as a Fisher distribution with ν1=J and ν2=NJ1 degrees of freedom.

Analysis of Variance Framework

For an ANOVA, the goal is to compare the means of several groups and to assess whether these means are statistically different. For the sake of simplicity, we assume that each experimental group comprises the same number of observations denoted I (i.e., we are analyzing a “balanced design”). So, if we have K experimental groups with a total of I observations per group, we have a total of K×I=N observations denoted Yi,k. The first step is to compute the K experimental means denoted M+,k and the grand mean denoted M+,+. The ANOVA evaluates the difference between the mean by comparing the dispersion of the experimental means to the grand mean (i.e., the dispersion between means) with the dispersion of the experimental scores to the means (i.e., the dispersion within the groups). Specifically, the dispersion between the means is evaluated by computing the sum of squares between means, denoted SSbetween, and computed

...

  • Loading...
locked icon

Sign in to access this content

Get a 30 day FREE TRIAL

  • Watch videos from a variety of sources bringing classroom topics to life
  • Read modern, diverse business cases
  • Explore hundreds of books and reference titles

Sage Recommends

We found other relevant content for you on other Sage platforms.

Loading