STATA Introductory manual. QUIZ What are the main OLS assumptions? 1.On average right 2.Linear 3.Predicting variables and error term uncorrelated 4.No.

Slides:



Advertisements
Similar presentations
Agenda of Week VII Review of Week VI Multiple regression Canonical correlation.
Advertisements

ASSUMPTION CHECKING In regression analysis with Stata
Forecasting Using the Simple Linear Regression Model and Correlation
Chapter 11 Autocorrelation.
Regression Analysis Notes. What is a simple linear relation? When one variable is associated with another variable in such a way that two numbers completely.
LINEAR REGRESSION: Evaluating Regression Models Overview Assumptions for Linear Regression Evaluating a Regression Model.
LINEAR REGRESSION: Evaluating Regression Models. Overview Assumptions for Linear Regression Evaluating a Regression Model.
LINEAR REGRESSION: What it Is and How it Works. Overview What is Bivariate Linear Regression? The Regression Equation How It’s Based on r Assumptions.
Chapter 13 Additional Topics in Regression Analysis
1 MADE STATA Introductory manual. 2 MADE QUIZ What are the main OLS assumptions? 1.On average right 2.Linear 3.Predicting variables and error term uncorrelated.
REGRESSION What is Regression? What is the Regression Equation? What is the Least-Squares Solution? How is Regression Based on Correlation? What are the.
1 MADE STATA Introductory manual. 2 MADE QUIZ (for the last time) What are the main OLS assumptions? 1.On average right 2.Linear 3.Predicting variables.
REGRESSION MODEL ASSUMPTIONS. The Regression Model We have hypothesized that: y =  0 +  1 x +  | | + | | So far we focused on the regression part –
Chapter Topics Types of Regression Models
Irwin/McGraw-Hill © The McGraw-Hill Companies, Inc., 2000 LIND MASON MARCHAL 1-1 Chapter Twelve Multiple Regression and Correlation Analysis GOALS When.
Lecture 20 Simple linear regression (18.6, 18.9)
Regression Diagnostics - I
© 2000 Prentice-Hall, Inc. Chap Forecasting Using the Simple Linear Regression Model and Correlation.
Pertemua 19 Regresi Linier
Diagnostics - Choice. Model Diagnostics 1.Explains data well –R-Squared, and adjusted R-Squared 2.Residuals follow a white noise, as specified in the.
Statistics 350 Lecture 17. Today Last Day: Introduction to Multiple Linear Regression Model Today: More Chapter 6.
Business Statistics - QBM117 Statistical inference for regression.
Finding help. Stata manuals You have all these as pdf! Check the folder /Stata12/docs.
1 MADE WHAT IF SOME OLS ASSUMPTIONS ARE NOT FULFILED?
Econometric Analysis Using Stata
1 Least squares procedure Inference for least squares lines Simple Linear Regression.
OPIM 303-Lecture #8 Jose M. Cruz Assistant Professor.
Dealing with data All variables ok? / getting acquainted Base model Final model(s) Assumption checking on final model(s) Conclusion(s) / Inference Better.
MTH 161: Introduction To Statistics
Applied Quantitative Analysis and Practices LECTURE#23 By Dr. Osman Sadiq Paracha.
Statistical Methods Statistical Methods Descriptive Inferential
Chap 14-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 14 Additional Topics in Regression Analysis Statistics for Business.
OLS SHORTCOMINGS Preview of coming attractions. QUIZ What are the main OLS assumptions? 1.On average right 2.Linear 3.Predicting variables and error term.
1Spring 02 Problems in Regression Analysis Heteroscedasticity Violation of the constancy of the variance of the errors. Cross-sectional data Serial Correlation.
© Buddy Freeman, Independence of error assumption. In many business applications using regression, the independent variable is TIME. When the data.
REGRESSION DIAGNOSTICS Fall 2013 Dec 12/13. WHY REGRESSION DIAGNOSTICS? The validity of a regression model is based on a set of assumptions. Violation.
Week 7Review SessionSlide #1 Review Regression Model Assumptions Calculus –Derivation, critical points (Excel, plots, etc.) –Deriving OLS estimators (b.
Assumption checking in “normal” multiple regression with Stata.
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Model Building and Model Diagnostics Chapter 15.
STAT 497 LECTURE NOTE 9 DIAGNOSTIC CHECKS 1. After identifying and estimating a time series model, the goodness-of-fit of the model and validity of the.
Robust Regression. Regression Methods  We are going to look at three approaches to robust regression:  Regression with robust standard errors  Regression.
1 Regression Review Population Vs. Sample Regression Line Residual and Standard Error of Regression Interpretation of intercept & slope T-test, F-test.
© 2011 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license.
Metrics Lab Econometric Problems Lab. Import the Macro data from Excel and use first row as variable names Time set the year variable by typing “tsset.
Forecasting. Model with indicator variables The choice of a forecasting technique depends on the components identified in the time series. The techniques.
Regression Overview. Definition The simple linear regression model is given by the linear equation where is the y-intercept for the population data, is.
Ch5 Relaxing the Assumptions of the Classical Model
Covariance/ Correlation
Inference for Least Squares Lines
REGRESSION DIAGNOSTIC III: AUTOCORRELATION
Statistics for Managers using Microsoft Excel 3rd Edition
Kakhramon Yusupov June 15th, :30pm – 3:00pm Session 3
Econometric methods of analysis and forecasting of financial markets
Chapter 12: Regression Diagnostics
Covariance/ Correlation
Covariance/ Correlation
BIVARIATE REGRESSION AND CORRELATION
STAT 497 LECTURE NOTE 9 DIAGNOSTIC CHECKS.
Simple Linear Regression
Multiple Regression A curvilinear relationship between one variable and the values of two or more other independent variables. Y = intercept + (slope1.
6-1 Introduction To Empirical Models
Chapter 17 – Simple Linear Regression and Correlation
Regression is the Most Used and Most Abused Technique in Statistics
Homoscedasticity/ Heteroscedasticity In Brief
Covariance/ Correlation
Regression Assumptions
Homoscedasticity/ Heteroscedasticity In Brief
Chapter 13 Additional Topics in Regression Analysis
Cases. Simple Regression Linear Multiple Regression.
Regression Assumptions
Presentation transcript:

STATA Introductory manual

QUIZ What are the main OLS assumptions? 1.On average right 2.Linear 3.Predicting variables and error term uncorrelated 4.No serial correlation in error term 5.Homoscedasticity + Normality of error term

QUIZ Do we know the error term? Do we know the coefficients? How can we know whether all the assumptions are fulfilled 1.On average right => ??? 2.Linearity => ??? 3.X and ε uncorrelated => ??? 4.ε serially uncorrelated => ??? 5.ε homoscedastic => ???

STATA as calculator Multiplication and other simple operations –display (7*(6+5)/4)^(-0.3) Statistical calculations –display norm(1.96) Generating variables –gen t=year-1967 Etc...

STATA for matrices Writing down matrix –matrix X=(1,4\1,-2\1,3\1,-5) Reading a matrix (you have to know its name) –matrix list X Learning what matrices there are –matrix dir Multiplications –matrix XX=X’*X –matrix IXX=inv(XX) Etc...

Getting data to STATA How to get data to STATA? –From Excel [Copy&Paste, remember „commas”] –Manually [if one has the time... ] –From other sources [import function] How to know what it is? –Describe [read the texts] –summarize [statistical properties] Learning more about your data set –correlate x1 y [just to see how it works] –histogram x1 [graphing is easier from the menu] –scatter x1 y [as above ]

Regression with STATA How to do regression? –regress y x –regress y x, nocons and that’s it

Diagnostics with STATA Normality of the residual –predict e, residual [directly after regress] –sktest e [Jarque-Bery test] RESET test –ovtest, rhs

Diagnostics with STATA Heteroscedasticity –hettest, rhs [Breush-Pagan test] –imtest, white [White test] Autocorrelation –tsset t –dwstat [Durbin-Watson test] –bgodfrey, lags(1 2 3) [Breush-Godfrey test]

Diagnostics with STATA Structural stability [Chow] –gen d=0 –gen dx1=0 –gen dx2=0 –gen dx3=0 –replace d=1 if t>50 –replace dx1=x1 if t>50 –replace dx2=x2 if t>50 –replace dx3=x3 if t>50 –reg y x1 x2 x3 d dx1 dx2 dx3 –test (d=0) (dx1=0) (dx2=0) (dx3=0)