Illustration (and the use of HLM)



Similar documents
Specifications for this HLM2 run

The 3-Level HLM Model

Introduction to Data Analysis in Hierarchical Linear Models

Analyzing Intervention Effects: Multilevel & Other Approaches. Simplest Intervention Design. Better Design: Have Pretest

SPSS Guide: Regression Analysis

Introduction to Multilevel Modeling Using HLM 6. By ATS Statistical Consulting Group

Part 2: Analysis of Relationship Between Two Variables

Introducing the Multilevel Model for Change

Εισαγωγή στην πολυεπίπεδη μοντελοποίηση δεδομένων με το HLM. Βασίλης Παυλόπουλος Τμήμα Ψυχολογίας, Πανεπιστήμιο Αθηνών

Construct the MDM file for a HLM2 model using SPSS file input

Simple Linear Regression, Scatterplots, and Bivariate Correlation

HLM software has been one of the leading statistical packages for hierarchical

" Y. Notation and Equations for Regression Lecture 11/4. Notation:

HYPOTHESIS TESTING: CONFIDENCE INTERVALS, T-TESTS, ANOVAS, AND REGRESSION

SAS Syntax and Output for Data Manipulation:

Introduction to Longitudinal Data Analysis

A Hierarchical Linear Modeling Approach to Higher Education Instructional Costs

Chapter 5 Analysis of variance SPSS Analysis of variance

Multilevel Modeling Tutorial. Using SAS, Stata, HLM, R, SPSS, and Mplus

This chapter will demonstrate how to perform multiple linear regression with IBM SPSS

1. What is the critical value for this 95% confidence interval? CV = z.025 = invnorm(0.025) = 1.96

Regression step-by-step using Microsoft Excel

17. SIMPLE LINEAR REGRESSION II

Making the MDM file. cannot

Final Exam Practice Problem Answers

Univariate Regression

The Basic Two-Level Regression Model

Consider a study in which. How many subjects? The importance of sample size calculations. An insignificant effect: two possibilities.

Estimation of σ 2, the variance of ɛ

Analysing Questionnaires using Minitab (for SPSS queries contact -)

1. The parameters to be estimated in the simple linear regression model Y=α+βx+ε ε~n(0,σ) are: a) α, β, σ b) α, β, ε c) a, b, s d) ε, 0, σ

5. Linear Regression

Confidence Intervals for Spearman s Rank Correlation

2. What is the general linear model to be used to model linear trend? (Write out the model) = or

I L L I N O I S UNIVERSITY OF ILLINOIS AT URBANA-CHAMPAIGN

Premaster Statistics Tutorial 4 Full solutions

Binary Logistic Regression

Estimating Multilevel Models using SPSS, Stata, SAS, and R. JeremyJ.Albright and Dani M. Marinova. July 14, 2010

NOTES ON HLM TERMINOLOGY

Multiple Regression in SPSS This example shows you how to perform multiple regression. The basic command is regression : linear.

Confidence Intervals for Cp

1/27/2013. PSY 512: Advanced Statistics for Psychological and Behavioral Research 2

X X X a) perfect linear correlation b) no correlation c) positive correlation (r = 1) (r = 0) (0 < r < 1)

Chapter 13 Introduction to Linear Regression and Correlation Analysis

Outline. Topic 4 - Analysis of Variance Approach to Regression. Partitioning Sums of Squares. Total Sum of Squares. Partitioning sums of squares

Simple Linear Regression Inference

Least Squares Estimation

Simple linear regression

Introduction to Hierarchical Linear Modeling with R

Moderation. Moderation

Hierarchical Linear Models

How to Get More Value from Your Survey Data

Multiple Choice: 2 points each

Regression Analysis: A Complete Example

DATA ANALYSIS. QEM Network HBCU-UP Fundamentals of Education Research Workshop Gerunda B. Hughes, Ph.D. Howard University

DEPARTMENT OF PSYCHOLOGY UNIVERSITY OF LANCASTER MSC IN PSYCHOLOGICAL RESEARCH METHODS ANALYSING AND INTERPRETING DATA 2 PART 1 WEEK 9

Simple Regression Theory II 2010 Samuel L. Baker

Web-based Supplementary Materials for Bayesian Effect Estimation. Accounting for Adjustment Uncertainty by Chi Wang, Giovanni

Factors affecting online sales

Statistical Functions in Excel

Directions for using SPSS

Bowerman, O'Connell, Aitken Schermer, & Adcock, Business Statistics in Practice, Canadian edition

Week TSX Index

The Dummy s Guide to Data Analysis Using SPSS

Ordinal Regression. Chapter

Coefficient of Determination

Notes on Applied Linear Regression

Probability Calculator

Section Format Day Begin End Building Rm# Instructor. 001 Lecture Tue 6:45 PM 8:40 PM Silver 401 Ballerini

Descriptive Statistics

Additional sources Compilation of sources:

Chapter 15. Mixed Models Overview. A flexible approach to correlated data.

Elements of statistics (MATH0487-1)

Analyzing Data from Small N Designs Using Multilevel Models: A Procedural Handbook

Data Analysis Tools. Tools for Summarizing Data

Chapter 23. Inferences for Regression

Section 1: Simple Linear Regression

Predictability Study of ISIP Reading and STAAR Reading: Prediction Bands. March 2014

APPLICATION OF LINEAR REGRESSION MODEL FOR POISSON DISTRIBUTION IN FORECASTING

Introduction to proc glm

Confidence Intervals for Cpk

LAGUARDIA COMMUNITY COLLEGE CITY UNIVERSITY OF NEW YORK DEPARTMENT OF MATHEMATICS, ENGINEERING, AND COMPUTER SCIENCE

Basic Statistics and Data Analysis for Health Researchers from Foreign Countries

Module 3: Correlation and Covariance

Example: Boats and Manatees

A Basic Guide to Analyzing Individual Scores Data with SPSS

Business Statistics. Successful completion of Introductory and/or Intermediate Algebra courses is recommended before taking Business Statistics.

Correlation and Simple Linear Regression

An introduction to hierarchical linear modeling

2013 MBA Jump Start Program. Statistics Module Part 3

Using Excel for Statistical Analysis

Introduction to Basic Reliability Statistics. James Wheeler, CMRP

How To Run Statistical Tests in Excel

10. Analysis of Longitudinal Studies Repeat-measures analysis

Regression Analysis (Spring, 2000)

NCSS Statistical Software Principal Components Regression. In ordinary least squares, the regression coefficients are estimated using the formula ( )

A Basic Introduction to Missing Data

Correlation and Regression Analysis: SPSS

POLYNOMIAL AND MULTIPLE REGRESSION. Polynomial regression used to fit nonlinear (e.g. curvilinear) data into a least squares linear regression model.

Profile analysis is the multivariate equivalent of repeated measures or mixed ANOVA. Profile analysis is most commonly used in two cases:

Transcription:

Illustration (and the use of HLM) Chapter 4 1 Measurement Incorporated HLM Workshop

The Illustration Data Now we cover the example. In doing so we does the use of the software HLM. In addition, we will discuss typical questions that can be answered. 2 Measurement Incorporated HLM Workshop

The Illustration Data So the data set consists of 7,185 students who are nested in schools (there are 160 schools). Variables that we will use: MATHACH (Math Achievement at student level). CSES (group centered SES at student level). MEANSES (Average School SES, school level). l) SECTOR (Public 0 versus Catholic 1, school level). 3 Measurement Incorporated HLM Workshop

Student Label School Label Level-1 Variables Level-2 Variables

The Questions 1. How much do U.S. high schools vary in their mean math achievement? 2. Do schools with high MEANSES also have high math achievement? 3. Is the strength of association between student CSES and math achievement similar across schools? s? Or is CSES S a better predictor of student math achievement in some schools than others? 4. How do public and Catholic schools compare in terms of mean math achievement and in terms of the strength of the SES-math achievement relationship, after we control for MEAN SES? 5 Measurement Incorporated HLM Workshop

1 st Question 1. How much do U.S. high schools vary in their mean math achievement? Notice that this question only addresses the variance of the observations, We will use a random effects ANOVA, 6 Measurement Incorporated HLM Workshop

1 st Question We assume that u 0j has a normal distribution with mean 0 and variance τ 00 School j s mean MATHACH β γ + 0 = γ + u 0 j 00 0 j MATHACH β + ij = 0 j r ij Here all we want to know is the amount of variability of the mean math achievement across the schools 7 Measurement Incorporated HLM Workshop

HLM The program does allow one to keep two separate files in the case of a 2 level analysis, SO in our case we could have a file for each examinee and a file for school, You will need to give the ID variable (school) in both files, Here we have it as an SPSS file and so we will just use it. 8 Measurement Incorporated HLM Workshop

HLM To begin using HLM open the program and click on file This will pop-up a question about what format of dt data you are using At this point we want to start a new analysis so click on Make a new MDM file 9 Measurement Incorporated HLM Workshop

HLM This brings up an option window. For now we only discuss how to do a two level analysis so click on HLM2 10 Measurement Incorporated HLM Workshop

HLM Pick variables Pick variables Pick the SPSS file that you are using Pick the SPSS file that you are using 11 Measurement Incorporated HLM Workshop

HLM Then save the mdmt file, a control file Add name of data file Finally, click on Make MDM file, completes your set up. Examine basic statistics file Click Done 12 Measurement Incorporated HLM Workshop

HLM That will get you to this part where you define your model. 13 Measurement Incorporated HLM Workshop

HLM Output The output for HLM is given as a txt file This file can be opened from HLM Here I will just provide some of the main parts 14 Measurement Incorporated HLM Workshop

Summary Information This gives us the random components 15 Measurement Incorporated HLM Workshop

Fixed Effects Fixed effect for our model (intercept,,γγ 00 ) 16 Measurement Incorporated HLM Workshop

Random Effects Same random components as before only now we have SE and significance tests 17 Measurement Incorporated HLM Workshop

Estimates Think back to the original question. 1. How much do U.S. high schools vary in their mean math achievement? We have a parameter that measured that for us, which was τ 00 =8.61. Also, the average e achievement ement across all school averages (i.e., the grand mean). γ 00 =12.34. 18 Measurement Incorporated HLM Workshop

Range of School Averages Given the mean and its variance I can even compute a confidence interval to describe a range that includes 95% of all schools average math achievement. ˆ γ ± 1.96( ˆ τ ) 00 00 1 2 1 12.64 ± 1.96(8.61) 2 = (6.89,18.39) 19 Measurement Incorporated HLM Workshop

CI for Grand Mean We can also put a CI around the our estimate of the grand mean using the same equation. Only now we use the standard error of our estimate for γ 00 1 ± 2 12.64 ± 1.96(.24) = (12.17,13.11) 17 13 11) 20 Measurement Incorporated HLM Workshop

Interclass Correlation We can also compute the intraclass correlation. ˆ τ 8.61 ˆ τ 00 + σ 861 8.61+ 3915 39.15 00 ρ = = = 2 0.18 21 Measurement Incorporated HLM Workshop

Reliability Lastly we can compute the reliability of our estimate of School j s mean. ˆ ( ) ˆ00 λ j = reliability( Y. j) = ( 2 ˆ τ ) 00 + ( σ / n j ) τ 22 Measurement Incorporated HLM Workshop

Reliability If we compute this value for all schools and average it we will get a summary of reliability which is the same that is given in the HLM output. 23 Measurement Incorporated HLM Workshop

2 nd Question 1. Do schools with high MEANSES also have high math achievement? Focus is how a level-2 variable effects math achievement (average math achievement). Means as outcomes model. 24 Measurement Incorporated HLM Workshop

2 nd Question MATHACH β + ij = 0 j r ij β 0 j = γ00 + + γ01meanses u0 j 25 Measurement Incorporated HLM Workshop

HLM 26 Measurement Incorporated HLM Workshop

Model Summary Information 27 Measurement Incorporated HLM Workshop

Results (Fixed and Random) The estimate of our effect for MEANSES, γ 01 Hypothesis test Here are our variance This tells us that t there are still components differences across schools and that we do need the random effect

Additional Results There are other things we can compute. For example, we can compute the expected range of school means adjusted for MEANSES. 1 1 γˆ 1.96 ˆ 2 12.65 1.96 2.64 2 00 ± τ00 = ± = ( ) ( ) ( 9.47,15.83) 29 Measurement Incorporated HLM Workshop

Additional Results We can also compute the proportion of variance that can be explained by MEANSES using. τˆ 00 00 = = ( ANOVA) τˆ ( MEANSES) τˆ00 ( ANOVA) 8.61 2.64 8.61 0.69 30 Measurement Incorporated HLM Workshop

Additional Results Lastly we can still compute the intraclass correlation as before. Now it is conditional on MEANSES. A measure of dependence within school given that we are now accounting for MEANSES. τˆ 2.64 ρ = 00 = =.06 τˆ +σ 2 2.64 39.16 00 + 31 Measurement Incorporated HLM Workshop

3 rd Question 1. Is the strength of association between student CSES and math achievement similar across schools? Or is CSES a better predictor of a students math achievement in some schools than others? Now the focus is on the effect of a level-1 variable on the dependent variable. Also how this effect various across schools. 32 Measurement Incorporated HLM Workshop

3 rd Question That means that we are interested in: MATHACH = β0 + β1 ( CSES ) + r β β = γ + u 0 j 00 = γ + u j j i ij oj 1j 10 1j 33 Measurement Incorporated HLM Workshop

HLM 34 Measurement Incorporated HLM Workshop

HLM Output Notice now that we have two level-2 random effects we can estimate each variance and their covariance, this is their covariance matrix 35 Measurement Incorporated HLM Workshop

HLM Output 36 Measurement Incorporated HLM Workshop

Average Regression Line Can determine the average regression line across school based on the level-2 fixed effects. β = γ + u 0 00 β j = γ + u oj 1 j 10 1 j So the average line is: MATHACH = 12.65 + 2.19( CSES) 37 Measurement Incorporated HLM Workshop

Variability of Line Can determine variability of the regression lines across schools. Based on variance components (or random effects) τ 00 and τ 11 12.64 ± 1.96(8.68) = 6.87,18.41 1 1 2 ( ) 2.19 1.96(0.68) 68) 0.57,3.81 ± 2 = ( ) 38 Measurement Incorporated HLM Workshop

Relationships of Coefficients Can interpret the relationship between average math achievement with in a school and the relationship between CSES and MATHACH. Looking at τ 01 39 Measurement Incorporated HLM Workshop

Additional Results Lastly, we could look at the proportion of error, at level 1, that can be explained by CSES. Because we are at level-1 we use σ 2 2 2 σ ( ANOVA ) σ ( CSES ) 39.15 36.70 = =.063 σ 2 ( CSES ) 39.15 Remember that the school MEANSES accounted for 60% 40 Measurement Incorporated HLM Workshop

4 th Question 4. How do public and Catholic schools compare in terms of mean math achievement and in terms of the strength of the SES-math achievement relationship, after we control for MEAN SES? 41 Measurement Incorporated HLM Workshop

4 th Question Do MEANSES and SECTOR significantly predict the intercept. Do MEANSES and SECTOR significantly predict the slope. How much variation in the intercept and slope is explained by MEANSES and SECTOR. 42 Measurement Incorporated HLM Workshop

HLM 43 Measurement Incorporated HLM Workshop

HLM Output 44 Measurement Incorporated HLM Workshop

Fixed Effects 45 Measurement Incorporated HLM Workshop

Random Effects 46 Measurement Incorporated HLM Workshop

HLM Output Lastly, I could, as shown on page 85, compute the amount of variability reduced, compared to the random regression line discussed previously. 47 Measurement Incorporated HLM Workshop

Summary The purpose this morning was to get you familiar with terminology, notation, and the types of tests and conclusions we can make with HLM. Are there any questions? 48 Measurement Incorporated HLM Workshop