ECON Introductory Econometrics Seminar 4

Size: px
Start display at page:

Download "ECON Introductory Econometrics Seminar 4"

Transcription

1 ECON Introductory Econometrics Seminar 4 Stock and Watson EE8.2 April 28, 2015 Stock and Watson EE8.2 ECON Introductory Econometrics Seminar 4 April 28, / 20

2 Current Population Survey data on labor force characteristics of the population, including the level of employment, unemployment, and earnings this subset consider young workers aged 25 to 34 in individuals. FEMALE: 1 if female; 0 if male YEAR: Year AHE : Average Hourly Earnings BACHELOR: 1 if worker has a bachelor degree; 0 if worker has a high school degree AGE: age of individual, from 25 to 34, young workers Stock and Watson EE8.2 ECON Introductory Econometrics Seminar 4 April 28, / 20

3 clear all cd M:\pc\Desktop\courses\introductory_econometrics\seminar_4 use "cps12.dta" cap log close log using EE8_2.log, replace set more off pause on //describe the data describe //summary statistics summ summ Variable Obs Mean Std. Dev. Min Max year ahe bachelor female age Stock and Watson EE8.2 ECON Introductory Econometrics Seminar 4 April 28, / 20

4 a) reg ahe age female bachelor, r Linear regression Number of obs = 7440 F( 3, 7436) = Prob > F = R-squared = Root MSE = Robust ahe Coef. Std. Err. t P> t [95% Conf. Interval] age female bachelor _cons estimates store rega.. /* > If Age increases from 25 to 26 or from 33 to 34, earnings are predicted to in > crease by $0.510 per hour. > These values are the same because the regression is a linear function relating > AHE and Age. > */. Stock and Watson EE8.2 ECON Introductory Econometrics Seminar 4 April 28, / 20

5 b gen lnahe=ln(ahe) reg lnahe age female bachelor, r Linear regression Number of obs = 7440 F( 3, 7436) = Prob > F = R-squared = Root MSE = Robust lnahe Coef. Std. Err. t P> t [95% Conf. Interval] age female bachelor _cons estimates store regb.. /* earnings are predicted to increase in both cases by 100%*0.0255=2.55%. > These values, in percentage terms, are the same because the regression > is a linear function relating ln(ahe) and Age. > */. Stock and Watson EE8.2 ECON Introductory Econometrics Seminar 4 April 28, / 20

6 c gen lnage=ln(age) reg lnahe lnage female bachelor, r Linear regression Number of obs = 7440 F( 3, 7436) = Prob > F = R-squared = Root MSE = Robust lnahe Coef. Std. Err. t P> t [95% Conf. Interval] lnage female bachelor _cons estimates store regc... /* > If age goes from 25 to 26, the percentage increased is approximated by ln(26 > /25) = , then 3.92%. > The predicted increase in earnings is 100% * 0.75 * (0.0392) = 2.9 > If age goes from 35 to 36, the percentage increased is approximated by ln(36 > /35) = , then 2.90%. > TheStock predicted and Watson EE8.2 increase in earnings ECON Introductory is the Econometrics 100% * 0.75 Seminar* 4 (0.0290) = 2.1%. April 28, / 20

7 d gen agesquared=age^2 reg lnahe age agesquared female bachelor, r Linear regression Number of obs = 7440 F( 4, 7435) = Prob > F = R-squared = Root MSE = Robust lnahe Coef. Std. Err. t P> t [95% Conf. Interval] age agesquared female bachelor _cons estimates store regd /* Age increases from 25 to 26, the predicted change in ln(ahe) is (0.104 * * 26^2) - (0.104 * * 25^2) = Earnings are predicted to increase by 100%*0.036=3.6%. Age increases from 34 to 35, the predicted change in ln(ahe) is (0.104 * * 352) - (0.104 * * 342) = Earnings are predicted to increase by 100%*0.012=1.2%. */ Stock and Watson EE8.2 ECON Introductory Econometrics Seminar 4 April 28, / 20

8 e /* > The regressions of questions (c) and (b) differs with respect the choice of > one regressor. > The dependent variable is the same ln(ahe). > Then, we can make a choice comparing the two regression using the adjusted > R squared. > */ quietly reg lnahe lnage female bachelor, r display "adjusted R2_c = " e(r2_a) adjusted R2_c = quietly reg lnahe age female bachelor, r display "adjusted R2_b = " e(r2_a) adjusted R2_b = // adjusted R2_c = > adjusted R2_b = Stock and Watson EE8.2 ECON Introductory Econometrics Seminar 4 April 28, / 20

9 f /* The regression in (d) includes an extra regression when compared with regre sion (b). The dependent variable is the same ln(ahe). Then, we can make a choice comparing considering just the t-statistics of agesquared */ reg lnahe age agesquared female bachelor, r Linear regression Number of obs = 7440 F( 4, 7435) = Prob > F = R-squared = Root MSE = Robust lnahe Coef. Std. Err. t P> t [95% Conf. Interval] age agesquared female bachelor _cons /* coefficient on agesquared is not statistically significant different from zero at a 95% level ( t = < 1.96). This suggests that (b) is preferred to (d). */ Stock and Watson EE8.2 ECON Introductory Econometrics Seminar 4 April 28, / 20

10 g. /* Choice of regressors is different but same dependent variable. Check the adjusted Rsquared */ quietly reg lnahe age agesquared female bachelor, r display "adjusted R2_d = " e(r2_a) adjusted R2_d = quietly reg lnahe lnage female bachelor, r display "adjusted R2_c = " e(r2_a) adjusted R2_c = // adjusted R2_c = < adjusted R2_d = d preferred Stock and Watson EE8.2 ECON Introductory Econometrics Seminar 4 April 28, / 20

11 h // first store the predicted values from the different regressions quietly reg lnahe age female bachelor, r predict lnahe_b_hat quietly reg lnahe lnage female bachelor, r predict lnahe_c_hat quietly reg lnahe age agesquared female bachelor, r predict lnahe_d_hat // then sort sort age // graphs two (line lnahe_b_hat age if female==0 & bachelor==0, lwidth(medthick) lpattern(solid) lcolor(blue)) /// (line lnahe_c_hat age if female==0 & bachelor==0, lwidth(medthick) lpattern(solid) lcolor(red)) /// (line lnahe_d_hat age if female==0 & bachelor==0, lwidth(medthick) lpattern(solid) lcolor(black)) ///, scheme(s1color) legend(pos(7) ring(0) label(1 "regression_b") label(2 "regression_c")label(3 "regression_d")) Stock and Watson EE8.2 ECON Introductory Econometrics Seminar 4 April 28, / 20

12 h Fitted values regression_b regression_d regression_c age /* very similar fitted values. The quadratic specification (regression_d)more curvature than the log-log one (regression_c). for a female with a high school diploma similar but shifted (by the amount of the coefficient on the dummy variable female) lines, */ Stock and Watson EE8.2 ECON Introductory Econometrics Seminar 4 April 28, / 20

13 i gen fembac=female*bachelor regress lnahe age agesquared female bachelor fembac, robust Linear regression Number of obs = 7440 F( 5, 7434) = Prob > F = R-squared = Root MSE =.4777 Robust lnahe Coef. Std. Err. t P> t [95% Conf. Interval] age agesquared female bachelor fembac _cons /* > The coefficient on the interaction term > fembac allows the effect of Bachelor on ln(ahe) to be different accordingly > to the gender of the individual > */ Stock and Watson EE8.2 ECON Introductory Econometrics Seminar 4 April 28, / 20

14 i /* > Alexis, predicted value: * * 30^ > = > Jane predicted value: * * 30^ = > > Predicted diff Alexis-jane= =.491 > > Bob * * 30^ = > Jim * * 30^ = > > Predicted diff Bob - Jim = = > > the diff - diff is the interaction term = 0.09 > > */ Stock and Watson EE8.2 ECON Introductory Econometrics Seminar 4 April 28, / 20

15 j. // interaction term and then F statistic gen agefem = age * female gen agesquaredfem = agesquared * female regress lnahe age agesquared agefem agesquaredfem female bachelor fembac, r Linear regression Number of obs = 7440 F( 7, 7432) = Prob > F = R-squared = Root MSE = Robust lnahe Coef. Std. Err. t P> t [95% Conf. Interval] age agesquared agefem agesquaredfem female bachelor fembac _cons Stock and Watson EE8.2 ECON Introductory Econometrics Seminar 4 April 28, / 20

16 j test agefem agesquaredfem ( 1) agefem = 0 ( 2) agesquaredfem = 0 F( 2, 7432) = 4.14 Prob > F = > the effect of Age on earnings (in log) is statistically(at the 5% but not 1% l > evel) different > between men and women Stock and Watson EE8.2 ECON Introductory Econometrics Seminar 4 April 28, / 20

17 k gen agebac = bachelor * age gen agesquaredbac = bachelor * agesquared regress lnahe age agesquared agebac agesquaredbac female bachelor fembac, r Linear regression Number of obs = 7440 F( 7, 7432) = Prob > F = R-squared = Root MSE = Robust lnahe Coef. Std. Err. t P> t [95% Conf. Interval] age agesquared agebac agesquaredbac female bachelor fembac _cons Stock and Watson EE8.2 ECON Introductory Econometrics Seminar 4 April 28, / 20

18 k test agebac agesquaredbac ( 1) agebac = 0 ( 2) agesquaredbac = 0 F( 2, 7432) = 1.30 Prob > F = Stock and Watson EE8.2 ECON Introductory Econometrics Seminar 4 April 28, / 20

19 k test agebac agesquaredbac ( 1) agebac = 0 ( 2) agesquaredbac = 0 /* F( 2, 7432) = 1.30 Prob > F = Pvalue is larger than 0.05, even larger than 0.10, so that we can not reject t he null hypotesys that the two coefficent are both 0. Thus, there is not statistical s ignificant evidence of a different effect of Age on ln(ahe) for high school and college graduates */ Stock and Watson EE8.2 ECON Introductory Econometrics Seminar 4 April 28, / 20

20 l /* Gender and education are significant predictors of earnings, significant interaction effects between: --- age and gender --- gender and and education */ log close Stock and Watson EE8.2 ECON Introductory Econometrics Seminar 4 April 28, / 20

Introduction to STATA 6.0 ECONOMICS 626

Introduction to STATA 6.0 ECONOMICS 626 Introduction to STATA 6.0 ECONOMICS 626 Bill Evans Fall 2001 This handout gives a very brief introduction to STATA 6.0 on the Economics Department Network. In a few short years, STATA has become one of

More information

. predict mod1. graph mod1 ed, connect(l) xlabel ylabel l1(model1 predicted income) b1(years of education)

. predict mod1. graph mod1 ed, connect(l) xlabel ylabel l1(model1 predicted income) b1(years of education) DUMMY VARIABLES AND INTERACTIONS Let's start with an example in which we are interested in discrimination in income. We have a dataset that includes information for about 16 people on their income, their

More information

Bivariate (Simple) Regression Analysis

Bivariate (Simple) Regression Analysis Revised July 2018 Bivariate (Simple) Regression Analysis This set of notes shows how to use Stata to estimate a simple (two-variable) regression equation. It assumes that you have set Stata up on your

More information

Heteroskedasticity and Homoskedasticity, and Homoskedasticity-Only Standard Errors

Heteroskedasticity and Homoskedasticity, and Homoskedasticity-Only Standard Errors Heteroskedasticity and Homoskedasticity, and Homoskedasticity-Only Standard Errors (Section 5.4) What? Consequences of homoskedasticity Implication for computing standard errors What do these two terms

More information

schooling.log 7/5/2006

schooling.log 7/5/2006 ----------------------------------- log: C:\dnb\schooling.log log type: text opened on: 5 Jul 2006, 09:03:57. /* schooling.log */ > use schooling;. gen age2=age76^2;. /* OLS (inconsistent) */ > reg lwage76

More information

range: [1,20] units: 1 unique values: 20 missing.: 0/20 percentiles: 10% 25% 50% 75% 90%

range: [1,20] units: 1 unique values: 20 missing.: 0/20 percentiles: 10% 25% 50% 75% 90% ------------------ log: \Term 2\Lecture_2s\regression1a.log log type: text opened on: 22 Feb 2008, 03:29:09. cmdlog using " \Term 2\Lecture_2s\regression1a.do" (cmdlog \Term 2\Lecture_2s\regression1a.do

More information

Week 4: Simple Linear Regression II

Week 4: Simple Linear Regression II Week 4: Simple Linear Regression II Marcelo Coca Perraillon University of Colorado Anschutz Medical Campus Health Services Research Methods I HSMP 7607 2017 c 2017 PERRAILLON ARR 1 Outline Algebraic properties

More information

Panel Data 4: Fixed Effects vs Random Effects Models

Panel Data 4: Fixed Effects vs Random Effects Models Panel Data 4: Fixed Effects vs Random Effects Models Richard Williams, University of Notre Dame, http://www3.nd.edu/~rwilliam/ Last revised April 4, 2017 These notes borrow very heavily, sometimes verbatim,

More information

/23/2004 TA : Jiyoon Kim. Recitation Note 1

/23/2004 TA : Jiyoon Kim. Recitation Note 1 Recitation Note 1 This is intended to walk you through using STATA in an Athena environment. The computer room of political science dept. has STATA on PC machines. But, knowing how to use it on Athena

More information

Linear regression Number of obs = 6,866 F(16, 326) = Prob > F = R-squared = Root MSE =

Linear regression Number of obs = 6,866 F(16, 326) = Prob > F = R-squared = Root MSE = - /*** To demonstrate use of 2SLS ***/ * Case: In the early 1990's Tanzania implemented a FP program to reduce fertility, which was among the highest in the world * The FP program had two main components:

More information

Stata versions 12 & 13 Week 4 Practice Problems

Stata versions 12 & 13 Week 4 Practice Problems Stata versions 12 & 13 Week 4 Practice Problems SOLUTIONS 1 Practice Screen Capture a Create a word document Name it using the convention lastname_lab1docx (eg bigelow_lab1docx) b Using your browser, go

More information

Week 4: Simple Linear Regression III

Week 4: Simple Linear Regression III Week 4: Simple Linear Regression III Marcelo Coca Perraillon University of Colorado Anschutz Medical Campus Health Services Research Methods I HSMP 7607 2017 c 2017 PERRAILLON ARR 1 Outline Goodness of

More information

SOCY7706: Longitudinal Data Analysis Instructor: Natasha Sarkisian. Panel Data Analysis: Fixed Effects Models

SOCY7706: Longitudinal Data Analysis Instructor: Natasha Sarkisian. Panel Data Analysis: Fixed Effects Models SOCY776: Longitudinal Data Analysis Instructor: Natasha Sarkisian Panel Data Analysis: Fixed Effects Models Fixed effects models are similar to the first difference model we considered for two wave data

More information

Week 10: Heteroskedasticity II

Week 10: Heteroskedasticity II Week 10: Heteroskedasticity II Marcelo Coca Perraillon University of Colorado Anschutz Medical Campus Health Services Research Methods I HSMP 7607 2017 c 2017 PERRAILLON ARR 1 Outline Dealing with heteroskedasticy

More information

THE LINEAR PROBABILITY MODEL: USING LEAST SQUARES TO ESTIMATE A REGRESSION EQUATION WITH A DICHOTOMOUS DEPENDENT VARIABLE

THE LINEAR PROBABILITY MODEL: USING LEAST SQUARES TO ESTIMATE A REGRESSION EQUATION WITH A DICHOTOMOUS DEPENDENT VARIABLE PLS 802 Spring 2018 Professor Jacoby THE LINEAR PROBABILITY MODEL: USING LEAST SQUARES TO ESTIMATE A REGRESSION EQUATION WITH A DICHOTOMOUS DEPENDENT VARIABLE This handout shows the log of a Stata session

More information

optimization_machine_probit_bush106.c

optimization_machine_probit_bush106.c optimization_machine_probit_bush106.c. probit ybush black00 south hispanic00 income owner00 dwnom1n dwnom2n Iteration 0: log likelihood = -299.27289 Iteration 1: log likelihood = -154.89847 Iteration 2:

More information

Source:

Source: Time Series Source: http://www.princeton.edu/~otorres/stata/ Time series data is data collected over time for a single or a group of variables. Date variable For this kind of data the first thing to do

More information

Package oaxaca. January 3, Index 11

Package oaxaca. January 3, Index 11 Type Package Title Blinder-Oaxaca Decomposition Version 0.1.4 Date 2018-01-01 Package oaxaca January 3, 2018 Author Marek Hlavac Maintainer Marek Hlavac

More information

tm / / / / / / / / / / / / Statistics/Data Analysis

tm / / / / / / / / / / / / Statistics/Data Analysis Empirische Wirtschaftsforschung Tuesday May 6 20:19:04 2008 Page 1 tm / / / / / / / / / / / / Statistics/Data Analysis User: Puriya Abbassi Project: Uebung2 wagereal 1739 18.47184 8.159652 2.307692 57.69231

More information

Lab 2: OLS regression

Lab 2: OLS regression Lab 2: OLS regression Andreas Beger February 2, 2009 1 Overview This lab covers basic OLS regression in Stata, including: multivariate OLS regression reporting coefficients with different confidence intervals

More information

Introduction to Stata: An In-class Tutorial

Introduction to Stata: An In-class Tutorial Introduction to Stata: An I. The Basics - Stata is a command-driven statistical software program. In other words, you type in a command, and Stata executes it. You can use the drop-down menus to avoid

More information

texdoc 2.0 An update on creating LaTeX documents from within Stata Example 2

texdoc 2.0 An update on creating LaTeX documents from within Stata Example 2 texdoc 20 An update on creating LaTeX documents from within Stata Contents Example 2 Ben Jann University of Bern, benjann@sozunibech 2016 German Stata Users Group Meeting GESIS, Cologne, June 10, 2016

More information

Stata Session 2. Tarjei Havnes. University of Oslo. Statistics Norway. ECON 4136, UiO, 2012

Stata Session 2. Tarjei Havnes. University of Oslo. Statistics Norway. ECON 4136, UiO, 2012 Stata Session 2 Tarjei Havnes 1 ESOP and Department of Economics University of Oslo 2 Research department Statistics Norway ECON 4136, UiO, 2012 Tarjei Havnes (University of Oslo) Stata Session 2 ECON

More information

Creating LaTeX and HTML documents from within Stata using texdoc and webdoc. Example 2

Creating LaTeX and HTML documents from within Stata using texdoc and webdoc. Example 2 Creating LaTeX and HTML documents from within Stata using texdoc and webdoc Contents Example 2 Ben Jann University of Bern, benjann@sozunibech Nordic and Baltic Stata Users Group meeting Oslo, September

More information

Week 5: Multiple Linear Regression II

Week 5: Multiple Linear Regression II Week 5: Multiple Linear Regression II Marcelo Coca Perraillon University of Colorado Anschutz Medical Campus Health Services Research Methods I HSMP 7607 2017 c 2017 PERRAILLON ARR 1 Outline Adjusted R

More information

Applied Statistics and Econometrics Lecture 6

Applied Statistics and Econometrics Lecture 6 Applied Statistics and Econometrics Lecture 6 Giuseppe Ragusa Luiss University gragusa@luiss.it http://gragusa.org/ March 6, 2017 Luiss University Empirical application. Data Italian Labour Force Survey,

More information

Week 11: Interpretation plus

Week 11: Interpretation plus Week 11: Interpretation plus Marcelo Coca Perraillon University of Colorado Anschutz Medical Campus Health Services Research Methods I HSMP 7607 2017 c 2017 PERRAILLON ARR 1 Outline A bit of a patchwork

More information

piecewise ginireg 1 Piecewise Gini Regressions in Stata Jan Ditzen 1 Shlomo Yitzhaki 2 September 8, 2017

piecewise ginireg 1 Piecewise Gini Regressions in Stata Jan Ditzen 1 Shlomo Yitzhaki 2 September 8, 2017 piecewise ginireg 1 Piecewise Gini Regressions in Stata Jan Ditzen 1 Shlomo Yitzhaki 2 1 Heriot-Watt University, Edinburgh, UK Center for Energy Economics Research and Policy (CEERP) 2 The Hebrew University

More information

Lecture 3: The basic of programming- do file and macro

Lecture 3: The basic of programming- do file and macro Introduction to Stata- A. Chevalier Lecture 3: The basic of programming- do file and macro Content of Lecture 3: -Entering and executing programs do file program ado file -macros 1 A] Entering and executing

More information

Introduction to Hierarchical Linear Model. Hsueh-Sheng Wu CFDR Workshop Series January 30, 2017

Introduction to Hierarchical Linear Model. Hsueh-Sheng Wu CFDR Workshop Series January 30, 2017 Introduction to Hierarchical Linear Model Hsueh-Sheng Wu CFDR Workshop Series January 30, 2017 1 Outline What is Hierarchical Linear Model? Why do nested data create analytic problems? Graphic presentation

More information

ECON Stata course, 3rd session

ECON Stata course, 3rd session ECON4150 - Stata course, 3rd session Andrea Papini Heavily based on last year s session by Tarjei Havnes February 4, 2016 Stata course, 3rd session February 4, 2016 1 / 19 Before we start 1. Download caschool.dta

More information

An Introductory Guide to Stata

An Introductory Guide to Stata An Introductory Guide to Stata Scott L. Minkoff Assistant Professor Department of Political Science Barnard College sminkoff@barnard.edu Updated: July 9, 2012 1 TABLE OF CONTENTS ABOUT THIS GUIDE... 4

More information

Coding Categorical Variables in Regression: Indicator or Dummy Variables. Professor George S. Easton

Coding Categorical Variables in Regression: Indicator or Dummy Variables. Professor George S. Easton Coding Categorical Variables in Regression: Indicator or Dummy Variables Professor George S. Easton DataScienceSource.com This video is embedded on the following web page at DataScienceSource.com: DataScienceSource.com/DummyVariables

More information

Introduction to Programming in Stata

Introduction to Programming in Stata Introduction to in Stata Laron K. University of Missouri Goals Goals Replicability! Goals Replicability! Simplicity/efficiency Goals Replicability! Simplicity/efficiency Take a peek under the hood! Data

More information

IQR = number. summary: largest. = 2. Upper half: Q3 =

IQR = number. summary: largest. = 2. Upper half: Q3 = Step by step box plot Height in centimeters of players on the 003 Women s Worldd Cup soccer team. 157 1611 163 163 164 165 165 165 168 168 168 170 170 170 171 173 173 175 180 180 Determine the 5 number

More information

Introduction to Stata Session 3

Introduction to Stata Session 3 Introduction to Stata Session 3 Tarjei Havnes 1 ESOP and Department of Economics University of Oslo 2 Research department Statistics Norway ECON 3150/4150, UiO, 2015 Before we start 1. In your folder statacourse:

More information

25 Working with categorical data and factor variables

25 Working with categorical data and factor variables 25 Working with categorical data and factor variables Contents 25.1 Continuous, categorical, and indicator variables 25.1.1 Converting continuous variables to indicator variables 25.1.2 Converting continuous

More information

Week 9: Modeling II. Marcelo Coca Perraillon. Health Services Research Methods I HSMP University of Colorado Anschutz Medical Campus

Week 9: Modeling II. Marcelo Coca Perraillon. Health Services Research Methods I HSMP University of Colorado Anschutz Medical Campus Week 9: Modeling II Marcelo Coca Perraillon University of Colorado Anschutz Medical Campus Health Services Research Methods I HSMP 7607 2017 c 2017 PERRAILLON ARR 1 Outline Taking the log Retransformation

More information

Robust Linear Regression (Passing- Bablok Median-Slope)

Robust Linear Regression (Passing- Bablok Median-Slope) Chapter 314 Robust Linear Regression (Passing- Bablok Median-Slope) Introduction This procedure performs robust linear regression estimation using the Passing-Bablok (1988) median-slope algorithm. Their

More information

Stata Training. AGRODEP Technical Note 08. April Manuel Barron and Pia Basurto

Stata Training. AGRODEP Technical Note 08. April Manuel Barron and Pia Basurto AGRODEP Technical Note 08 April 2013 Stata Training Manuel Barron and Pia Basurto AGRODEP Technical Notes are designed to document state-of-the-art tools and methods. They are circulated in order to help

More information

May 24, Emil Coman 1 Yinghui Duan 2 Daren Anderson 3

May 24, Emil Coman 1 Yinghui Duan 2 Daren Anderson 3 Assessing Health Disparities in Intensive Longitudinal Data: Gender Differences in Granger Causality Between Primary Care Provider and Emergency Room Usage, Assessed with Medicaid Insurance Claims May

More information

Lab #13 - Resampling Methods Econ 224 October 23rd, 2018

Lab #13 - Resampling Methods Econ 224 October 23rd, 2018 Lab #13 - Resampling Methods Econ 224 October 23rd, 2018 Introduction In this lab you will work through Section 5.3 of ISL and record your code and results in an RMarkdown document. I have added section

More information

Data Has Shape. Did you know? Data has Shape! Examples. My Data What do you think the shape of height data for this class looks like?

Data Has Shape. Did you know? Data has Shape! Examples. My Data What do you think the shape of height data for this class looks like? L01 Data Has Shape Did you know? Data has Shape! Examples My Data What do you think the shape of height data for this class looks like? Data From you Calculate your height in inches From the shape of the

More information

PAM 4280/ECON 3710: The Economics of Risky Health Behaviors Fall 2015 Professor John Cawley TA Christine Coyer. Stata Basics for PAM 4280/ECON 3710

PAM 4280/ECON 3710: The Economics of Risky Health Behaviors Fall 2015 Professor John Cawley TA Christine Coyer. Stata Basics for PAM 4280/ECON 3710 PAM 4280/ECON 3710: The Economics of Risky Health Behaviors Fall 2015 Professor John Cawley TA Christine Coyer Stata Basics for PAM 4280/ECON 3710 I Introduction Stata is one of the most commonly used

More information

PubHlth 640 Intermediate Biostatistics Unit 2 - Regression and Correlation. Simple Linear Regression Software: Stata v 10.1

PubHlth 640 Intermediate Biostatistics Unit 2 - Regression and Correlation. Simple Linear Regression Software: Stata v 10.1 PubHlth 640 Intermediate Biostatistics Unit 2 - Regression and Correlation Simple Linear Regression Software: Stata v 10.1 Emergency Calls to the New York Auto Club Source: Chatterjee, S; Handcock MS and

More information

Instrumental variables, bootstrapping, and generalized linear models

Instrumental variables, bootstrapping, and generalized linear models The Stata Journal (2003) 3, Number 4, pp. 351 360 Instrumental variables, bootstrapping, and generalized linear models James W. Hardin Arnold School of Public Health University of South Carolina Columbia,

More information

Review of Stata II AERC Training Workshop Nairobi, May 2002

Review of Stata II AERC Training Workshop Nairobi, May 2002 Review of Stata II AERC Training Workshop Nairobi, 20-24 May 2002 This note provides more information on the basics of Stata that should help you with the exercises in the remaining sessions of the workshop.

More information

Seminar Corporate Governance: Topics on Data Analysis with STATA

Seminar Corporate Governance: Topics on Data Analysis with STATA Seminar Corporate Governance: Topics on Data Analysis with STATA Yuhao Zhu y.zhu@ese.eur.nl 22 November 2017 Contents I Introductory 2 1 Why we are here and how we get there? 2 2 What to learn today? 2

More information

INTRODUCTION TO PANEL DATA ANALYSIS

INTRODUCTION TO PANEL DATA ANALYSIS INTRODUCTION TO PANEL DATA ANALYSIS USING EVIEWS FARIDAH NAJUNA MISMAN, PhD FINANCE DEPARTMENT FACULTY OF BUSINESS & MANAGEMENT UiTM JOHOR PANEL DATA WORKSHOP-23&24 MAY 2017 1 OUTLINE 1. Introduction 2.

More information

Numbers of Unemployed Jordanians ( )

Numbers of Unemployed Jordanians ( ) Numbers of Unemployed Jordanians (000-00) Table Name Unemployed Jordanians by Gender Unemployed Jordanians by Governorate Unemployed Jordanians by Educational Level Unemployed Jordanians by Marital Status

More information

Health Disparities (HD): It s just about comparing two groups

Health Disparities (HD): It s just about comparing two groups A review of modern methods of estimating the size of health disparities May 24, 2017 Emil Coman 1 Helen Wu 2 1 UConn Health Disparities Institute, 2 UConn Health Modern Modeling conference, May 22-24,

More information

Instruction on JMP IN of Chapter 19

Instruction on JMP IN of Chapter 19 Instruction on JMP IN of Chapter 19 Example 19.2 (1). Download the dataset xm19-02.jmp from the website for this course and open it. (2). Go to the Analyze menu and select Fit Model. Click on "REVENUE"

More information

MODULE ONE, PART THREE: READING DATA INTO STATA, CREATING AND RECODING VARIABLES, AND ESTIMATING AND TESTING MODELS IN STATA

MODULE ONE, PART THREE: READING DATA INTO STATA, CREATING AND RECODING VARIABLES, AND ESTIMATING AND TESTING MODELS IN STATA MODULE ONE, PART THREE: READING DATA INTO STATA, CREATING AND RECODING VARIABLES, AND ESTIMATING AND TESTING MODELS IN STATA This Part Three of Module One provides a cookbook-type demonstration of the

More information

Data Management 2. 1 Introduction. 2 Do-files. 2.1 Ado-files and Do-files

Data Management 2. 1 Introduction. 2 Do-files. 2.1 Ado-files and Do-files University of California, Santa Cruz Department of Economics ECON 294A (Fall 2014)- Stata Lab Instructor: Manuel Barron 1 Data Management 2 1 Introduction Today we are going to introduce the use of do-files,

More information

A Short Introduction to STATA

A Short Introduction to STATA A Short Introduction to STATA 1) Introduction: This session serves to link everyone from theoretical equations to tangible results under the amazing promise of Stata! Stata is a statistical package that

More information

Economics 561: Economics of Labour (Industrial Relations) Empirical Assignment #2 Due Date: March 7th

Economics 561: Economics of Labour (Industrial Relations) Empirical Assignment #2 Due Date: March 7th Page 1 of 5 2/16/2017 The University of British Columbia Vancouver School of Economics Economics 561: Economics of Labour (Industrial Relations) Professor Nicole M. Fortin Winter 2017 Professor Thomas

More information

22s:152 Applied Linear Regression

22s:152 Applied Linear Regression 22s:152 Applied Linear Regression Chapter 22: Model Selection In model selection, the idea is to find the smallest set of variables which provides an adequate description of the data. We will consider

More information

CH5: CORR & SIMPLE LINEAR REFRESSION =======================================

CH5: CORR & SIMPLE LINEAR REFRESSION ======================================= STAT 430 SAS Examples SAS5 ===================== ssh xyz@glue.umd.edu, tap sas913 (old sas82), sas https://www.statlab.umd.edu/sasdoc/sashtml/onldoc.htm CH5: CORR & SIMPLE LINEAR REFRESSION =======================================

More information

22s:152 Applied Linear Regression

22s:152 Applied Linear Regression 22s:152 Applied Linear Regression Chapter 22: Model Selection In model selection, the idea is to find the smallest set of variables which provides an adequate description of the data. We will consider

More information

An Econometric Study: The Cost of Mobile Broadband

An Econometric Study: The Cost of Mobile Broadband An Econometric Study: The Cost of Mobile Broadband Zhiwei Peng, Yongdon Shin, Adrian Raducanu IATOM13 ENAC January 16, 2014 Zhiwei Peng, Yongdon Shin, Adrian Raducanu (UCLA) The Cost of Mobile Broadband

More information

Introduction to Mixed Models: Multivariate Regression

Introduction to Mixed Models: Multivariate Regression Introduction to Mixed Models: Multivariate Regression EPSY 905: Multivariate Analysis Spring 2016 Lecture #9 March 30, 2016 EPSY 905: Multivariate Regression via Path Analysis Today s Lecture Multivariate

More information

Labor Economics with STATA. Estimating the Human Capital Model Using Artificial Data

Labor Economics with STATA. Estimating the Human Capital Model Using Artificial Data Labor Economics with STATA Liyousew G. Borga December 2, 2015 Estimating the Human Capital Model Using Artificial Data Liyou Borga Labor Economics with STATA December 2, 2015 84 / 105 Outline 1 The Human

More information

STAT10010 Introductory Statistics Lab 2

STAT10010 Introductory Statistics Lab 2 STAT10010 Introductory Statistics Lab 2 1. Aims of Lab 2 By the end of this lab you will be able to: i. Recognize the type of recorded data. ii. iii. iv. Construct summaries of recorded variables. Calculate

More information

Econometric Tools 1: Non-Parametric Methods

Econometric Tools 1: Non-Parametric Methods University of California, Santa Cruz Department of Economics ECON 294A (Fall 2014) - Stata Lab Instructor: Manuel Barron 1 Econometric Tools 1: Non-Parametric Methods 1 Introduction This lecture introduces

More information

Research Methods for Business and Management. Session 8a- Analyzing Quantitative Data- using SPSS 16 Andre Samuel

Research Methods for Business and Management. Session 8a- Analyzing Quantitative Data- using SPSS 16 Andre Samuel Research Methods for Business and Management Session 8a- Analyzing Quantitative Data- using SPSS 16 Andre Samuel A Simple Example- Gym Purpose of Questionnaire- to determine the participants involvement

More information

Two-Stage Least Squares

Two-Stage Least Squares Chapter 316 Two-Stage Least Squares Introduction This procedure calculates the two-stage least squares (2SLS) estimate. This method is used fit models that include instrumental variables. 2SLS includes

More information

Multiple-imputation analysis using Stata s mi command

Multiple-imputation analysis using Stata s mi command Multiple-imputation analysis using Stata s mi command Yulia Marchenko Senior Statistician StataCorp LP 2009 UK Stata Users Group Meeting Yulia Marchenko (StataCorp) Multiple-imputation analysis using mi

More information

Section E. Measuring the Strength of A Linear Association

Section E. Measuring the Strength of A Linear Association This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike License. Your use of this material constitutes acceptance of that license and the conditions of use of materials on this

More information

Dr. Barbara Morgan Quantitative Methods

Dr. Barbara Morgan Quantitative Methods Dr. Barbara Morgan Quantitative Methods 195.650 Basic Stata This is a brief guide to using the most basic operations in Stata. Stata also has an on-line tutorial. At the initial prompt type tutorial. In

More information

ST512. Fall Quarter, Exam 1. Directions: Answer questions as directed. Please show work. For true/false questions, circle either true or false.

ST512. Fall Quarter, Exam 1. Directions: Answer questions as directed. Please show work. For true/false questions, circle either true or false. ST512 Fall Quarter, 2005 Exam 1 Name: Directions: Answer questions as directed. Please show work. For true/false questions, circle either true or false. 1. (42 points) A random sample of n = 30 NBA basketball

More information

Introduction To Econometrics Stock Watson Solutions 8

Introduction To Econometrics Stock Watson Solutions 8 INTRODUCTION TO ECONOMETRICS STOCK WATSON SOLUTIONS 8 PDF - Are you looking for introduction to econometrics stock watson solutions 8 Books? Now, you will be happy that at this time introduction to econometrics

More information

1. Basic Steps for Data Analysis Data Editor. 2.4.To create a new SPSS file

1. Basic Steps for Data Analysis Data Editor. 2.4.To create a new SPSS file 1 SPSS Guide 2009 Content 1. Basic Steps for Data Analysis. 3 2. Data Editor. 2.4.To create a new SPSS file 3 4 3. Data Analysis/ Frequencies. 5 4. Recoding the variable into classes.. 5 5. Data Analysis/

More information

STATA Tutorial. Introduction to Econometrics. by James H. Stock and Mark W. Watson. to Accompany

STATA Tutorial. Introduction to Econometrics. by James H. Stock and Mark W. Watson. to Accompany STATA Tutorial to Accompany Introduction to Econometrics by James H. Stock and Mark W. Watson STATA Tutorial to accompany Stock/Watson Introduction to Econometrics Copyright 2003 Pearson Education Inc.

More information

Compare Linear Regression Lines for the HP-67

Compare Linear Regression Lines for the HP-67 Compare Linear Regression Lines for the HP-67 by Namir Shammas This article presents an HP-67 program that calculates the linear regression statistics for two data sets and then compares their slopes and

More information

Computing Murphy Topel-corrected variances in a heckprobit model with endogeneity

Computing Murphy Topel-corrected variances in a heckprobit model with endogeneity The Stata Journal (2010) 10, Number 2, pp. 252 258 Computing Murphy Topel-corrected variances in a heckprobit model with endogeneity Juan Muro Department of Statistics, Economic Structure, and International

More information

Bivariate Linear Regression James M. Murray, Ph.D. University of Wisconsin - La Crosse Updated: October 04, 2017

Bivariate Linear Regression James M. Murray, Ph.D. University of Wisconsin - La Crosse Updated: October 04, 2017 Bivariate Linear Regression James M. Murray, Ph.D. University of Wisconsin - La Crosse Updated: October 4, 217 PDF file location: http://www.murraylax.org/rtutorials/regression_intro.pdf HTML file location:

More information

CHAPTER 3 AN OVERVIEW OF DESIGN OF EXPERIMENTS AND RESPONSE SURFACE METHODOLOGY

CHAPTER 3 AN OVERVIEW OF DESIGN OF EXPERIMENTS AND RESPONSE SURFACE METHODOLOGY 23 CHAPTER 3 AN OVERVIEW OF DESIGN OF EXPERIMENTS AND RESPONSE SURFACE METHODOLOGY 3.1 DESIGN OF EXPERIMENTS Design of experiments is a systematic approach for investigation of a system or process. A series

More information

How fixed mobile usage interact? Does FTTH deployment. influence the interaction?

How fixed mobile usage interact? Does FTTH deployment. influence the interaction? How fixed mobile usage interact? Does FTTH deployment influence the interaction? Julienne Liang June 28th 2015 Abstract We estimate the interaction between fixed and mobile usage both for voice and data

More information

Basic Stata Tutorial

Basic Stata Tutorial Basic Stata Tutorial By Brandon Heck Downloading Stata To obtain Stata, select your country of residence and click Go. Then, assuming you are a student, click New Educational then click Students. The capacity

More information

Missing Data Part II: Multiple Imputation Richard Williams, University of Notre Dame, https://www3.nd.edu/~rwilliam/ Last revised January 24, 2015

Missing Data Part II: Multiple Imputation Richard Williams, University of Notre Dame, https://www3.nd.edu/~rwilliam/ Last revised January 24, 2015 Missing Data Part II: Multiple Imputation Richard Williams, University of Notre Dame, https://www3.nd.edu/~rwilliam/ Last revised January 24, 2015 Warning: I teach about Multiple Imputation with some trepidation.

More information

CDAA No. 4 - Part Two - Multiple Regression - Initial Data Screening

CDAA No. 4 - Part Two - Multiple Regression - Initial Data Screening CDAA No. 4 - Part Two - Multiple Regression - Initial Data Screening Variables Entered/Removed b Variables Entered GPA in other high school, test, Math test, GPA, High school math GPA a Variables Removed

More information

Economics "Modern" Data Science

Economics Modern Data Science Economics 217 - "Modern" Data Science Topics covered in this lecture K-nearest neighbors Lasso Decision Trees There is no reading for these lectures. Just notes. However, I have copied a number of online

More information

Centering and Interactions: The Training Data

Centering and Interactions: The Training Data Centering and Interactions: The Training Data A random sample of 150 technical support workers were first given a test of their technical skill and knowledge, and then randomly assigned to one of three

More information

THE UNIVERSITY OF BRITISH COLUMBIA FORESTRY 430 and 533. Time: 50 minutes 40 Marks FRST Marks FRST 533 (extra questions)

THE UNIVERSITY OF BRITISH COLUMBIA FORESTRY 430 and 533. Time: 50 minutes 40 Marks FRST Marks FRST 533 (extra questions) THE UNIVERSITY OF BRITISH COLUMBIA FORESTRY 430 and 533 MIDTERM EXAMINATION: October 14, 2005 Instructor: Val LeMay Time: 50 minutes 40 Marks FRST 430 50 Marks FRST 533 (extra questions) This examination

More information

An Introduction to STATA ECON 330 Econometrics Prof. Lemke

An Introduction to STATA ECON 330 Econometrics Prof. Lemke An Introduction to STATA ECON 330 Econometrics Prof. Lemke 1. GETTING STARTED A requirement of this class is that you become very comfortable with STATA, a leading statistical software package. You were

More information

Page 1. Notes: MB allocated to data 2. Stata running in batch mode. . do 2-simpower-varests.do. . capture log close. .

Page 1. Notes: MB allocated to data 2. Stata running in batch mode. . do 2-simpower-varests.do. . capture log close. . tm / / / / / / / / / / / / 101 Copyright 1984-2009 Statistics/Data Analysis StataCorp 4905 Lakeway Drive College Station, Texas 77845 USA 800-STATA-PC http://wwwstatacom 979-696-4600 stata@statacom 979-696-4601

More information

Tutorial #1: Using Latent GOLD choice to Estimate Discrete Choice Models

Tutorial #1: Using Latent GOLD choice to Estimate Discrete Choice Models Tutorial #1: Using Latent GOLD choice to Estimate Discrete Choice Models In this tutorial, we analyze data from a simple choice-based conjoint (CBC) experiment designed to estimate market shares (choice

More information

Linear Model Selection and Regularization. especially usefull in high dimensions p>>100.

Linear Model Selection and Regularization. especially usefull in high dimensions p>>100. Linear Model Selection and Regularization especially usefull in high dimensions p>>100. 1 Why Linear Model Regularization? Linear models are simple, BUT consider p>>n, we have more features than data records

More information

PDQ-Notes. Reynolds Farley. PDQ-Note 3 Displaying Your Results in the Expert Query Window

PDQ-Notes. Reynolds Farley. PDQ-Note 3 Displaying Your Results in the Expert Query Window PDQ-Notes Reynolds Farley PDQ-Note 3 Displaying Your Results in the Expert Query Window PDQ-Note 3 Displaying Your Results in the Expert Query Window Most of your options for configuring your query results

More information

HCM 8.9 Business Process Guide Enter Applicant Information. (Internal Applicant) Last Revised: 01/29/08, 04/04/2011 DRAFT

HCM 8.9 Business Process Guide Enter Applicant Information. (Internal Applicant) Last Revised: 01/29/08, 04/04/2011 DRAFT HCM 8.9 Business Process Guide Enter Applicant Information (Internal Applicant) Last Revised: 01/29/08, 04/04/2011 Table of Contents My Profile... 1 Apply Through Self-Service... 2 Page Careers... 2 Resume

More information

Department of Economics Spring 2018 University of California Economics 154 Professor Martha Olney Stata Lesson Thursday February 15, 2018

Department of Economics Spring 2018 University of California Economics 154 Professor Martha Olney Stata Lesson Thursday February 15, 2018 University of California Economics 154 Berkeley Professor Martha Olney Stata Lesson Thursday February 15, 2018 [1] Where to find the data sets http://www.econ.berkeley.edu/~olney/spring18/econ154 There

More information

Model-Based Regression Trees in Economics and the Social Sciences

Model-Based Regression Trees in Economics and the Social Sciences Model-Based Regression Trees in Economics and the Social Sciences Achim Zeileis http://statmath.wu.ac.at/~zeileis/ Overview Motivation: Trees and leaves Methodology Model estimation Tests for parameter

More information

Appendix II: STATA Preliminary

Appendix II: STATA Preliminary Appendix II: STATA Preliminary STATA is a statistical software package that offers a large number of statistical and econometric estimation procedures. With STATA we can easily manage data and apply standard

More information

2013 Local Arts Agency Salary & Benefits Summary EXECUTIVE DIRECTOR / PRESIDENT / CEO

2013 Local Arts Agency Salary & Benefits Summary EXECUTIVE DIRECTOR / PRESIDENT / CEO Local Arts Agency Salary & Benefits Summary EXECUTIVE DIRECTOR / PRESIDENT / CEO PRIVATE LAAS ONLY PUBLIC LAAS ONLY The Executive Director / President / Chief Executive Officer (CEO) is the chief staff

More information

Appendix II: STATA Preliminary

Appendix II: STATA Preliminary Appendix II: STATA Preliminary STATA is a statistical software package that offers a large number of statistical and econometric estimation procedures. With STATA we can easily manage data and apply standard

More information

NCSS Statistical Software. Robust Regression

NCSS Statistical Software. Robust Regression Chapter 308 Introduction Multiple regression analysis is documented in Chapter 305 Multiple Regression, so that information will not be repeated here. Refer to that chapter for in depth coverage of multiple

More information

8: Statistics. Populations and Samples. Histograms and Frequency Polygons. Page 1 of 10

8: Statistics. Populations and Samples. Histograms and Frequency Polygons. Page 1 of 10 8: Statistics Statistics: Method of collecting, organizing, analyzing, and interpreting data, as well as drawing conclusions based on the data. Methodology is divided into two main areas. Descriptive Statistics:

More information

INTRODUCTION TO SPSS OUTLINE 6/17/2013. Assoc. Prof. Dr. Md. Mujibur Rahman Room No. BN Phone:

INTRODUCTION TO SPSS OUTLINE 6/17/2013. Assoc. Prof. Dr. Md. Mujibur Rahman Room No. BN Phone: INTRODUCTION TO SPSS Assoc. Prof. Dr. Md. Mujibur Rahman Room No. BN-0-024 Phone: 89287269 E-mail: mujibur@uniten.edu.my OUTLINE About the four-windows in SPSS The basics of managing data files The basic

More information

Computer Support Technician

Computer Support Technician Computer Support Technician Inland Empire/Desert Region (Riverside-San Bernardino-Ontario Metropolitan Statistical Area) Summary Employment for computer support technician occupational group is expected

More information

Introduction to Stata - Session 2

Introduction to Stata - Session 2 Introduction to Stata - Session 2 Siv-Elisabeth Skjelbred ECON 3150/4150, UiO January 26, 2016 1 / 29 Before we start Download auto.dta, auto.csv from course home page and save to your stata course folder.

More information