Multilevel Modeling Programs David A. Kenny January 23, 2014.

Slides:



Advertisements
Similar presentations
University of Connecticut
Advertisements

Test of Distinguishability
G Lecture 10 SEM methods revisited Multilevel models revisited
A Conceptual Introduction to Multilevel Models as Structural Equations
Data: Crab mating patterns Data: Typists (Poisson with random effects) (Poisson Regression, ZIP model, Negative Binomial) Data: Challenger (Binomial with.
SPH 247 Statistical Analysis of Laboratory Data 1April 2, 2013SPH 247 Statistical Analysis of Laboratory Data.
Nested Example Using SPSS David A. Kenny January 8, 2014.
Using Multilevel Modeling to Analyze Longitudinal Data Mark A. Ferro, PhD Offord Centre for Child Studies Lunch & Learn Seminar Series January 22, 2013.
One-Way ANOVA with Repeated Measurement. Fixed and Random Effects.
October 6, 2009 Session 6Slide 1 PSC 5940: Running Basic Multi- Level Models in R Session 6 Fall, 2009.
© Willett, Harvard University Graduate School of Education, 5/21/2015S052/I.3(b) – Slide 1 More details can be found in the “Course Objectives and Content”
HLM – ESTIMATING MULTI-LEVEL MODELS Hierarchical Linear Modeling.
Treating Stimuli as a Random Factor in Social Psychology: A New and Comprehensive Solution to a Pervasive but Largely Ignored Problem Jacob Westfall University.
Linear Modelling III Richard Mott Wellcome Trust Centre for Human Genetics.
LECTURE 13 ANALYSIS OF COVARIANCE AND COVARIANCE INTERACTION and ATI (Aptitude-Treatment Interaction)
Purpose to compare average response among levels of the factors Chapters 2-4 -predict future response at specific factor level -recommend best factor.
Overlooking Stimulus Variance Jake Westfall University of Colorado Boulder Charles M. Judd David A. Kenny University of Colorado BoulderUniversity of Connecticut.
WLS for Categorical Data
Longitudinal Data Analysis: Why and How to Do it With Multi-Level Modeling (MLM)? Oi-man Kwok Texas A & M University.
The Two-intercept Approach in Multilevel Modeling with SPSS
Examples from Singer’s Using SAS Proc Mixed to Fit Multilevel Models… “ To use the paper effectively, … in particular the reader must understand: The difference.
1 Date Name, department Lecture 3 Empirical Bayes and Proc Mixed Ziad Taib Biostatistics, AZ April 24, 2009.
Introduction to Multilevel Modeling Using SPSS
Multilevel Modeling: Other Topics
Multilevel Modeling 1.Overview 2.Application #1: Growth Modeling Break 3.Application # 2: Individuals Nested Within Groups 4.Questions?
 Combines linear regression and ANOVA  Can be used to compare g treatments, after controlling for quantitative factor believed to be related to response.
Randomized block trials with spatial correlation Workshop in Mixed Models Umeå, August 27-28, 2015 Johannes Forkman, Field Research Unit, SLU.
G Lecture 81 Example of Random Regression Model Fitting What if outcome is not normal? Marginal Models and GEE Example of GEE for binary outcome.
G Lecture 5 Example fixed Repeated measures as clustered data
Lecture 5 Linear Mixed Effects Models
One-with-Many Design: Estimation David A. Kenny June 22, 2013.
Growth Curve Models Using Multilevel Modeling with SPSS David A. Kenny January 23, 2014.
Multilevel Linear Models Field, Chapter 19. Why use multilevel models? Meeting the assumptions of the linear model – Homogeneity of regression coefficients.
Vilija R. Joyce, MS January 11, 2012 Modeling Utilities over Time.
One-with-Many Design: Introduction David A. Kenny June 11, 2013.
Multilevel Linear Modeling aka HLM. The Design We have data at two different levels In this case, 7,185 students (Level 1) Nested within 160 Schools (Level.
Multilevel Modeling Software Wayne Osgood Crime, Law & Justice Program Department of Sociology.
What is a “Launch” relationship? Definition: Individual differences in the rate of change of a target variable is predicted from individual differences.
BUSI 6480 Lecture 8 Repeated Measures.
Exercise 1 You have a clinical study in which 10 patients will either get the standard treatment or a new treatment Randomize which 5 of the 10 get the.
1 Experimental Statistics - week 14 Multiple Regression – miscellaneous topics.
HLM Models. General Analysis Strategy Baseline Model - No Predictors Model 1- Level 1 Predictors Model 2 – Level 2 Predictors of Group Mean Model 3 –
Multilevel Modeling: Other Topics David A. Kenny January 7, 2014.
MULTILEVEL MODELING Multilevel: what does it mean? Consider the following graph: LIKINGLIKING AGGRESSION LO HI.
1 Statistics 262: Intermediate Biostatistics Regression Models for longitudinal data: Mixed Models.
Vilija R. Joyce, MS November 14, 2012 Modeling Health-Related Quality of Life over Time.
G Lecture 71 Revisiting Hierarchical Mixed Models A General Version of the Model Variance/Covariances of Two Kinds of Random Effects Parameter Estimation.
> xyplot(cat~time|id,dd,groups=ses,lty=1:3,type="l") > dd head(dd) id ses cat pre post time
Analysis of Variance Yonghui Dong 03/12/2013. Why not multiple t tests comparison? Three Groups comparison: Group 1 vs. Group 2 Group 1 vs. Group 3 Group.
Two Crossed Random Factors
An Introduction to Latent Curve Models
Introduction to Multilevel Modeling Using HLM 6
Regression Models First-order with Two Independent Variables
Applications to AD with Sample SAS Codes
APIM with Distinguishable Dyads: MLM Estimation by Interactions
Nested Example Using SPSS
Unit 26: Model Assumptions & Case Analysis II: More complex designs
Multiple Regression Example
Panel & longitudinal data
Repeated Measures Analysis Using Multilevel Modeling with SPSS
Analgesic study with three treatments crossed with gender.
G Lecture 6 Multilevel Notation; Level 1 and Level 2 Equations
Repeated Measures ANOVA
A New Approach to the Study of Teams: The GAPIM
Two Crossed Random Factors
Modeling age-related development of delinquency during adolescence and early adulthood with an autoregressive growth curve Johannes A. Landsheer, Utrecht.
Introduction to Regression
Andrea Friese, Silvia Artuso, Danai Laina
Analysis of Variance (ANOVA)
Presentation transcript:

Multilevel Modeling Programs David A. Kenny January 23, 2014

Presumed Background Multilevel Modeling Nested

Example  Kashy (1991) Study of Gender and Intimacy  respondents completed a survey each night for two weeks  outcome is the average intimacy rating of each interaction partner(from 1 to 7, bigger numbers more intimacy)  Levels  level 1: intimacy of the interaction (1-7), partner gender (-1=male; 1=female)  level 2: respondent gender (-1=male; 1=female) 3

4

Syntax MIXED intimacy WITH resp_gender partner_gender /FIXED = resp_gender partner_gender resp_gender*partner_gender /PRINT = SOLUTION TESTCOV /RANDOM INTERCEPT partner_gender | SUBJECT(id) COVTYPE(UNR). 5

Random Effects 6

Example: Fixed Effects 7

Output from Other Programs HLM SAS R: lmer MLwiN not included: Stata 8

9 HLM: Formulation

10 HLM

11 SAS: Syntax PROC MIXED COVTEST; CLASS ID; MODEL INTIMACY = Part_Gen Resp_Gen Resp_Gen*Part_Gen / DDFM=SATTERTH SOLUTION; RANDOM INTERCEPT Part_Gen / TYPE=UN SUB=ID ; RUN; QUIT;

12 SAS: Output

library(foreign);library(lme4);library(lmerTest) ifilename="c:/kashy.sav" OrDa = read.spss (ifilename,use.value.labels=FALSE,max.value.labels=Inf,to.data.frame=TRUE) OrDa$int= OrDa$resp_gender*OrDa$partner_gender model <- lmer(intimacy ~ 1 + resp_gender + partner_gender + int + (partner_gender|id), data=OrDa) modelA <- lmer(intimacy ~ 1 + resp_gender + partner_gender + int + ((1)|id) + (0+partner_gender|id), data=OrDa) modelB <- lmer(intimacy ~ 1 + resp_gender + partner_gender + int + ((1)|id), data=OrDa) model anova(model) anova(model,modelB) anova(modelA,modelB) 13 R: lmer

14 REML criterion at convergence: Random effects: Groups Name Std.Dev. Corr id (Intercept) partner_gender Residual Analysis of Variance Table of type 3 with Satterthwaite approximation for degrees of freedom Df Sum Sq Mean Sq F value Denom Pr(>F) resp_gender * partner_gender int *** --- Df logLik deviance Chisq Chi Df Pr(>Chisq) object R: lmer

15 MLwiN

16 More Webinars References Growth Curve Repeated Measures Two-Intercept Model Crossed Design Other Topics