Académique Documents
Professionnel Documents
Culture Documents
ECON2206/ECON3209
Slides01
ie_Slides01
Staff
Lecturer: Minxian Yang
Tutors: Jessica Moses, Jakree Koosakul, Bo Ye
Required textbook
Wooldridge, J.M. (2009), Introductory Econometrics:
A Modern Approach, 4th Edition, South-Western
Assessment
Two tutorial assignments (weeks 5 & 12): 20%
One course project (week 9): 20%
Final exam: 60%
Econometric software
STATA recommended
Available in ASB labs, Lab 2 (Q1035) Mon 12-16.
Course resources
Course website: announcements, course outline,
lecture slides, tutorial questions/answers,
assignments, course project, data, STATA code,
Library (open reserve)
ie_Slides01
1. Introduction (Ch1)
1. Introduction
What is econometrics?
It covers the statistical methods useful for
ie_Slides01
education on wages;
minimum wages on unemployment;
govt policies on inflation and growth;
school spending on student performance; etc.
my, School of Economics, UNSW
1. Introduction (Ch1)
What is econometrics?
Differing from statistics used in physical sciences, it
deals with non-experimental data.
Data are typically not from controlled experiments.
Ideal laboratories are not available in social sciences.
eg.
ie_Slides01
1. Introduction (Ch1)
1. Introduction (Ch1)
1. Introduction (Ch1)
ie_Slides01
1. Introduction (Ch1)
Data structures
Empirical analysis requires data.
Different data structures may require different
econometric methods.
It is important to understand data structures.
There are 4 major data structures
ie_Slides01
Cross-sectional data,
time series data,
pooled cross sections,
panel (or longitudinal) data.
10
1. Introduction (Ch1)
Data structures
Cross-sectional data
The observations of variables are collected at the same
point in time.
minor timing differences usually ignored
ie_Slides01
11
1. Introduction (Ch1)
Data structures
Cross-sectional data
eg. WAGE1.RAW (variables in columns)
ie_Slides01
12
1. Introduction (Ch1)
Data structures
Time series data
The observations on variables are collected over time.
eg. stock prices, inflation, gdp, ...
The chronological ordering of observations is important.
economic variables (eg. inflation) tend to be related to
their recent histories.
dependence in observations needs to be accounted for
in econometric models.
ie_Slides01
13
1. Introduction (Ch1)
Data structures
Time series data
eg. Minimum wage: data stored in chronological order.
year: observation year
avgmin: average minimum wage
avgcov: average coverage
(% workers covered
by minimum-wage law)
unemp:
unemployment rate
gnp:
gross national product
ie_Slides01
14
1. Introduction (Ch1)
Data structures
Pooled cross sections
Two or more sets of cross-sectional data at different
points in time, with same variables but different units.
eg. two cross-sectional family surveys in Australia:
one in 2000: recording income, expenditures, size, ...;
one in 2005: same questions;
families in 2005 survey may differ from those in 2000.
15
1. Introduction (Ch1)
Data structures
Pooled cross sections
An effective way to analyse government policies by
looking at economic relationships before and after the
introduction of a policy.
eg. house prices in
1993 and 1995:
before and after
a reduction in
property taxes in 1994.
year is important here.
ie_Slides01
16
1. Introduction (Ch1)
Data structures
Panel (longitudinal) data
The observations follow the same units (individuals,
families, firms, ...) over time.
a times series for each cross-sectional unit.
17
1. Introduction (Ch1)
Data structures
Panel (longitudinal) data
eg. crime in 150 US cities:
1986 and 1990.
Data are stored by
city and year.
18
1. Introduction (Ch1)
19
Open Do-Editor
ie_Slides01
Data Browser
20
1. Introduction (Ch1)
Notes on STATA
A do-file (ie, .do file) contains a collection of STATA
commands for specific tasks.
Commands are separated by semincolon.
A do-file may be created, modified and saved by using the
Do-File Editor.
Once a do-file is run, the results or error messages show
up in the Results window (or log file).
The output must be carefully checked for errors.
If any errors, the do-file must be corrected and re-run.
Blackboard: data in Data Files folder , do-files in STATA
Files folder.
See A Guide for Using STATA in Tutorial folder
ie_Slides01
21
1. Introduction (Ch1)
Some useful STATA commands
/* and */ : whatever comments between /* and */ are ignored by STATA
// : whatever after // are ignored (not for 2 or more lines of comments)
#delimit; : commands should be separated by semicolon (;)
version 9 : compatible with Stata Version 9
clear : clear things from previous runs (clear all in version 11)
capture log close : close possibly open log file
cd : define working folder (cd means change directory)
log using xxx : save output in the file xxx.smcl
infile v1 v2 using vvv.raw : read v1 v2 from data file vvv.raw
summarize : produce descriptive statistics
graph twoway (scatter y x) : produce scatter plot y versus x
histogram y : produce histogram of y
regress y x : regressing y on x (OLS)
exit : stop execution
ie_Slides01
22
1. Introduction (Ch1)
ie_Slides01
23
1. Introduction (Ch1)
24
1. Introduction (Ch1)
Feasible experiment:
Choose many plots of land;
Apply various amounts of fertiliser to the plots randomly
(the amounts applied are independent of land characteristics);
Measure the yields and find the ceteris paribus effect of
fertiliser statistically.
25
1. Introduction (Ch1)
26
1. Introduction (Ch1)
ie_Slides01
27
1. Introduction (Ch1)
A summary
Meaning of econometrics
Meaning of empirical economic analysis
Four major data structures
Work with STATA
Causal effect and ceteris paribus
ie_Slides01
28