Download presentation
Presentation is loading. Please wait.
Published byGervase Johns Modified over 9 years ago
1
Multilevel Modeling Using HLM and MLwiN Xiao Chen UCLA Academic Technology Services
2
Hierarchical Data Structure Organizational studies Students nested in schools and variables are measured at both student level and school level Students nested in schools and variables are measured at both student level and school level Repeated measures Multiple observations are collected over time on each person Multiple observations are collected over time on each person Doubly nested Multiple observations are nested in individuals and individuals are nested within organizations Multiple observations are nested in individuals and individuals are nested within organizations
3
Statistical Treatment of Clustered Data Aggregation Moving variables from student level to school level Moving variables from student level to school level Shift of meaning Shift of meaning Ecological fallacy Ecological fallacy Relationships observed for groups necessarily hold for individuals Neglecting the original data structure Neglecting the original data structureDisaggregation Moving variables from school level to student level Moving variables from school level to student level Both macro level and micro level variables exist in the model Both macro level and micro level variables exist in the model Data has only micro level variables Data has only micro level variables
4
What can Multilevel Modeling do? Improving estimation of effects within individual units Hypotheses testing about cross-level effects Partitioning of variance and covariance components among levels
5
Overview of HLM and MLwiN HLM Under development since mid 1980’s Under development since mid 1980’s First window version came out in 1997 First window version came out in 1997 Version 6 in September 2004 Version 6 in September 2004 Run on Windows 95/98/NT/Me/2000/XP Run on Windows 95/98/NT/Me/2000/XP Minimum 2 MB of RAM and 2 MB of disk space Minimum 2 MB of RAM and 2 MB of disk spaceMLwiN Based on MLn First released in 1997 Version 2 in 2004 Run on Windows 95/98/NT/Me/2000/XP 32 Mb of Ram or more A hard disk with at least 20MB of available space
6
Continued HLM Graphical interface Graphical interface Continuous outcome Continuous outcome Binary, count outcome Binary, count outcome Multivariate outcome variables Multivariate outcome variables Cross-classified data Cross-classified data Sample weights Sample weights Number of levels: 3 Number of levels: 3MLwiN Graphical interface Continuous outcome Binary, count outcome Multivariate outcome variables Cross-classified data Sample weights Number of levels: can be many (default is 5)
7
Data Format for Multilevel Analysis
8
Inputting Data HLM Use a level-1 data set and a level-2 data set for creating an.mdm file (mdmt stands for multivariate data matrix) Use a level-1 data set and a level-2 data set for creating an.mdm file (mdmt stands for multivariate data matrix) Read SAS, SPSS, STATA and SYSTAT files directly Read SAS, SPSS, STATA and SYSTAT files directly Built-in Stat/transfer for many different data types Built-in Stat/transfer for many different data types Use mdm file for computation, very efficient Use mdm file for computation, very efficient Use raw data sets for graphics Use raw data sets for graphicsMLwiN One single file ASCII file Native MLwiN format (.ws extension) Stata2mlwin program for stata users Set-up the size of worksheet (memory control)
9
Data Management HLM Length of a variable name is 8 Length of a variable name is 8 No data management No data management Predictor variables can be either grand-mean centered or group-mean centered Predictor variables can be either grand-mean centered or group-mean centered Cross-level interaction is naturally built Cross-level interaction is naturally built Summary statistics created when.mdm file is created Summary statistics created when.mdm file is createdMLwiN Can create new variables Categorical variables can be dummied automatically Summary statistics Cross-level interaction variable has to be created before building up a model
10
HLM: Multilevel Model Approach
11
MLwiN: Mixed Model Approach
12
Output From HLM
13
Output from MLwiN
14
Graphics for Exploring Data: HLM (Data-based graphs): line plots, scatter plots, and box plots
15
Graphs for Exploring the Model: HLM (Model-based graphs)
16
Graphics for Exploring Data: MLwiN
17
Graphs for Exploring the Model: MLwiN (Model-based graphs)
18
Reference and Site(s) Ming Yang, Review of HLM 5.04 for Windows: http://multilevel.ioe.ac.uk/softrev/reviewhlm5.pdf http://multilevel.ioe.ac.uk/softrev/reviewhlm5.pdf Andy Jones, A review of random effects models in MLwiN (version 2.0): http://multilevel.ioe.ac.uk/softrev/reviewmlwin.pdf MLwiN 2 user’s manual: http://multilevel.ioe.ac.uk/download/userman20.pdf Goldstein, Tutorial in Biostatistics Multilevel modeling of medical data http://media.wiley.com/product_data/excerpt/08/0470023 7/0470023708.pdf Singer and Willett: Applied Longitudinal Data Analysis: Modeling Change and Event Occurrence: http://gseacademic.harvard.edu/~alda/ http://www.ats.ucla.edu/stat/
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.