Advanced Methods and Models in Behavioral Research – 2014 Been there / done that: Stata Logistic regression (……) Conjoint analysis Coming up: Multi-level.

Slides:



Advertisements
Similar presentations
Multilevel modelling short course
Advertisements

ASSUMPTION CHECKING In regression analysis with Stata
Continued Psy 524 Ainsworth
Regression and correlation methods
AMMBR - final stuff xtmixed (and xtreg) (checking for normality, random slopes)
Kin 304 Regression Linear Regression Least Sum of Squares
AMMBR from xtreg to xtmixed (+checking for normality, random slopes)
Toolkit + “show your skills” AMMBR from xtreg to xtmixed (+checking for normality, and random slopes, and cross-classified models, and then we are almost.
Copyright © 2009 Pearson Education, Inc. Chapter 29 Multiple Regression.
Analysis of variance (ANOVA)-the General Linear Model (GLM)
1 SSS II Lecture 1: Correlation and Regression Graduate School 2008/2009 Social Science Statistics II Gwilym Pryce
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.
Class 16: Thursday, Nov. 4 Note: I will you some info on the final project this weekend and will discuss in class on Tuesday.
AMMBR from xtreg to xtmixed (+checking for normality, and random slopes, and cross-classified models, and then we are done in terms of theory)
1 Lecture 2: ANOVA, Prediction, Assumptions and Properties Graduate School Social Science Statistics II Gwilym Pryce
© 2010 Pearson Prentice Hall. All rights reserved Least Squares Regression Models.
School of Veterinary Medicine and Science Multilevel modelling Chris Hudson.
Clustered or Multilevel Data
Analysis of Variance & Multivariate Analysis of Variance
Finding help. Stata manuals You have all these as pdf! Check the folder /Stata12/docs.
Week 14 Chapter 16 – Partial Correlation and Multiple Regression and Correlation.
Introduction to Regression Analysis, Chapter 13,
Simple Linear Regression Analysis
Generalized Linear Models
Basic Analysis of Variance and the General Linear Model Psy 420 Andrew Ainsworth.
Review for Final Exam Some important themes from Chapters 9-11 Final exam covers these chapters, but implicitly tests the entire course, because we use.
3nd meeting: Multilevel modeling: introducing level 1 (individual) and level 2 (contextual) variables + interactions Subjects for today:  Intra Class.
Objectives of Multiple Regression
Statistics for the Social Sciences Psychology 340 Fall 2013 Thursday, November 21 Review for Exam #4.
Psy B07 Chapter 1Slide 1 ANALYSIS OF VARIANCE. Psy B07 Chapter 1Slide 2 t-test refresher  In chapter 7 we talked about analyses that could be conducted.
Introduction to Linear Regression and Correlation Analysis
Chapter 13: Inference in Regression
Chapter 11 Simple Regression
One-Factor Experiments Andy Wang CIS 5930 Computer Systems Performance Analysis.
Today’s program Herwart / Axel: Kiva intro (the Galak et al. paper) Follow-up questions Non-response (and respondent list) Multi-level models in Stata.
Typical paper follow-ups Paper is wrong (in the sense of a real mistake) There is an alternative explanation for the analytical results. You test that.
Chap 20-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 20 Sampling: Additional Topics in Sampling Statistics for Business.
Advanced Methods and Models in Behavioral Research – 2010/2011 AMMBR course design CONTENT METHOD Y is 0/1 conjoint analysis logistic regression multi-level.
Introduction Multilevel Analysis
Dealing with data All variables ok? / getting acquainted Base model Final model(s) Assumption checking on final model(s) Conclusion(s) / Inference Better.
Statistics and Quantitative Analysis U4320 Segment 12: Extension of Multiple Regression Analysis Prof. Sharyn O’Halloran.
Statistics for clinicians Biostatistics course by Kevin E. Kip, Ph.D., FAHA Professor and Executive Director, Research Center University of South Florida,
Multiple Regression The Basics. Multiple Regression (MR) Predicting one DV from a set of predictors, the DV should be interval/ratio or at least assumed.
Multilevel Linear Models Field, Chapter 19. Why use multilevel models? Meeting the assumptions of the linear model – Homogeneity of regression coefficients.
Various topics Petter Mostad Overview Epidemiology Study types / data types Econometrics Time series data More about sampling –Estimation.
Testing Hypotheses about Differences among Several Means.
Chapter 13 Multiple Regression
Scatterplots & Regression Week 3 Lecture MG461 Dr. Meredith Rolfe.
STA 286 week 131 Inference for the Regression Coefficient Recall, b 0 and b 1 are the estimates of the slope β 1 and intercept β 0 of population regression.
Model Selection and Validation. Model-Building Process 1. Data collection and preparation 2. Reduction of explanatory or predictor variables (for exploratory.
Analysis Overheads1 Analyzing Heterogeneous Distributions: Multiple Regression Analysis Analog to the ANOVA is restricted to a single categorical between.
Assumption checking in “normal” multiple regression with Stata.
Review Lecture 51 Tue, Dec 13, Chapter 1 Sections 1.1 – 1.4. Sections 1.1 – 1.4. Be familiar with the language and principles of hypothesis testing.
Chapter 8: Simple Linear Regression Yang Zhenlin.
Advanced MMBR Conjoint analysis (1). Advanced Methods and Models in Behavioral Research Conjoint analysis -> Multi-level models You have to understand:
Advanced Methods and Models in Behavioral Research – 2009/2010 AMMBR course design CONTENT METHOD Y is 0/1 conjoint analysis logistic regression multi-level.
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Simple Linear Regression Analysis Chapter 13.
Analysis of Experiments
Introduction to Multiple Regression Lecture 11. The Multiple Regression Model Idea: Examine the linear relationship between 1 dependent (Y) & 2 or more.
Multiple Regression Learning Objectives n Explain the Linear Multiple Regression Model n Interpret Linear Multiple Regression Computer Output n Test.
Advanced MMBR Conjoint analysis. Advanced Methods and Models in Behavioral Research Conjoint analysis -> Multi-level models You have to understand: -What.
Stata – be the master Stata. “After I have run my standard commands, what can I do to make my model better (and understand better what is going on)?”
Multilevel Analysis With R
Multiple Regression.
B&A ; and REGRESSION - ANCOVA B&A ; and
Linear Mixed Models in JMP Pro
Week 14 Chapter 16 – Partial Correlation and Multiple Regression and Correlation.
Generalized Linear Models
(Residuals and
Multiple Regression.
Presentation transcript:

Advanced Methods and Models in Behavioral Research – 2014 Been there / done that: Stata Logistic regression (……) Conjoint analysis Coming up: Multi-level analyses

Advanced Methods and Models in Behavioral Research – 2014 AMMBR course design CONTENT METHOD Y is 0/1 conjoint analysis logistic regression multi-level methods

Intro: multi-level analysis Logistic regression: finale (?) Advanced Methods and Models in Behavioral Research – 2014

MULTI – LEVEL ANALYSIS

In with the (multi-level) statistics... Advanced Methods and Models in Behavioral Research – 2014 Y = student grade X = introversion Y = manager grade X = age

Advanced Methods and Models in Behavioral Research – 2014 Multi-level models or... dealing with clustered data. One solution: the variance component model Bayesian hierarchical models mixed models (in SPSS) hierarchical linear models random effects models random coefficient models subject specific models variance component models variance heterogeneity models

Advanced Methods and Models in Behavioral Research – 2014 Clustered data -> multi-level models Pupils within schools (within regions within countries) Firms within regions (or sectors) Vignettes within persons Employees within stores (our fastfood.dta example)

Advanced Methods and Models in Behavioral Research – 2014 Two issues with clustered data Your estimates will (in all likelihood) be too precise: you find effects that do not exist in the population [make sure you get that] You will want to distinguish between effects within clusters and effects between clusters [see next two slides]

Advanced Methods and Models in Behavioral Research – 2014 On individual vs aggregate data For instance: X = introversionX = age of McDonald’s employee Y = student grade(s)Y = like the manager

Advanced Methods and Models in Behavioral Research – 2014 Had we only known, that the data are clustered! So the effect of an X within clusters can be different from the effect between clusters! Using the school example: lines represent schools. And within schools the effect of being introvert is positive!

Advanced Methods and Models in Behavioral Research – 2014

MAIN MESSAGES Be able to recognize clustered data and deal with it appropriately (how to do that will follow) Distinguish two kinds of effects: those at the "micro-level" (within clusters) vs those at the aggregate level (between clusters). They need not be the same! (and... do not test a micro-hypothesis with aggregate data)

Multi-level analysis: variance at different levels Advanced Methods and Models in Behavioral Research – 2014

A toy example – two schools, two pupils Overall mean(0) Two schools each with two pupils. We first calculate the means. Overall mean= (3+2+(-1)+(-4))/4= exam score School 2School 1 (taken from Rasbash)

Advanced Methods and Models in Behavioral Research – 2014 Now the variance Overall mean(0) exam score School 2School 1 The total variance is the sum of the squares of the departures of the observations around the mean, divided by the sample size (4) = ( )/4=7.5

Advanced Methods and Models in Behavioral Research – 2014 The variance of the school means around the overall mean exam score School 2School 1 Overall mean(0) The variance of the school means around the overall mean= ( (-2.5) 2 )/2=6.25 (total variance was 7.5)

Advanced Methods and Models in Behavioral Research – 2014 The variance of the pupils scores around their school’s mean exam score School 2School The variance of the pupils scores around their school’s mean= ((3-2.5) 2 + (2-2.5) 2 + (-1-(-2.5)) 2 + (-4-(-2.5)) 2 )/4 =1.25

Advanced Methods and Models in Behavioral Research – > So you can partition the total variance in individual level variance and school level variance How much of the variability in pupil attainment is attributable to factors at the school and how much to factors at the pupil level? In terms of our toy example we can now say 6.25/7.5= 82% of the total variation of pupils attainment is attributable to school level factors 1.25/7.5= 18% of the total variation of pupils attainment is attributable to pupil level factors And this is important; we want to know how to explain (in this example) school attainment, and appararently the differences are at the school level more than the pupil level

 In a multi-level analysis, we would like to have an estimate of the amount of variance at the aggregate level vs at the individual level Advanced Methods and Models in Behavioral Research – 2014

Standard multiple regression won't do YD1D2D3D4D5id… ……………3 +2……………3 -3……………4 +4……………4 ………………… So you can use all the data and just run a multiple regression, but then you disregard the clustering effect, which gives uncorrect confidence intervals and cannot distinguish between effects at the cluster vs at the school level Possible solution (but not so good) You can aggregate within clusters, and then run a multiple regression on the aggregate data. Two problems: no individual level testing possible + you get much less data points. So what can we do?

Advanced Methods and Models in Behavioral Research – 2014 Multi-level models The standard multiple regression model assumes... with the subscript "i" defined at the case-level.... and the epsilons independently distributed with covariance matrix I. With clustered data, you know these assumptions are not met.

Advanced Methods and Models in Behavioral Research – 2014 Solution 1: add dummy-variables per cluster Try multiple regression, but with as many dummy variables as you have clusters (minus 1)... where, in this example, there are j+1 clusters. IF the clustering differences are (largely) due to differences in the intercept between persons, this might work. BUT if there are only a handful of cases per person, this necessitates a huge number of extra variables

Advanced Methods and Models in Behavioral Research – 2014 Solution 2: split your micro-level X-vars Say you have: then create: and add both as predictors (instead of x 1 ) Make sure that you understand what is happening here, and why it is of use.

Advanced Methods and Models in Behavioral Research – 2014 Solution 3: the variance component model In the variance component model, we split the randomness in a "personal part" and a "rest part"

NB solution 1 en 3 gaan niet samen Advanced Methods and Models in Behavioral Research – 2014

Now: how do you do this in Stata? [note to CS: use age and schooling as examples to split at restaurant level] relevant commands xtset and xtreg bys : egen = mean( ) gen dvarB = - convenience commands tab, gen()drop orderdes editsum

Advanced Methods and Models in Behavioral Research – 2014 Up next How do we run the "Solution 1”, "Solution 2”, and “Solution 3” analysis and compare which works best? What about assumption checking? Random intercept we now saw, but how about random slopes?

Advanced Methods and Models in Behavioral Research – 2014 When you have multi-level data (2 levels) 1.If applicable: consider whether using separate dummies per group might help (use only when this does not create a lot of dummies) 2.Run an empty mixed model (i.e., just the constant included) in Stata. Look at the level on which most of the variance resides. 3.If applicable: divide micro-variables in "group mean" variables and "difference from group mean" variables. 4.Re-run your mixed model with these variables included (as you would a multiple regression analysis) 5.(and note: use regression diagnostics secretly, to find outliers and such)

Advanced Methods and Models in Behavioral Research – 2014 Non-response

Non-response analysis Not all of the ones invited are going to participate Think about selective non-response: some (kinds of) individuals might be less likely to participate. How might that influence the results? sample

Non-response scenarios: things to try Compare sample with population on several characteristics … … for instance by trying to ask questions to your whole sampling frame Compare earlier response with later response Advanced Methods and Models in Behavioral Research – 2014

What is still missing from these logit do files? Advanced Methods and Models in Behavioral Research – 2014

What is still missing from these logit do files? Advanced Methods and Models in Behavioral Research – 2014 Try all the available tools: outliers, transformations, interactions, dummy-variables, analyze subsets, assumption checking … Add more comments (in general) + add interpretation of the findings In the end: conclude. A “final model” or … … and that can also be a sequence of models

Advanced Methods and Models in Behavioral Research – 2014 Check out: My logistic regression run on auto.dta (Not easy to explain / thinking out loud / thinking out loud / there is more than one correct answer)

This Friday latest: Deliver: per data file: one do-file Make sure that it is complete. Questions / stuck? Ask! Advanced Methods and Models in Behavioral Research – 2014