{ Multilevel Modeling using Stata Andrew Hicks CCPR Statistics and Methods Core Workshop based on the book: Multilevel and Longitudinal Modeling Using.

Slides:



Advertisements
Similar presentations
Multilevel Models with Latent Variables Daniel J. Bauer Department of Psychology University of North Carolina 9/13/04 SAMSI Workshop.
Advertisements

Multilevel modelling short course
Hierarchical Linear Modeling: An Introduction & Applications in Organizational Research Michael C. Rodriguez.
MCUAAAR: Methods & Measurement Core Workshop: Structural Equation Models for Longitudinal Analysis of Health Disparities Data April 11th, :00 to.
Kin 304 Regression Linear Regression Least Sum of Squares
By Zach Andersen Jon Durrant Jayson Talakai
Statistical Analysis Overview I Session 2 Peg Burchinal Frank Porter Graham Child Development Institute, University of North Carolina-Chapel Hill.
Forecasting Using the Simple Linear Regression Model and Correlation
1 Multilevel Mediation Overview -Mediation -Multilevel data as a nuisance and an opportunity -Mediation in Multilevel Models -
Regression Inferential Methods
Linear regression models
EPI 809/Spring Probability Distribution of Random Error.
Xtreg and xtmixed: recap We have the standard regression model (here with only one x): but think that the data are clustered, and that the intercept (c.
Katie Reed EPSSA Methods Workshop. School environment New Latino destinations Immigrant Incorporation Importance of “context of reception” for immigrants’
Sociology 601 Class 17: October 28, 2009 Review (linear regression) –new terms and concepts –assumptions –reading regression computer outputs Correlation.
Objectives (BPS chapter 24)
Lecture 4 Linear random coefficients models. Rats example 30 young rats, weights measured weekly for five weeks Dependent variable (Y ij ) is weight for.
Introduction to Regression Analysis
LINEAR REGRESSION: Evaluating Regression Models Overview Assumptions for Linear Regression Evaluating a Regression Model.
LINEAR REGRESSION: Evaluating Regression Models. Overview Assumptions for Linear Regression Evaluating a Regression Model.
LINEAR REGRESSION: Evaluating Regression Models. Overview Standard Error of the Estimate Goodness of Fit Coefficient of Determination Regression Coefficients.
Chapter 10 Simple Regression.
Clustered or Multilevel Data
1 Review of Correlation A correlation coefficient measures the strength of a linear relation between two measurement variables. The measure is based on.
Chapter Topics Types of Regression Models
Modeling Achievement Trajectories When Attrition is Informative Betsy J. Feldman & Sophia Rabe- Hesketh.
© 2000 Prentice-Hall, Inc. Chap Forecasting Using the Simple Linear Regression Model and Correlation.
PSY 307 – Statistics for the Behavioral Sciences Chapter 7 – Regression.
Foster Care Reunification: The use of hierarchical modeling to account for sibling and county correlation Emily Putnam-Hornstein, MSW Center for Social.
Simple Linear Regression Analysis
Unit 3b: From Fixed to Random Intercepts © Andrew Ho, Harvard Graduate School of EducationUnit 3b – Slide 1
T-tests and ANOVA Statistical analysis of group differences.
Correlation and Regression
Introduction to Linear Regression and Correlation Analysis
Chapter 11 Simple Regression
Simple Linear Regression
Multilevel and Random Coefficients Models School of Nursing “Multi-Level Models: What Are They and How Do They Work? ” Melinda K. Higgins, Ph.D. 30 March.
+ Chapter 12: Inference for Regression Inference for Linear Regression.
Regression. Height Weight How much would an adult female weigh if she were 5 feet tall? She could weigh varying amounts – in other words, there is a distribution.
Business Statistics: A First Course, 5e © 2009 Prentice-Hall, Inc. Chap 12-1 Correlation and Regression.
Linear Regression Model In regression, x = independent (predictor) variable y= dependent (response) variable regression line (prediction line) ŷ = a +
Chapter 14 Inference for Regression AP Statistics 14.1 – Inference about the Model 14.2 – Predictions and Conditions.
Inference for Regression Simple Linear Regression IPS Chapter 10.1 © 2009 W.H. Freeman and Company.
Analysis of Covariance (ANCOVA)
Lecture 10: Correlation and Regression Model.
Week 2, 2007 Lecture 2aSlide #1 Bivariate Regression Analysis Theoretical Models Basic Linear Models: Deterministic Version Basic Linear Models: Stochastic.
Sharon Wolf NYU Abu Dhabi Additional Insights Summer Training Institute June 15,
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Simple Linear Regression Analysis Chapter 13.
BUSINESS MATHEMATICS & STATISTICS. Module 6 Correlation ( Lecture 28-29) Line Fitting ( Lectures 30-31) Time Series and Exponential Smoothing ( Lectures.
NURS 306, Nursing Research Lisa Broughton, MSN, RN, CCRN RESEARCH STATISTICS.
Introduction Many problems in Engineering, Management, Health Sciences and other Sciences involve exploring the relationships between two or more variables.
Inference about the slope parameter and correlation
Simple Linear Regression
REGRESSION G&W p
AP Statistics Chapter 14 Section 1.
Statistics for Managers using Microsoft Excel 3rd Edition
Stephen W. Raudenbush University of Chicago December 11, 2006
Kin 304 Regression Linear Regression Least Sum of Squares
HLM with Educational Large-Scale Assessment Data: Restrictions on Inferences due to Limited Sample Sizes Sabine Meinck International Association.
BPK 304W Regression Linear Regression Least Sum of Squares
BPK 304W Correlation.
Slope of the regression line:
CHAPTER 29: Multiple Regression*
Multiple Regression A curvilinear relationship between one variable and the values of two or more other independent variables. Y = intercept + (slope1.
No notecard for this quiz!!
Simple Linear Regression
Simple Linear Regression
Chapter 14 Inference for Regression
MGS 3100 Business Analysis Regression Feb 18, 2016
Presentation transcript:

{ Multilevel Modeling using Stata Andrew Hicks CCPR Statistics and Methods Core Workshop based on the book: Multilevel and Longitudinal Modeling Using Stata (Second Edition) by Sophia Rabe-Hesketh Anders Skrondal

Within-Subject Dependence Within-Subject Dependence: We can predict occasion 2 measurement if we know the subject’s occasion 1 measurement. Between-Subject Heterogeneity: Large differences between subjects (compare subjects 9 and 15) Within-subject dependence is due to between-subject heterogeneity

Standard Regression Model Measurement of subject i on occasion j Population Mean Residuals (error terms) Independent over subjects and occasions Clearly ignores information about within-subject dependence

Variance Component Model Within-subject residual: deviation of observation i from subject j’s mean

Variance Component Model Within-subject residual: deviation of observation i from subject j’s mean

Variance Component Model Within-subject residual: deviation of observation i from subject j’s mean

Variance Component Model

Proportion of Total Variance due to subject differences: Intraclass Correlation: within cluster correlation

Random or Fixed Effect? What if we want to fix our model so that each effect is for a specific subject? Then we would use a fixed effect model:.xtreg wm, fe

Random or Fixed Effect? random effect model: if the interest concerns the population of clusters “generalize the potential effect” i.e. nurse giving the drug fixed effect model: if we are interest in the “effect” of the specific clusters in a particular dataset “replicable in life” i.e. the actual drug

Random Intercept Model with Covariates without covariates:

Random Intercept Model with Covariates with covariates:

Ecological Fallacy occurs when between-cluster relationships differ substantially from within-cluster relationships. Can be caused by cluster-lever confounding For example, mothers who smoke during pregnancy may also adopt other behaviors such as drinking and poor nutritional intake, or have lower socioeconomic status and be less educated. These variables adversely affect birthweight and have not be adequately controlled for. In these cases the covariate is correlated with the error term. (endogeneity) Because of this, the between-effect may be an overestimate of the true effect. In contrast, for within-effects each mother serves as her own control, so within mother estimates may be closer to the true causal effect.

How to test for endogeneity?

Random-coefficient model We’ve already considered random intercept models where the intercept is allowed to vary over clusters after controlling for covariates. What if we would also like the coefficients (or slopes) to vary across clusters? Models the involve both random intercepts and random slopes are called Random Coefficient Models

Random-coefficient model Random Intercept Model: Random Coefficient Model: cluster-specific random intercept cluster-specific random slope