Back to the multilevel page of Tom Snijders
MLN/MLWIN MACROS
Below you can find a number of macros for use in the multilevel
computer program MLn/MLwiN.
When clicking, you will see the macros;
you can then save them using the "Save" command in our web browser.
- The SPSS include file PreML.inc,
written by Jurjen Iedema, for getting data with variable names
from SPSS into MLwiN (the versions from January 2006 have two extra features:
missing values can be retained and recoded; decimal commas can be
converted automatically into decimal points;
the new version available from December 6, 2006, corrects an error
which occurred for large numbers of variables.).
-
Several
macros for checking assumptions
in MLwiN version 2.0 are available:
HET1.OBE for testing level-one heteroscedasticity,
RES1.OBE for calculating level-one OLS residuals,
DINFL.OBE for calculating level-two influence
diagnostics similar to Cook's distance and standardized multivariate
level-two residuals.
The theory behind these macros and the interpretation of their results
is treated in Chapter 9 of
Snijders and Bosker (1999)
and in
Snijders and Berkhof (2007).
-
Several
macros for checking assumptions
in MLwiN version 1 are available, the most important being:
HET1.OBE for testing level-one heteroscedasticity,
RES1.OBE for calculating level-one OLS residuals,
RES22.OBE for calculating standardized multivariate
level-two residuals, and
INFL(U).OBE for calculating level-two influence
diagnostics similar to Cook's distance.
The theory behind these macros and the interpretation of their results
is treated in Chapter 9 of
Snijders and Bosker (1999).
-
The macro SRM.OBE
is a companion to the paper
The Social Relations Model for Family Data: A Multilevel Approach
by Tom A.B. Snijders and David A. Kenny,
Journal of Personal Relationships, 6, 1999, 471-486.
Some of the models discussed in this paper are also treated, more briefly,
in
Snijders and Bosker (1999).
The macro fits the Social Relations Model (SRM) in various
specifications,
with or without covariates, for one or multiple groups.
- At the
website of the Section data collection and analysis of the University of Leuven (Belgium),
there are various macros for getting things in and out of MLwiN.