Distinguishing Between Random and Fixed: Variables, Effects, and Coefficients
Distinguishing Between Random and Fixed: Variables, Effects, and Coefficients
The terms “random” and “fixed” are used frequently in the multilevel modeling literature. The distinction is
a difficult one to begin with and becomes more confusing because the terms are used to refer to different
circumstances. Here are some summary comments that may help.
1
My distinctions between random variables, effects, and coefficients was inspired by and relies heavily on Kreft & de Leeuw (1998).
Newsom
Psy 526/626 Multilevel Regression, Spring 2019 2
τ21 = var(U1j), and, depending on the circumstances, may not be allowed to vary for every predictor. 2 The
within-group variance, var(Rij) = σ2, is also referred to as “random.”
Because we may be interested in the variation of the coefficients across groups as a research
question, one can think about β0j and β1j as akin to the random variables I described above in the first
section. Instead of attempting to generalize beyond the particular values of the independent variable, we
are attempting to generalize beyond the particular groups in the study. For instance, we may have 100
companies, but we wish to generalize to a larger universe of companies when we examine the means
(intercepts) or the X-Y relationship (slopes). Output from software packages will usually have sections
labeled as fixed effects and random effects. The fixed effects are the coefficients (intercept, slope) as we
usually think about the. The random effects are the variances of the intercepts or slopes across groups.
In the HLM program, variances for the intercepts and slopes are estimated by default (U0j and U1j,
respectively). In SPSS Mixed and R (nlme or lme4), the user must specify which intercepts or slopes
should be estimated. If any variance, intercept or slope, is not specified their values are set to zero. By
setting variances to zero, we are testing a model in which we assume β0j and β1j do not vary randomly
across groups. Thus, the intercept or slope value is assumed to be constant or “nonvarying” across
groups. For example, fixed, nonvarying intercepts would imply the group average for the dependent
variable is assumed to be equal in each group—this implies no variance, so would be rarely assumed for
intercepts. Note that although researchers sometimes refer to this constraint as “fixing the intercepts” or
“fixing the slopes,” the term is somewhat loosely applied, because we are really assuming they are fixed
and nonvarying.
References
Kreft, I., & de Leeuw, J. (1998). Introducing multilevel modeling. London: Sage.
Raudenbush, S.W., & Bryk, A.S., (2002) Hierarchical linear models: Applications and data analysis methods. Thousand Oaks, CA: Sage.
Snijders, T.A.B., & Bosker, R.J. (2012). Multilevel analysis: An introduction to basic and advanced multilevel modeling (2nd Edition). London:
Sage.
2
My notation follows that of Snijders & Bosker (2012), but notation differs among texts. In Raudenbush & Bryk
(2002), for instance, the symbol for intercept variance is τ00, and the subscript refers to the diagonal element
corresponding to the row and column of the variance-covariance matrix for U0j, and the subscript for the slope
variance, τ11, refers to the diagonal element for the U1j column and row.
Newsom
Psy 526/626 Multilevel Regression, Spring 2019 3
Summary Table
Effects Random effect: (1) different statistical model of Random effect: Intercept only models in
regression or ANOVA model which assumes that an random effects MLR are equivalent to
independent variable is random; (2) generally used if ANOVA, random random effects ANOVA
the levels of the independent variable are thought to be effects regression and inclusion of one or
a small subset of the possible values which one wishes Fixed effect: fixed more level-1 predictors
to generalize to; (3) will probably produce larger effects ANOVA, makes the model
standard errors (less powerful). Fixed effect: (1) fixed effects equivalent to a random
statistical model typically used in regression and regression effects ANCOVA when
ANOVA assuming independent variable is fixed; (2) slopes do not vary
generalization of the results apply to similar values of across groups.
independent variable in the population or in other
studies; (3) will probably produce smaller standard
errors (more powerful).
Coefficients Random coefficient: term applies only to MLR Random Both used in MLR.
analyses in which intercepts, slopes, and variances can coefficient: the Slopes and intercept
be assumed to be random. MLR analyses most level-2 predictor, values can be
typically assume random coefficients. One can average income, is considered to be fixed or
conceptualize the coefficients obtained from the level-1 used to predict random, depending on
regressions as a type of random variable which comes school performance researchers'
from and generalizes to a distribution of possible in each school. assumptions and how
values. Groups are conceived of as a subset of the Intercept values for the model is specified.
possible groups. school performance The average intercept or
are assumed to be a slope is referred to as a
Fixed coefficient: a coefficient can be fixed to be non- sample of the "fixed effect." Variances
varying (invariant) across groups by setting the intercepts from a of the slopes and
between-group variance to zero. larger population of intercepts (if allowed to
schools. vary across groups) are
Random coefficients must be variable across groups. called “random
Conceptually, fixed coefficients may be invariant or Fixed coefficient: coefficients."
varying across groups. slopes or intercepts
constrained to be
equal over different
schools.