An Introduction to Modern Econometrics Using Stata

Size: px
Start display at page:

Download "An Introduction to Modern Econometrics Using Stata"

Transcription

1 An Introduction to Modern Econometrics Using Stata CHRISTOPHER F. BAUM Department of Economics Boston College A Stata Press Publication StataCorp LP College Station, Texas

2 Contents Illustrations Preface Notation and typography xv xvii xix 1 Introduction An overview of Stata's distinctive features Installing the necessary software Installing the support materials 5 2 Working with economic and financial data in Stata The basics The use command Variable types _n and _N generate and replace sort and gsort if exp and in range Using if exp with indicator variables Using if exp versus by varlist: with statistical commands Labels and notes The varlist drop and keep rename and renvars The save command insheet and infile 21

3 viii 2 2 Common data transformations The cond() function Recoding discrete and continuous variables Handling missing data mvdecode and mvencode String-to-numeric conversion and vice versa Handling dates Contents Some useful functions for generate or replace The egen command 30 Official egen functions 30 egen functions from the user community Computation for by-groups Local macros Looping over variables: forvalues and foreach Scalars and matrices Command syntax and return values 39 3 Organizing and handling economic data Cross-sectional data and identifier variables Time-series data Time-series operators Pooled cross-sectional time-series data Panel data Operating on panel data Tools for manipulating panel data Unbalanced panels and data screening Other transforms of panel data Moving-window summary statistics and correlations Combining cross-sectional and time-series datasets Creating long-format datasets with append Using merge to add aggregate characteristics

4 Contents ix The dangers of many-to-many merges The reshape command The xpose command Using Stata for reproducible research Using do-files Data validation: assert and duplicates 63 4 Linear regression Introduction Computing linear regression estimates Regression as a method-of-moments estimator The sampling distribution of regression estimates Efficiency of the regression estimator Numerical identification of the regression estimates Interpreting regression estimates Research project: A study of single-family housing prices The ANOVA table: ANOVA F and R-squared Adjusted R-squared The coefficient estimates and beta coefficients Regression without a constant term Recovering estimation results Detecting collinearity in regression Presenting regression estimates Presenting summary statistics and correlations Hypothesis tests, linear restrictions, and constrained least squares Wald tests with test Wald tests involving linear combinations of parameters Joint hypothesis tests Testing nonlinear restrictions and forming nonlinear combinations Testing competing (nonnested) models 100

5 χ Contents 4.6 Computing residuals and predicted values Computing interval predictions Computing marginal effects 4.A Appendix: Regression as a least-squares estimator B Appendix: The large-sample VCE for linear regression Specifying the functional form 5.1 Introduction Specification error Omitting relevant variables from the model 116 Specifying dynamics in time-series regression models Graphically analyzing regression data Added-variable plots Including irrelevant variables in the model The asymmetry of specification error Misspecification of the functional form Ramsey's RESET Specification plots Specification and interaction terms Outlier statistics and measures of leverage 126 The DFITS statistic 128 The DFBETA statistic Endogeneity and measurement error Regression with non-i.i.d. errors The generalized linear regression model Types of deviations from i.i.d. errors The robust estimator of the VCE The cluster estimator of the VCE The Newey-West estimator of the VCE The generalized least-squares estimator 142 The FGLS estimator 143

6 Contents xi 6.2 Heteroskedasticity in the error distribution Heteroskedasticity related to scale 144 Testing for heteroskedasticity related to scale 145 FGLS estimation Heteroskedasticity between groups of observations 149 Testing for heteroskedasticity between groups of observations. 150 FGLS estimation Heteroskedasticity in grouped data 152 FGLS estimation Serial correlation in the error distribution Testing for serial correlation FGLS estimation with serial correlation Regression with indicator variables Testing for significance of a qualitative factor Regression with one qualitative measure Regression with two qualitative measures 165 Interaction effects Regression with qualitative and quantitative factors 168 Testing for slope differences Seasonal adjustment with indicator variables Testing for structural stability and structural change Constraints of continuity and differentiability Structural change in a time-series model Instrumental-variables estimators Introduction Endogeneity in economic relationships SLS The ivreg command Identification and tests of overidentifying restrictions Computing IV estimates 192

7 xii Contents ivreg2 and GMM estimation The GMM estimator GMM in a homoskedastic context GMM and heteroskedasticity-consistent standard errors GMM and clustering GMM and HAC standard errors Testing overidentifying restrictions in GMM Testing a subset of the overidentifying restrictions in GMM Testing for heteroskedasticity in the IV context Testing the relevance of instruments Durbin-Wu-Hausman tests for endogeneity in IV estimation A Appendix: Omitted-variables bias Β Appendix: Measurement error B.1 Solving errors-in-variables problems Panel-data models FE and RE models One-way FE Time effects and two-way FE The between estimator One-way RE Testing the appropriateness of RE Prediction from one-way FE and RE IV models for panel data Dynamic panel-data models Seemingly unrelated regression models SUR with identical regressors Moving-window regression estimates Models of discrete and limited dependent variables Binomial logit and probit models The latent-variable approach 2 4 8

8 Contents xiii Marginal effects and predictions 250 Binomial probit 251 Binomial logit and grouped logit Evaluating specification and goodness of fit Ordered logit and probit models Truncated regression and tobit models Truncation Censoring Incidental truncation and sample-selection models Bivariate probit and probit with selection Binomial probit with selection 272 A Getting the data into Stata 277 A.1 Inputting data from ASCII text files and spreadsheets 277 A.I.I Handling text files 278 Free format versus fixed format 278 The insheet command 280 A.I.2 Accessing data stored in spreadsheets 281 A.1.3 Fixed-format data files 281 A.2 Importing data from other package formats 286 Β The basics of Stata programming 289 B.I Local and global macros 290 B.I.I Global macros 293 B.1.2 Extended macro functions and list functions 293 B.2 Scalars 294 B.3 Loop constructs 295 B.3.1 foreach 297 B.4 Matrices 299 B.5 return and ereturn 301 B.5.1 ereturn list 305

9 xiv Contents Β.6 The program and syntax statements 307 B.7 Using Mata functions in Stata programs 313 References 321 Author index 329 Subject index 333

List of Figures. List of Tables. Preface to the Second Edition. Preface to the First Edition

List of Figures. List of Tables. Preface to the Second Edition. Preface to the First Edition List of Figures List of Tables Preface to the Second Edition Preface to the First Edition xv xxv xxix xxxi 1 What Is R? 1 1.1 Introduction to R................................ 1 1.2 Downloading and Installing

More information

Data Analysis Using Regression and Multilevel/Hierarchical Models

Data Analysis Using Regression and Multilevel/Hierarchical Models Data Analysis Using Regression and Multilevel/Hierarchical Models ANDREW GELMAN Columbia University JENNIFER HILL Columbia University CAMBRIDGE UNIVERSITY PRESS Contents List of examples V a 9 e xv " Preface

More information

with Stata Bayesian Analysis John Thompson University of Leicester A Stata Press Publication StataCorp LP College Station, Texas

with Stata Bayesian Analysis John Thompson University of Leicester A Stata Press Publication StataCorp LP College Station, Texas Bayesian Analysis with Stata John Thompson University of Leicester A Stata Press Publication StataCorp LP College Station, Texas Contents List of figures List of tables Preface Acknowledgments xiii xvii

More information

Applied Medical. Statistics Using SAS. Geoff Der. Brian S. Everitt. CRC Press. Taylor Si Francis Croup. Taylor & Francis Croup, an informa business

Applied Medical. Statistics Using SAS. Geoff Der. Brian S. Everitt. CRC Press. Taylor Si Francis Croup. Taylor & Francis Croup, an informa business Applied Medical Statistics Using SAS Geoff Der Brian S. Everitt CRC Press Taylor Si Francis Croup Boca Raton London New York CRC Press is an imprint of the Taylor & Francis Croup, an informa business A

More information

From Biostatistics Using JMP: A Practical Guide. Full book available for purchase here. Chapter 1: Introduction... 1

From Biostatistics Using JMP: A Practical Guide. Full book available for purchase here. Chapter 1: Introduction... 1 From Biostatistics Using JMP: A Practical Guide. Full book available for purchase here. Contents Dedication... iii Acknowledgments... xi About This Book... xiii About the Author... xvii Chapter 1: Introduction...

More information

Data Analysis with SPSS

Data Analysis with SPSS Data Analysis with SPSS A First Course in Applied Statistics Fourth Edition Stephen Sweet Ithaca College Karen Grace-Martin The Analysis Factor Allyn & Bacon Boston Columbus Indianapolis New York San Francisco

More information

Introduction to Econometrics

Introduction to Econometrics Introduction to Econometrics James H. Stock HARVARD UNIVERSITY Mark W. Watson PRINCETON UNIVERSITY... ~ Boston San Francisco New York London Toronco Sydney ToJ..:yo Singapore Madrid Mexico City Munich

More information

Modern Regression Methods

Modern Regression Methods Modern Regression Methods Second Edition THOMAS P. RYAN Acworth, Georgia WILEY A JOHN WILEY & SONS, INC. PUBLICATION Contents Preface 1. Introduction 1.1 Simple Linear Regression Model, 3 1.2 Uses of Regression

More information

Bayes Linear Statistics. Theory and Methods

Bayes Linear Statistics. Theory and Methods Bayes Linear Statistics Theory and Methods Michael Goldstein and David Wooff Durham University, UK BICENTENNI AL BICENTENNIAL Contents r Preface xvii 1 The Bayes linear approach 1 1.1 Combining beliefs

More information

MEA DISCUSSION PAPERS

MEA DISCUSSION PAPERS Inference Problems under a Special Form of Heteroskedasticity Helmut Farbmacher, Heinrich Kögel 03-2015 MEA DISCUSSION PAPERS mea Amalienstr. 33_D-80799 Munich_Phone+49 89 38602-355_Fax +49 89 38602-390_www.mea.mpisoc.mpg.de

More information

This tutorial presentation is prepared by. Mohammad Ehsanul Karim

This tutorial presentation is prepared by. Mohammad Ehsanul Karim STATA: The Red tutorial STATA: The Red tutorial This tutorial presentation is prepared by Mohammad Ehsanul Karim ehsan.karim@gmail.com STATA: The Red tutorial This tutorial presentation is prepared by

More information

Linear Regression Analysis

Linear Regression Analysis Linear Regression Analysis WILEY SERIES IN PROBABILITY AND STATISTICS Established by WALTER A. SHEWHART and SAMUEL S. WILKS Editors: David J. Balding, Peter Bloomfield, Noel A. C. Cressie, Nicholas I.

More information

Practical Multivariate Analysis

Practical Multivariate Analysis Texts in Statistical Science Practical Multivariate Analysis Fifth Edition Abdelmonem Afifi Susanne May Virginia A. Clark CRC Press Taylor & Francis Group Boca Raton London New York CRC Press is an imprint

More information

isc ove ring i Statistics sing SPSS

isc ove ring i Statistics sing SPSS isc ove ring i Statistics sing SPSS S E C O N D! E D I T I O N (and sex, drugs and rock V roll) A N D Y F I E L D Publications London o Thousand Oaks New Delhi CONTENTS Preface How To Use This Book Acknowledgements

More information

INTRODUCTION TO ECONOMETRICS (EC212)

INTRODUCTION TO ECONOMETRICS (EC212) INTRODUCTION TO ECONOMETRICS (EC212) Course duration: 54 hours lecture and class time (Over three weeks) LSE Teaching Department: Department of Economics Lead Faculty (session two): Dr Taisuke Otsu and

More information

Benchmark Dose Modeling Cancer Models. Allen Davis, MSPH Jeff Gift, Ph.D. Jay Zhao, Ph.D. National Center for Environmental Assessment, U.S.

Benchmark Dose Modeling Cancer Models. Allen Davis, MSPH Jeff Gift, Ph.D. Jay Zhao, Ph.D. National Center for Environmental Assessment, U.S. Benchmark Dose Modeling Cancer Models Allen Davis, MSPH Jeff Gift, Ph.D. Jay Zhao, Ph.D. National Center for Environmental Assessment, U.S. EPA Disclaimer The views expressed in this presentation are those

More information

Write your identification number on each paper and cover sheet (the number stated in the upper right hand corner on your exam cover).

Write your identification number on each paper and cover sheet (the number stated in the upper right hand corner on your exam cover). STOCKHOLM UNIVERSITY Department of Economics Course name: Empirical methods 2 Course code: EC2402 Examiner: Per Pettersson-Lidbom Number of credits: 7,5 credits Date of exam: Sunday 21 February 2010 Examination

More information

Limited dependent variable regression models

Limited dependent variable regression models 181 11 Limited dependent variable regression models In the logit and probit models we discussed previously the dependent variable assumed values of 0 and 1, 0 representing the absence of an attribute and

More information

Biology 345: Biometry Fall 2005 SONOMA STATE UNIVERSITY Lab Exercise 5 Residuals and multiple regression Introduction

Biology 345: Biometry Fall 2005 SONOMA STATE UNIVERSITY Lab Exercise 5 Residuals and multiple regression Introduction Biology 345: Biometry Fall 2005 SONOMA STATE UNIVERSITY Lab Exercise 5 Residuals and multiple regression Introduction In this exercise, we will gain experience assessing scatterplots in regression and

More information

Introduction to SPSS S0

Introduction to SPSS S0 Basic medical statistics for clinical and experimental research Introduction to SPSS S0 Katarzyna Jóźwiak k.jozwiak@nki.nl November 10, 2017 1/55 Introduction SPSS = Statistical Package for the Social

More information

Example 7.2. Autocorrelation. Pilar González and Susan Orbe. Dpt. Applied Economics III (Econometrics and Statistics)

Example 7.2. Autocorrelation. Pilar González and Susan Orbe. Dpt. Applied Economics III (Econometrics and Statistics) Example 7.2 Autocorrelation Pilar González and Susan Orbe Dpt. Applied Economics III (Econometrics and Statistics) Pilar González and Susan Orbe OCW 2014 Example 7.2. Autocorrelation 1 / 17 Questions.

More information

CRITERIA FOR USE. A GRAPHICAL EXPLANATION OF BI-VARIATE (2 VARIABLE) REGRESSION ANALYSISSys

CRITERIA FOR USE. A GRAPHICAL EXPLANATION OF BI-VARIATE (2 VARIABLE) REGRESSION ANALYSISSys Multiple Regression Analysis 1 CRITERIA FOR USE Multiple regression analysis is used to test the effects of n independent (predictor) variables on a single dependent (criterion) variable. Regression tests

More information

Estimating Heterogeneous Choice Models with Stata

Estimating Heterogeneous Choice Models with Stata Estimating Heterogeneous Choice Models with Stata Richard Williams Notre Dame Sociology rwilliam@nd.edu West Coast Stata Users Group Meetings October 25, 2007 Overview When a binary or ordinal regression

More information

EC352 Econometric Methods: Week 07

EC352 Econometric Methods: Week 07 EC352 Econometric Methods: Week 07 Gordon Kemp Department of Economics, University of Essex 1 / 25 Outline Panel Data (continued) Random Eects Estimation and Clustering Dynamic Models Validity & Threats

More information

Preliminary Report on Simple Statistical Tests (t-tests and bivariate correlations)

Preliminary Report on Simple Statistical Tests (t-tests and bivariate correlations) Preliminary Report on Simple Statistical Tests (t-tests and bivariate correlations) After receiving my comments on the preliminary reports of your datasets, the next step for the groups is to complete

More information

Ecological Statistics

Ecological Statistics A Primer of Ecological Statistics Second Edition Nicholas J. Gotelli University of Vermont Aaron M. Ellison Harvard Forest Sinauer Associates, Inc. Publishers Sunderland, Massachusetts U.S.A. Brief Contents

More information

Intro to SPSS. Using SPSS through WebFAS

Intro to SPSS. Using SPSS through WebFAS Intro to SPSS Using SPSS through WebFAS http://www.yorku.ca/computing/students/labs/webfas/ Try it early (make sure it works from your computer) If you need help contact UIT Client Services Voice: 416-736-5800

More information

Multiple Linear Regression Analysis

Multiple Linear Regression Analysis Revised July 2018 Multiple Linear Regression Analysis This set of notes shows how to use Stata in multiple regression analysis. It assumes that you have set Stata up on your computer (see the Getting Started

More information

Applied Linear Regression

Applied Linear Regression Applied Linear Regression Applied Linear Regression Third Edition SANFORD WEISBERG University of Minnesota School of Statistics Minneapolis, Minnesota A JOHN WILEY & SONS, INC., PUBLICATION Copyright

More information

bivariate analysis: The statistical analysis of the relationship between two variables.

bivariate analysis: The statistical analysis of the relationship between two variables. bivariate analysis: The statistical analysis of the relationship between two variables. cell frequency: The number of cases in a cell of a cross-tabulation (contingency table). chi-square (χ 2 ) test for

More information

Citation for published version (APA): Ebbes, P. (2004). Latent instrumental variables: a new approach to solve for endogeneity s.n.

Citation for published version (APA): Ebbes, P. (2004). Latent instrumental variables: a new approach to solve for endogeneity s.n. University of Groningen Latent instrumental variables Ebbes, P. IMPORTANT NOTE: You are advised to consult the publisher's version (publisher's PDF) if you wish to cite from it. Please check the document

More information

For any unreported outcomes, umeta sets the outcome and its variance at 0 and 1E12, respectively.

For any unreported outcomes, umeta sets the outcome and its variance at 0 and 1E12, respectively. Monday December 19 12:49:44 2011 Page 1 Statistics/Data Analysis help for umeta and umeta_postestimation Title umeta U statistics based random effects meta analyses The umeta command performs U statistics

More information

Econometric Game 2012: infants birthweight?

Econometric Game 2012: infants birthweight? Econometric Game 2012: How does maternal smoking during pregnancy affect infants birthweight? Case A April 18, 2012 1 Introduction Low birthweight is associated with adverse health related and economic

More information

Carrying out an Empirical Project

Carrying out an Empirical Project Carrying out an Empirical Project Empirical Analysis & Style Hint Special program: Pre-training 1 Carrying out an Empirical Project 1. Posing a Question 2. Literature Review 3. Data Collection 4. Econometric

More information

The Statistical Analysis of Failure Time Data

The Statistical Analysis of Failure Time Data The Statistical Analysis of Failure Time Data Second Edition JOHN D. KALBFLEISCH ROSS L. PRENTICE iwiley- 'INTERSCIENCE A JOHN WILEY & SONS, INC., PUBLICATION Contents Preface xi 1. Introduction 1 1.1

More information

2.75: 84% 2.5: 80% 2.25: 78% 2: 74% 1.75: 70% 1.5: 66% 1.25: 64% 1.0: 60% 0.5: 50% 0.25: 25% 0: 0%

2.75: 84% 2.5: 80% 2.25: 78% 2: 74% 1.75: 70% 1.5: 66% 1.25: 64% 1.0: 60% 0.5: 50% 0.25: 25% 0: 0% Capstone Test (will consist of FOUR quizzes and the FINAL test grade will be an average of the four quizzes). Capstone #1: Review of Chapters 1-3 Capstone #2: Review of Chapter 4 Capstone #3: Review of

More information

Ec331: Research in Applied Economics Spring term, Panel Data: brief outlines

Ec331: Research in Applied Economics Spring term, Panel Data: brief outlines Ec331: Research in Applied Economics Spring term, 2014 Panel Data: brief outlines Remaining structure Final Presentations (5%) Fridays, 9-10 in H3.45. 15 mins, 8 slides maximum Wk.6 Labour Supply - Wilfred

More information

Stata: Merge and append Topics: Merging datasets, appending datasets - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1. Terms There are several situations when working with

More information

Recent Advances in the Field of Trade Theory and Policy Analysis Using Micro-Level Data

Recent Advances in the Field of Trade Theory and Policy Analysis Using Micro-Level Data Recent Advances in the Field of Trade Theory and Policy Analysis Using Micro-Level Data July 2012 Bangkok, Thailand Cosimo Beverelli and Nadia Rocha (World Trade Organization) 1 Content a) Basic regression

More information

Session 3: Dealing with Reverse Causality

Session 3: Dealing with Reverse Causality Principal, Developing Trade Consultants Ltd. ARTNeT Capacity Building Workshop for Trade Research: Gravity Modeling Thursday, August 26, 2010 Outline Introduction 1 Introduction Overview Endogeneity and

More information

Applications of Regression Models in Epidemiology

Applications of Regression Models in Epidemiology Applications of Regression Models in Epidemiology Applications of Regression Models in Epidemiology Erick Suárez, Cynthia M. Pérez, Roberto Rivera, and Melissa N. Martínez Copyright 2017 by John Wiley

More information

Marno Verbeek Erasmus University, the Netherlands. Cons. Pros

Marno Verbeek Erasmus University, the Netherlands. Cons. Pros Marno Verbeek Erasmus University, the Netherlands Using linear regression to establish empirical relationships Linear regression is a powerful tool for estimating the relationship between one variable

More information

For general queries, contact

For general queries, contact Much of the work in Bayesian econometrics has focused on showing the value of Bayesian methods for parametric models (see, for example, Geweke (2005), Koop (2003), Li and Tobias (2011), and Rossi, Allenby,

More information

Reveal Relationships in Categorical Data

Reveal Relationships in Categorical Data SPSS Categories 15.0 Specifications Reveal Relationships in Categorical Data Unleash the full potential of your data through perceptual mapping, optimal scaling, preference scaling, and dimension reduction

More information

Statistical Tolerance Regions: Theory, Applications and Computation

Statistical Tolerance Regions: Theory, Applications and Computation Statistical Tolerance Regions: Theory, Applications and Computation K. KRISHNAMOORTHY University of Louisiana at Lafayette THOMAS MATHEW University of Maryland Baltimore County Contents List of Tables

More information

Review of Veterinary Epidemiologic Research by Dohoo, Martin, and Stryhn

Review of Veterinary Epidemiologic Research by Dohoo, Martin, and Stryhn The Stata Journal (2004) 4, Number 1, pp. 89 92 Review of Veterinary Epidemiologic Research by Dohoo, Martin, and Stryhn Laurent Audigé AO Foundation laurent.audige@aofoundation.org Abstract. The new book

More information

CLASSICAL AND. MODERN REGRESSION WITH APPLICATIONS

CLASSICAL AND. MODERN REGRESSION WITH APPLICATIONS - CLASSICAL AND. MODERN REGRESSION WITH APPLICATIONS SECOND EDITION Raymond H. Myers Virginia Polytechnic Institute and State university 1 ~l~~l~l~~~~~~~l!~ ~~~~~l~/ll~~ Donated by Duxbury o Thomson Learning,,

More information

Understandable Statistics

Understandable Statistics Understandable Statistics correlated to the Advanced Placement Program Course Description for Statistics Prepared for Alabama CC2 6/2003 2003 Understandable Statistics 2003 correlated to the Advanced Placement

More information

The Linear Regression Model Under Test

The Linear Regression Model Under Test Walter Kramer Harald Sonnberger The Linear Regression Model Under Test Physica-Verlag Heidelberg Wien Professor Dr. WALTER KRAMER, Fachbereich Wirtschaftswissenschaften, UniversWit Hannover, Wunstorfer

More information

PRACTICAL STATISTICS FOR MEDICAL RESEARCH

PRACTICAL STATISTICS FOR MEDICAL RESEARCH PRACTICAL STATISTICS FOR MEDICAL RESEARCH Douglas G. Altman Head of Medical Statistical Laboratory Imperial Cancer Research Fund London CHAPMAN & HALL/CRC Boca Raton London New York Washington, D.C. Contents

More information

Session 1: Dealing with Endogeneity

Session 1: Dealing with Endogeneity Niehaus Center, Princeton University GEM, Sciences Po ARTNeT Capacity Building Workshop for Trade Research: Behind the Border Gravity Modeling Thursday, December 18, 2008 Outline Introduction 1 Introduction

More information

Identification of population average treatment effects using nonlinear instrumental variables estimators : another cautionary note

Identification of population average treatment effects using nonlinear instrumental variables estimators : another cautionary note University of Iowa Iowa Research Online Theses and Dissertations Fall 2014 Identification of population average treatment effects using nonlinear instrumental variables estimators : another cautionary

More information

Final Exam - section 2. Thursday, December hours, 30 minutes

Final Exam - section 2. Thursday, December hours, 30 minutes Econometrics, ECON312 San Francisco State University Michael Bar Fall 2011 Final Exam - section 2 Thursday, December 15 2 hours, 30 minutes Name: Instructions 1. This is closed book, closed notes exam.

More information

Biostatistics II

Biostatistics II Biostatistics II 514-5509 Course Description: Modern multivariable statistical analysis based on the concept of generalized linear models. Includes linear, logistic, and Poisson regression, survival analysis,

More information

Regression Analysis II

Regression Analysis II Regression Analysis II Lee D. Walker University of South Carolina e-mail: walker23@gwm.sc.edu COURSE OVERVIEW This course focuses on the theory, practice, and application of linear regression. As Agresti

More information

Unbalanced Analysis of Variance, Design, and Regression: Applied Statistical Methods

Unbalanced Analysis of Variance, Design, and Regression: Applied Statistical Methods Unbalanced Analysis of Variance, Design, and Regression: Applied Statistical Methods Ronald Christensen Department of Mathematics and Statistics University of New Mexico To Mark, Karl, and John It was

More information

Score Tests of Normality in Bivariate Probit Models

Score Tests of Normality in Bivariate Probit Models Score Tests of Normality in Bivariate Probit Models Anthony Murphy Nuffield College, Oxford OX1 1NF, UK Abstract: A relatively simple and convenient score test of normality in the bivariate probit model

More information

WELCOME! Lecture 11 Thommy Perlinger

WELCOME! Lecture 11 Thommy Perlinger Quantitative Methods II WELCOME! Lecture 11 Thommy Perlinger Regression based on violated assumptions If any of the assumptions are violated, potential inaccuracies may be present in the estimated regression

More information

How to analyze correlated and longitudinal data?

How to analyze correlated and longitudinal data? How to analyze correlated and longitudinal data? Niloofar Ramezani, University of Northern Colorado, Greeley, Colorado ABSTRACT Longitudinal and correlated data are extensively used across disciplines

More information

Introduction to Econometrics

Introduction to Econometrics Global edition Introduction to Econometrics Updated Third edition James H. Stock Mark W. Watson MyEconLab of Practice Provides the Power Optimize your study time with MyEconLab, the online assessment and

More information

Modeling unobserved heterogeneity in Stata

Modeling unobserved heterogeneity in Stata Modeling unobserved heterogeneity in Stata Rafal Raciborski StataCorp LLC November 27, 2017 Rafal Raciborski (StataCorp) Modeling unobserved heterogeneity November 27, 2017 1 / 59 Plan of the talk Concepts

More information

4. STATA output of the analysis

4. STATA output of the analysis Biostatistics(1.55) 1. Objective: analyzing epileptic seizures data using GEE marginal model in STATA.. Scientific question: Determine whether the treatment reduces the rate of epileptic seizures. 3. Dataset:

More information

Unit 1 Exploring and Understanding Data

Unit 1 Exploring and Understanding Data Unit 1 Exploring and Understanding Data Area Principle Bar Chart Boxplot Conditional Distribution Dotplot Empirical Rule Five Number Summary Frequency Distribution Frequency Polygon Histogram Interquartile

More information

BIOL 458 BIOMETRY Lab 7 Multi-Factor ANOVA

BIOL 458 BIOMETRY Lab 7 Multi-Factor ANOVA BIOL 458 BIOMETRY Lab 7 Multi-Factor ANOVA PART 1: Introduction to Factorial ANOVA ingle factor or One - Way Analysis of Variance can be used to test the null hypothesis that k or more treatment or group

More information

SOCIAL CAPITAL AND THE EFFECTIVENESS OF FOREIGN AID TO THE HEALTH SECTOR

SOCIAL CAPITAL AND THE EFFECTIVENESS OF FOREIGN AID TO THE HEALTH SECTOR SOCIAL CAPITAL AND THE EFFECTIVENESS OF FOREIGN AID TO THE HEALTH SECTOR Stefan Kruse (M.A.) Centre for the Study of Democracy (CSD),Leuphana University Lüneburg, Germany Hamburg Institute of International

More information

Applied Regression The University of Texas at Dallas EPPS 6316, Spring 2013 Tuesday, 7pm 9:45pm Room: FO 2.410

Applied Regression The University of Texas at Dallas EPPS 6316, Spring 2013 Tuesday, 7pm 9:45pm Room: FO 2.410 Applied Regression The University of Texas at Dallas EPPS 6316, Spring 2013 Tuesday, 7pm 9:45pm Room: FO 2.410 Professor: J.C. Barnes, Ph.D. Email: jcbarnes@utdallas.edu Phone: (972) 883-2046 Office: GR

More information

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

Syntax Menu Description Options Remarks and examples Stored results Methods and formulas References Also see Title stata.com teffects ra Regression adjustment Syntax Syntax Menu Description Options Remarks and examples Stored results Methods and formulas References Also see teffects ra (ovar omvarlist [, omodel

More information

Least likely observations in regression models for categorical outcomes

Least likely observations in regression models for categorical outcomes The Stata Journal (2002) 2, Number 3, pp. 296 300 Least likely observations in regression models for categorical outcomes Jeremy Freese University of Wisconsin Madison Abstract. This article presents a

More information

ivlewbel: Uses heteroscedasticity to estimate mismeasured and endogenous regressor models

ivlewbel: Uses heteroscedasticity to estimate mismeasured and endogenous regressor models ivlewbel: Uses heteroscedasticity to estimate mismeasured and endogenous regressor models Fernihough, A. ivlewbel: Uses heteroscedasticity to estimate mismeasured and endogenous regressor models Queen's

More information

SPRING GROVE AREA SCHOOL DISTRICT. Course Description. Instructional Strategies, Learning Practices, Activities, and Experiences.

SPRING GROVE AREA SCHOOL DISTRICT. Course Description. Instructional Strategies, Learning Practices, Activities, and Experiences. SPRING GROVE AREA SCHOOL DISTRICT PLANNED COURSE OVERVIEW Course Title: Basic Introductory Statistics Grade Level(s): 11-12 Units of Credit: 1 Classification: Elective Length of Course: 30 cycles Periods

More information

A Concise Guide to Market

A Concise Guide to Market Marko Sarstedt Erik Mooi A Concise Guide to Market Research The Process, Data, and Methods Using IBM SPSS Statistics Second Edition 4^ Springer 1 Introduction to Market Research 1 1.1 Introduction 1 1.2

More information

Background Information. Instructions. Problem Statement. HOMEWORK INSTRUCTIONS Homework #2 HIV Statistics Problem

Background Information. Instructions. Problem Statement. HOMEWORK INSTRUCTIONS Homework #2 HIV Statistics Problem Background Information HOMEWORK INSTRUCTIONS The scourge of HIV/AIDS has had an extraordinary impact on the entire world. The spread of the disease has been closely tracked since the discovery of the HIV

More information

Jae Jin An, Ph.D. Michael B. Nichol, Ph.D.

Jae Jin An, Ph.D. Michael B. Nichol, Ph.D. IMPACT OF MULTIPLE MEDICATION COMPLIANCE ON CARDIOVASCULAR OUTCOMES IN PATIENTS WITH TYPE II DIABETES AND COMORBID HYPERTENSION CONTROLLING FOR ENDOGENEITY BIAS Jae Jin An, Ph.D. Michael B. Nichol, Ph.D.

More information

Methods for Addressing Selection Bias in Observational Studies

Methods for Addressing Selection Bias in Observational Studies Methods for Addressing Selection Bias in Observational Studies Susan L. Ettner, Ph.D. Professor Division of General Internal Medicine and Health Services Research, UCLA What is Selection Bias? In the regression

More information

War and Relatedness Enrico Spolaore and Romain Wacziarg September 2015

War and Relatedness Enrico Spolaore and Romain Wacziarg September 2015 War and Relatedness Enrico Spolaore and Romain Wacziarg September 2015 Online Appendix Supplementary Empirical Results, described in the main text as "Available in the Online Appendix" 1 Table AUR0 Effect

More information

Simple Linear Regression One Categorical Independent Variable with Several Categories

Simple Linear Regression One Categorical Independent Variable with Several Categories Simple Linear Regression One Categorical Independent Variable with Several Categories Does ethnicity influence total GCSE score? We ve learned that variables with just two categories are called binary

More information

A Handbook of Statistical Analyses using SAS

A Handbook of Statistical Analyses using SAS A Handbook of Statistical Analyses using SAS SECOND EDITION Geoff Der Statistician MRC Social and Public Health Sciences Unit University of Glasgow Glasgow, Scotland and Brian S. Everitt Professor of Statistics

More information

Inference with Difference-in-Differences Revisited

Inference with Difference-in-Differences Revisited Inference with Difference-in-Differences Revisited M. Brewer, T- F. Crossley and R. Joyce Journal of Econometric Methods, 2018 presented by Federico Curci February 22nd, 2018 Brewer, Crossley and Joyce

More information

Chapter 1: Exploring Data

Chapter 1: Exploring Data Chapter 1: Exploring Data Key Vocabulary:! individual! variable! frequency table! relative frequency table! distribution! pie chart! bar graph! two-way table! marginal distributions! conditional distributions!

More information

Profile Analysis. Intro and Assumptions Psy 524 Andrew Ainsworth

Profile Analysis. Intro and Assumptions Psy 524 Andrew Ainsworth Profile Analysis Intro and Assumptions Psy 524 Andrew Ainsworth Profile Analysis Profile analysis is the repeated measures extension of MANOVA where a set of DVs are commensurate (on the same scale). Profile

More information

Multiple Regression. James H. Steiger. Department of Psychology and Human Development Vanderbilt University

Multiple Regression. James H. Steiger. Department of Psychology and Human Development Vanderbilt University Multiple Regression James H. Steiger Department of Psychology and Human Development Vanderbilt University James H. Steiger (Vanderbilt University) Multiple Regression 1 / 19 Multiple Regression 1 The Multiple

More information

Problem set 2: understanding ordinary least squares regressions

Problem set 2: understanding ordinary least squares regressions Problem set 2: understanding ordinary least squares regressions September 12, 2013 1 Introduction This problem set is meant to accompany the undergraduate econometrics video series on youtube; covering

More information

STATISTICS & PROBABILITY

STATISTICS & PROBABILITY STATISTICS & PROBABILITY LAWRENCE HIGH SCHOOL STATISTICS & PROBABILITY CURRICULUM MAP 2015-2016 Quarter 1 Unit 1 Collecting Data and Drawing Conclusions Unit 2 Summarizing Data Quarter 2 Unit 3 Randomness

More information

EMPIRICAL STRATEGIES IN LABOUR ECONOMICS

EMPIRICAL STRATEGIES IN LABOUR ECONOMICS EMPIRICAL STRATEGIES IN LABOUR ECONOMICS University of Minho J. Angrist NIPE Summer School June 2009 This course covers core econometric ideas and widely used empirical modeling strategies. The main theoretical

More information

Pitfalls in Linear Regression Analysis

Pitfalls in Linear Regression Analysis Pitfalls in Linear Regression Analysis Due to the widespread availability of spreadsheet and statistical software for disposal, many of us do not really have a good understanding of how to use regression

More information

WDHS Curriculum Map Probability and Statistics. What is Statistics and how does it relate to you?

WDHS Curriculum Map Probability and Statistics. What is Statistics and how does it relate to you? WDHS Curriculum Map Probability and Statistics Time Interval/ Unit 1: Introduction to Statistics 1.1-1.3 2 weeks S-IC-1: Understand statistics as a process for making inferences about population parameters

More information

Chapter 3 Software Packages to Install How to Set Up Python Eclipse How to Set Up Eclipse... 42

Chapter 3 Software Packages to Install How to Set Up Python Eclipse How to Set Up Eclipse... 42 Table of Contents Preface..... 21 About the Authors... 23 Acknowledgments... 24 How This Book is Organized... 24 Who Should Buy This Book?... 24 Where to Find Answers to Review Questions and Exercises...

More information

Multiple Regression Using SPSS/PASW

Multiple Regression Using SPSS/PASW MultipleRegressionUsingSPSS/PASW The following sections have been adapted from Field (2009) Chapter 7. These sections have been edited down considerablyandisuggest(especiallyifyou reconfused)thatyoureadthischapterinitsentirety.youwillalsoneed

More information

Technical Track Session IV Instrumental Variables

Technical Track Session IV Instrumental Variables Impact Evaluation Technical Track Session IV Instrumental Variables Christel Vermeersch Beijing, China, 2009 Human Development Human Network Development Network Middle East and North Africa Region World

More information

F1: Introduction to Econometrics

F1: Introduction to Econometrics F1: Introduction to Econometrics Feng Li Department of Statistics, Stockholm University General information Homepage of this course: http://gauss.stat.su.se/gu/ekonometri.shtml Lecturer F1 F7: Feng Li,

More information

Online Appendix. According to a recent survey, most economists expect the economic downturn in the United

Online Appendix. According to a recent survey, most economists expect the economic downturn in the United Online Appendix Part I: Text of Experimental Manipulations and Other Survey Items a. Macroeconomic Anxiety Prime According to a recent survey, most economists expect the economic downturn in the United

More information

Technical Bulletin. Technical Information for Lyra Direct Strep Assay

Technical Bulletin. Technical Information for Lyra Direct Strep Assay Technical Bulletin Technical Information for Lyra Direct Strep Assay Quidel Corporation has verified the performance of the Lyra Direct Strep Assay on Cepheid s SmartCycler II, software version 3.0b. Internal

More information

Multiple Linear Regression (Dummy Variable Treatment) CIVL 7012/8012

Multiple Linear Regression (Dummy Variable Treatment) CIVL 7012/8012 Multiple Linear Regression (Dummy Variable Treatment) CIVL 7012/8012 2 In Today s Class Recap Single dummy variable Multiple dummy variables Ordinal dummy variables Dummy-dummy interaction Dummy-continuous/discrete

More information

4Stat Wk 10: Regression

4Stat Wk 10: Regression 4Stat 342 - Wk 10: Regression Loading data with datalines Regression (Proc glm) - with interactions - with polynomial terms - with categorical variables (Proc glmselect) - with model selection (this is

More information

Bayesian versus maximum likelihood estimation of treatment effects in bivariate probit instrumental variable models

Bayesian versus maximum likelihood estimation of treatment effects in bivariate probit instrumental variable models Bayesian versus maximum likelihood estimation of treatment effects in bivariate probit instrumental variable models Florian M. Hollenbach Department of Political Science Texas A&M University Jacob M. Montgomery

More information

Editor Executive Editor Associate Editors Copyright Statement:

Editor Executive Editor Associate Editors Copyright Statement: The Stata Journal Editor H. Joseph Newton Department of Statistics Texas A & M University College Station, Texas 77843 979-845-3142 979-845-3144 FAX jnewton@stata-journal.com Associate Editors Christopher

More information

The Impact of Relative Standards on the Propensity to Disclose. Alessandro Acquisti, Leslie K. John, George Loewenstein WEB APPENDIX

The Impact of Relative Standards on the Propensity to Disclose. Alessandro Acquisti, Leslie K. John, George Loewenstein WEB APPENDIX The Impact of Relative Standards on the Propensity to Disclose Alessandro Acquisti, Leslie K. John, George Loewenstein WEB APPENDIX 2 Web Appendix A: Panel data estimation approach As noted in the main

More information

ADVANCED VBA FOR PROJECT FINANCE Near Future Ltd. Registration no

ADVANCED VBA FOR PROJECT FINANCE Near Future Ltd. Registration no ADVANCED VBA FOR PROJECT FINANCE f i n a n c i a l f o r e c a s t i n G 2017 Near Future Ltd. Registration no. 10321258 www.nearfuturefinance.com info@nearfuturefinance.com COURSE OVERVIEW This course

More information