Introduction A research example from ASR mltcooksd mlt2stage Outlook. Multi Level Tools. Influential cases in multi level modeling

Similar documents
Homework Solutions Applied Logistic Regression

Multilevel Modeling Day 2 Intermediate and Advanced Issues: Multilevel Models as Mixed Models. Jian Wang September 18, 2012

Recent Developments in Multilevel Modeling

How Well Are Recessions and Recoveries Forecast? Prakash Loungani, Herman Stekler and Natalia Tamirisa

A Journey to Latent Class Analysis (LCA)

North-South Gap Mapping Assignment Country Classification / Statistical Analysis

The Information Content of Capacity Utilisation Rates for Output Gap Estimates

Export Destinations and Input Prices. Appendix A

Outline. Linear OLS Models vs: Linear Marginal Models Linear Conditional Models. Random Intercepts Random Intercepts & Slopes

Supplementary Appendix for. Version: February 3, 2014

Trends in Human Development Index of European Union

Modelling structural change using broken sticks

Course Econometrics I

Appendix B: Detailed tables showing overall figures by country and measure

Confidence intervals for the variance component of random-effects linear models

Evaluating sensitivity of parameters of interest to measurement invariance using the EPC-interest

AD HOC DRAFTING GROUP ON TRANSNATIONAL ORGANISED CRIME (PC-GR-COT) STATUS OF RATIFICATIONS BY COUNCIL OF EUROPE MEMBER STATES

Gravity Analysis of Regional Economic Interdependence: In case of Japan

Mixed Models for Longitudinal Binary Outcomes. Don Hedeker Department of Public Health Sciences University of Chicago.

Binary Dependent Variables

multilevel modeling: concepts, applications and interpretations

Canadian Imports of Honey

PIRLS 2016 INTERNATIONAL RESULTS IN READING

Lecture 4: Generalized Linear Mixed Models

04 June Dim A W V Total. Total Laser Met

International Survey on Private Copying WIPO Thuiskopie. Joost Poort International Conference on Private Copying Amsterdam 23 June 2016

Statistical Modelling in Stata 5: Linear Models

STATISTICS 110/201 PRACTICE FINAL EXAM

TIMSS 2011 The TIMSS 2011 Teacher Career Satisfaction Scale, Fourth Grade

Lab 3: Two levels Poisson models (taken from Multilevel and Longitudinal Modeling Using Stata, p )

TIMSS 2011 The TIMSS 2011 School Discipline and Safety Scale, Fourth Grade

ECON Introductory Econometrics. Lecture 13: Internal and external validity

Case of single exogenous (iv) variable (with single or multiple mediators) iv à med à dv. = β 0. iv i. med i + α 1

sociology 362 regression

Title. Description. Special-interest postestimation commands. xtmelogit postestimation Postestimation tools for xtmelogit

Sustainability of balancing item of balance of payment for OECD countries: evidence from Fourier Unit Root Tests

ECONOMICS SERIES SWP 2009/10. A Nonlinear Approach to Testing the Unit Root Null Hypothesis: An Application to International Health Expenditures

Lecture 12: Effect modification, and confounding in logistic regression

Marginal Effects in Multiply Imputed Datasets

options description set confidence level; default is level(95) maximum number of iterations post estimation results

Empirical Asset Pricing

ORGANISATION FOR ECONOMIC CO-OPERATION AND DEVELOPMENT

TIMSS 2011 The TIMSS 2011 Instruction to Engage Students in Learning Scale, Fourth Grade

Acknowledgements. Outline. Marie Diener-West. ICTR Leadership / Team INTRODUCTION TO CLINICAL RESEARCH. Introduction to Linear Regression

point estimates, standard errors, testing, and inference for nonlinear combinations

crreg: A New command for Generalized Continuation Ratio Models

2017 Source of Foreign Income Earned By Fund

Quick Guide QUICK GUIDE. Activity 1: Determine the Reaction Rate in the Presence or Absence of an Enzyme

8. Nonstandard standard error issues 8.1. The bias of robust standard errors

Monday 7 th Febraury 2005

Does socio-economic indicator influent ICT variable? II. Method of data collection, Objective and data gathered

PIRLS 2011 The PIRLS 2011 Teacher Working Conditions Scale

PLUTO The Transport Response to the National Planning Framework. Dr. Aoife O Grady Department of Transport, Tourism and Sport

Calories, Obesity and Health in OECD Countries

7/28/15. Review Homework. Overview. Lecture 6: Logistic Regression Analysis

The Simulation Extrapolation Method for Fitting Generalized Linear Models with Additive Measurement Error

Logit estimates Number of obs = 5054 Wald chi2(1) = 2.70 Prob > chi2 = Log pseudolikelihood = Pseudo R2 =

Understanding the multinomial-poisson transformation

Interval-Based Composite Indicators

St. Gallen, Switzerland, August 22-28, 2010

Statistical Modelling with Stata: Binary Outcomes

USDA Dairy Import License Circular for 2018 Commodity/

A Prior Distribution of Bayesian Nonparametrics Incorporating Multiple Distances

Lab 11 - Heteroskedasticity

Regression Diagnostics for Survey Data

Marginal effects and extending the Blinder-Oaxaca. decomposition to nonlinear models. Tamás Bartus

PIRLS 2011 The PIRLS 2011 Teacher Career Satisfaction Scale

Mediation Analysis: OLS vs. SUR vs. 3SLS Note by Hubert Gatignon July 7, 2013, updated November 15, 2013

Problem Set 10: Panel Data

USDA Dairy Import License Circular for 2018

A Markov system analysis application on labour market dynamics: The case of Greece

Nonlinear Econometric Analysis (ECO 722) : Homework 2 Answers. (1 θ) if y i = 0. which can be written in an analytically more convenient way as

Nonrecursive Models Highlights Richard Williams, University of Notre Dame, Last revised April 6, 2015

Sociology 362 Data Exercise 6 Logistic Regression 2

CONTINENT WISE ANALYSIS OF ZOOLOGICAL SCIENCE PERIODICALS: A SCIENTOMETRIC STUDY

Lecture 2: Intermediate macroeconomics, autumn Lars Calmfors

Appendix A. Numeric example of Dimick Staiger Estimator and comparison between Dimick-Staiger Estimator and Hierarchical Poisson Estimator

Part A: Salmonella prevalence estimates. (Question N EFSA-Q ) Adopted by The Task Force on 28 March 2007

Lecture 2: Intermediate macroeconomics, autumn Lars Calmfors

Chapter 14. Representative Table and Composite Regions. Betina V. Dimaranan Representative Table

economic growth is not conducive to a country s overall economic performance and, additionally,

Corporate Governance, and the Returns on Investment

RISK ASSESSMENT METHODOLOGIES FOR LANDSLIDES

International Student Enrollment Fall 2018 By CIP Code, Country of Citizenship, and Education Level Harpur College of Arts and Sciences

Government Size and Economic Growth: A new Framework and Some Evidence from Cross-Section and Time-Series Data

PIRLS 2011 The PIRLS 2011 Students Motivated to Read Scale

10/27/2015. Content. Well-homogenized national datasets. Difference (national global) BEST (1800) Difference BEST (1911) Difference GHCN & GISS (1911)

PSC 8185: Multilevel Modeling Fitting Random Coefficient Binary Response Models in Stata

Propensity Score Matching and Analysis TEXAS EVALUATION NETWORK INSTITUTE AUSTIN, TX NOVEMBER 9, 2018

Analyzing Proportions

PIRLS 2011 The PIRLS 2011 Students Engaged in Reading Lessons Scale

Learning Objectives. Math Chapter 3. Chapter 3. Association. Response and Explanatory Variables

Mathematics. Pre-Leaving Certificate Examination, Paper 2 Higher Level Time: 2 hours, 30 minutes. 300 marks L.20 NAME SCHOOL TEACHER

Nigerian Capital Importation QUARTER THREE 2016

MULTIPLE REGRESSION. part 1. Christopher Adolph. and. Department of Political Science. Center for Statistics and the Social Sciences

Contents Introduction.. Methodology... Fast Numbers.. Trends... Country Analysis Other Countries.. Conclusion..

Weighted Voting Games

Assessing the Calibration of Dichotomous Outcome Models with the Calibration Belt

Description Quick start Menu Syntax Options Remarks and examples Stored results Methods and formulas Acknowledgment References Also see

IEEE Transactions on Image Processing EiC Report

Transcription:

Multi Level Tools Influential cases in multi level modeling Katja Möhring & Alexander Schmidt GK SOCLIFE, Universität zu Köln Presentation at the German Stata User Meeting in Berlin, 1 June 2012 1 / 36

Multi level tools - overview mltl2scatter: Scatter plots at upper levels mlt2stage: Calculates and stores values for two-stage regression and graphs. mltcooksd: Estimates the influence measures Cook s D and DFBETAs for the second level units in hierarchical mixed models. mltshowm: Postestimation command for mltcooksd, shows the models which caused Cook s D to be above the cuttoff point. mltrsq: Gives the Boskers/Snijders and the Bryk/Raudenbusch R-squared values for each level. 2 / 36

Multi level tools - overview mltl2scatter: Scatter plots at upper levels mlt2stage: Calculates and stores values for two-stage regression and graphs. mltcooksd: Estimates the influence measures Cook s D and DFBETAs for the second level units in hierarchical mixed models. mltshowm: Postestimation command for mltcooksd, shows the models which caused Cook s D to be above the cuttoff point. mltrsq: Gives the Boskers/Snijders and the Bryk/Raudenbusch R-squared values for each level. 3 / 36

Index 1 Introduction 2 A research example from ASR 3 mltcooksd 4 mlt2stage 5 Outlook 4 / 36

1 Introduction 2 A research example from ASR 3 mltcooksd 4 mlt2stage 5 Outlook 5 / 36

Influential cases in multi level modeling Multi level or hierarchical modeling originates from educational research, here typically pupils (level 1) nested in classes (level 2) are analyzed Increasingly used in social sciences to compare individuals nested in countries with data of international surveys 1 Small number of upper level units 2 No random sample at upper level Problems of influential outliers concerning the direct impact of macro variables as well as their indirect moderator effect 6 / 36

1 Introduction 2 A research example from ASR A research example from the American Sociological Review Cook s D and DFBETAS 3 mltcooksd mltcooksd description Stata 4 mlt2stage mlt2stage description Stata 5 Outlook 7 / 36

A research example from the American Sociological Review Why should we consider outliers? A research example Ruiter and De Graaf (2006): National Context, Religiosity, and Volunteering: Results from 53 Countries. American Sociological Review. Analysis of World Values Survey data with 53 countries Dependent variable volunteering Independent variable national religious context Conclusion: Average church attendance is significantly and positively related to volunteering 8 / 36

A research example from the American Sociological Review Van der Meer, Grotenhuis and Pelzer (2010) replicated their results Volunteers (percent) 0 20 40 60 80 0 20 40 60 80 Average church attendance (days per year) Notes: Data from von der Meer et. al. (2010) - own calculations. Figure: Volunteering and Church Attendance 9 / 36

A research example from the American Sociological Review and showed... Volunteers (percent) 0 20 40 60 80 Zimbabwe Uganda Tanzania 0 20 40 60 80 Average church attendance (days per year) Notes: Data from von der Meer et. al. (2010) - own calculations. Figure: Volunteering and Church Attendance - Revisited 10 / 36

A research example from the American Sociological Review...that African countries build exceptional and influential cases Volunteers (percent) 0 20 40 60 80 Zimbabwe Uganda Tanzania 0 20 40 60 80 Average church attendance (days per year) Notes: Data from von der Meer et. al. (2010) - own calculations. Figure: Volunteering and Church Attendance - Revisited I 11 / 36

Cook s D and DFBETAS Cook s D and DFBETAs: diagnostics for influential cases Cook s D Measures the influence of one single (level-two) unit on all model parameters or a subset of parameters After non-hierarchical linear regressions it can be estimated from the hat matrix. Not possible after hierarchical mixed models However, we can estimate Cook s D empirically (Snijders and Berkhof 2008: 157ff.) DFBETAs Measures the influence of one single level-two unit on a single parameter Again, we can only estimate this statistic empirically 12 / 36

Cook s D and DFBETAS DFBETAs DFBETAS can be interpreted as the standardized difference in the estimated slope with and without unit j. DFBETAS jz = ˆβ Z ˆβ ( j)z se( ˆβ ( j)z ), where ˆβ Z ˆβ ( j)z is the difference between the estimated slopes of predictor Z. ˆβZ is the estimate in the full sample and ˆβ ( j)z is the estimated slope when unit j is excluded. 13 / 36

Cook s D and DFBETAS Cook s D Fixed part of the model: C F j = 1 r ( ˆβ ˆβ ( j) ) Ŝ 1 F ( j)( ˆβ ˆβ ( j) ), with r =number of fixed parameters. Ŝ F ( j) is the variance-covariance matrix after unit j has been excluded. Random part of the model: C R j = 1 p (ˆη ˆη ( j) ) Ŝ 1 R( j)(ˆη ˆη ( j) ), with p =number of random parameters. Overall: C j = 1 r + p (rc F j + pc R j ) 14 / 36

1 Introduction 2 A research example from ASR A research example from the American Sociological Review Cook s D and DFBETAS 3 mltcooksd mltcooksd description Stata 4 mlt2stage mlt2stage description Stata 5 Outlook 15 / 36

mltcooksd description the mltcooksd ado The mltcooksd command Calculates Cook s D after hierarchical mixed models (xtmixed and xtmelogit) for the fixed part (C F j ) for the random part (C R for the whole model (C j ) j ) Gives DFBETAs for each fixed parameter in the model Compares the estimated values of Cook s D and DFBETAs to cutoff values proposed by Belsley et. al (1980) and reports those cases that have been detected as influential 16 / 36

mltcooksd description mltcooksd syntax Syntax mltcooksd [, fixed random keepvar(prefix) counter graph slabel] show estimates of Cj F show estimates of Cj R keep estimates in the data set estimate and show computing time show DFBETAs in box plot suppress labels in the output 17 / 36

Stata the mltcooksd ado - an example Mixed-effects ML regression Number of obs = 21498 Group variable: Country Number of groups = 22 Obs per group: min = 441 avg = 977.2 max = 2345 Wald chi2(4) = 948.65 Log likelihood = -28233.225 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ gr_incdiff Coef. Std. Err. z P> z [95% Conf. Interval] -------------+---------------------------------------------------------------- sex -.0329264.0128818-2.56 0.011 -.0581742 -.0076786 age.0031901.000379 8.42 0.000.0024472.003933 respincperc -.0605727.002245-26.98 0.000 -.0649728 -.0561726 socspend.0076906.0121715 0.63 0.527 -.0161651.0315463 _cons 3.086072.2506038 12.31 0.000 2.594897 3.577246 ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Random-effects Parameters Estimate Std. Err. [95% Conf. Interval] -----------------------------+------------------------------------------------ Country: Identity var(_cons).0809317.0246771.0445222.1471162 -----------------------------+------------------------------------------------ var(residual).8058066.0077762.7907088.8211928 ------------------------------------------------------------------------------ LR test vs. linear regression: chibar2(01) = 1984.18 Prob >= chibar2 = 0.0000 18 / 36

Stata the mltcooksd ado - an example. mltcooksd, fixed random graph Level 2 variable is Country Calculating DFBETAs for the parameters of sex age respincperc socspend _cons Cutoff value for DFBETAs is 0.4264 Cutoff value for Cook s D is 0.1818 Level-two units with Cook s D above the cut off value: +-----------------------------------------------------------+ L2ID CooksD_f CooksD_r CooksD ----------------------------------------------------------- Portugal.6616195 3.098742 1.35794 Australia.1800247 3.848549 1.228174 Chile.6308343 2.56214 1.182636 United States of America.1445634 1.989775.6717668... Czech Republic.1419795.3855572.2115731 Republic of Korea.2438738.0923624.2005848 Hungary.0475411.5732102.1977323 +-----------------------------------------------------------+ 19 / 36

Stata the mltcooksd ado - an example Level-two units with DFBETAs above cut off value: +-------------------------------------------------------------------------------+ L2ID DFB_sex DFB_age DFB_re~c DFB_so~d DFB_cons ------------------------------------------------------------------------------- Portugal 0.0335-0.9608 1.3871 0.1956-0.1090 Australia 0.0871-0.5155-0.7639 0.1678-0.1420 Chile -0.0699-0.5185 1.3678-0.7983 0.8374 United States of America 0.2718-0.5825-0.4614 0.2827-0.2996 Spain -0.0439-1.0599 1.3739 0.0566 0.0000 New Zealand -0.0606-0.2903-0.9856 0.0943-0.1344 Netherlands 0.2113 0.8566-1.0978-0.0106-0.0187 Japan 0.2648 0.3343 0.5692 0.0468-0.1422 France 0.0492 0.9389-0.2171 0.0426-0.0908 Sweden -0.1991 0.5152-0.9410-0.2625 0.2324 Norway -0.8209 0.5698-0.4893-0.0012 0.0144 Canada 0.4149 0.1610-0.8004 0.0782-0.0931 Czech Republic 0.1199 0.7360 0.1394 0.0545-0.2036 Republic of Korea 0.0035-0.5778 0.7074-0.5044 0.5339 Finland -0.5870 0.3408-0.3167 0.0270-0.0152 +-------------------------------------------------------------------------------+ 20 / 36

Stata the mltcooksd ado - an example DFBETAs (sex) Norway DFBETAs (age) DFBETAs (respincperc) DFBETAs (socspend) DFBETAs (Constant) Chile cutoff Republic of Korea Sweden cutoff Republic of Korea Chile -1 -.5 0.5 1 1.5 DFBETAs Notes: Data from the ISSP - output of the mltcooksd graph option. Figure: Distribution of DFBETAS 21 / 36

Stata What s wrong with Chile and Korea? Level-2 mean of gr_incdiff 2.5 3 3.5 Chile Republic of Korea Ireland Canada Japan Switzerland Great Britain Australia Slovenia Poland SpainHungary Norway Netherlands United States Czech of America Republic New Zealand Portugal East Germany Finland France Sweden 5 10 15 20 25 30 Level-2 mean of socspend Notes: Data from the ISSP - plot produced with mltl2scatter. Figure: Social Spending and Support for Redistribution 22 / 36

Stata the mltcooksd ado - an example Chile and Korea excluded: Mixed-effects ML regression Number of obs = 19433 Group variable: Country Number of groups = 20 Obs per group: min = 441 avg = 971.6 max = 2345 Wald chi2(4) = 984.00 Log likelihood = -25784.384 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ gr_incdiff Coef. Std. Err. z P> z [95% Conf. Interval] -------------+---------------------------------------------------------------- sex -.0321106.0137022-2.34 0.019 -.0589663 -.0052548 age.0036384.0004015 9.06 0.000.0028515.0044254 respincperc -.0656586.0024008-27.35 0.000 -.070364 -.0609531 socspend.0356661.0150762 2.37 0.018.0061173.0652149 _cons 2.468119.3224328 7.65 0.000 1.836162 3.100076 ------------------------------------------------------------------------------ * Random part omitted 23 / 36

Stata the mltcooksd ado - an example Level-2 mean of gr_incdiff 2.5 3 3.5 Ireland Canada Japan Switzerland Great Britain Australia Norway Netherlands United States of America Czech Republic New Zealand Portugal Slovenia Poland Spain Hungary East Germany Finland France Sweden 15 20 25 30 Level-2 mean of socspend Notes: Data from the ISSP - plot produced with mltl2scatter. Figure: Social Spending and Support for Redistribution 24 / 36

1 Introduction 2 A research example from ASR A research example from the American Sociological Review Cook s D and DFBETAS 3 mltcooksd mltcooksd description Stata 4 mlt2stage mlt2stage description Stata 5 Outlook 25 / 36

mlt2stage description The two-stage approach Two-stage approach to model cross-level interactions in multi level data (Achen 2005; Gelman 2005) Coefficients from single country regressions are used for macro level estimations, e.g. two-stage regression First-stage regression specification is: Second-stage regression specification is: y j = X j β j + u j (j = 1,..., m) (1) β 1 = zγ + ν (2) Two-stage graphs to examine the moderator effect of a macro variable and detect potentially influential cases 26 / 36

mlt2stage description the mlt2stage ado The mlt2stage command Calculates and stores the coefficients of country separate linear and logistic regressions Plots the estimated values against a macro level indicator 27 / 36

Stata mlt2stage syntax Syntax mlt2stage, l2id(varname) [vname(prefix) logit graph(varname) all] define level 2 identifier define variable name for estimates in the data set calculate logistic model plot level 1 coefficients over level 2 variable store coefficients for all variables in the model 28 / 36

Stata the mlt2stage ado - an example. mlt2stage gr_incdiff respincperc age sex, l2id(country) graph(socspend) command:regress graph:socspend Two stage calculated for the dependent variable gr_incdiff and the main explanatory variable respincperc with the independent variables respincperc age sex Level 2 variable is Country ----------------------------------------- Country mean(coef_g~c) -------------------------+--------------- Australia -.0787574 Canada -.1056875 Chile -.0109568 Czech Republic -.0546495 Denmark -.0809449 Finland -.0801003 France -.0712633 Hungary -.0470008 Ireland -.0365443 Israel -.0550879 Japan -.0374054 Republic of Korea -.024505 Latvia -.0239054 Netherlands -.1280941 New Zealand -.105004 (...) ----------------------------------------- 29 / 36

Stata the mlt2stage ado - an example Coef. of gr_incdiff on respincperc -.15 -.1 -.05 0 5 10 15 20 25 30 Social Expenditure as % of GDP Notes: Data from the ISSP - output of the mlt2stage graph option. Figure: Distribution of country coefficients over social spending 30 / 36

Stata the mlt2stage ado - an example Coef. of gr_incdiff on respincperc -.15 -.1 -.05 0 Chile Republic of Korea Latvia 5 10 15 20 25 30 Social Expenditure as % of GDP Notes: Data from the ISSP - output of the mlt2stage graph option. Figure: Distribution of country coefficients over social spending 31 / 36

Stata the mlt2stage ado - an example Coef. of gr_incdiff on respincperc -.15 -.1 -.05 0 Chile Republic of Korea Latvia 5 10 15 20 25 30 Social Expenditure as % of GDP Notes: Data from the ISSP - output of the mlt2stage graph option. Figure: Distribution of country coefficients over social spending 32 / 36

1 Introduction 2 A research example from ASR 3 mltcooksd 4 mlt2stage 5 Outlook 33 / 36

more multi level tools... mltl2scatter, mlt2stage, mltcooksd, mltshowm, mltcooksd, mltrsq... Extension of ados for three or more levels Ado to compare multi level and country FE results Ado to calculate model fit values for logistic multi level models 34 / 36

Comments & questions welcome! moehring@wiso.uni-koeln.de, www.katjamoehring.de alexander.schmidt@wiso.uni-koeln.de, www.alexanderwschmidt.de 35 / 36

References Achen, Christopher H. (2005): Two-Step Hierarchical Estimation: Beyond Regression Analysis, in: Political Analysis 13(4): 447-456, doi:10.1093/pan/mpi033. Belsley, David A., Edwin Kuh, and Roy E. Welsch. (1980): Regression Diagnostics: Identifying Influential Data and Sources of Collinearity. New York: John Wiley. Gelman, Andrew (2005): Two-Stage Regression and Multilevel Modeling: A Commentary, in: Political Analysis 13(4): 459-461, doi: 10.1093/pan/mpi032. Ruiter, Stijn and Nan Dirk De Graaf (2006): National Context, Religiosity, and Volunteering: Results from 53 Countries. American Sociological Review 71, pp. 191210. Snijders, Tom A. B. and Johannes Berkhof (2008): Diagnostic Checks for Multilevel Models. pp. 457514 in Handbook of Multilevel Analysis, edited by J. De Leeuw and E. Meijer. New York: Springer. Van der Meer, Tom, Manfred Te Grotenhuis and Ben Pelzer (2010): Influential Cases in Multilevel Modeling: A Methodological Comment. American Sociological Review 75: pp. 173-178. 36 / 36