Learn R Programming

⚠️There's a newer version (1.4-4) of this package.Take me there.

wooldridge: 111 Data Sets for Econometrics

Economics students new to both econometrics and R may find the introduction to both challenging. However, if their text is "Introductory Econometrics: A Modern Approach, 6e" by Jeffrey M. Wooldridge, they are in luck!

The wooldridge data package aims to lighten the task by easily loading any data set from the text. The package contains full documentation for every data set and all data have been compressed to a fraction of their original size. Just install the package, load it, and call the data you wish to work with.

But wait...there's more! A vignette, Introductory Econometrics Examples:sparkles:, illustrates solutions to examples from each chapter of the text, offering a relevant introduction to econometric modelling with R. The vignette also includes an Appendix of helpful resources, such as Using R for Introductory Econometrics by Florian Hess.

While the original course companion site provides publicly available data sets for Eviews, Excel, and Stata commercial software, this package is the official R open source option. Using R while building a foundation in econometric modeling, not only saves learners a few units of currency, but also introduces them to software capable of scaling with the demands of modern statistical computing.

Note: All data sets are from the 6th edition (Wooldridge 2016, ISBN-13: 978-1-305-27010-7), which is compatible with all other editions.

Installation

Install wooldridge v1.3 directly from The Comprehensive R Archive Network (CRAN). The package contains all data sets from the 6th edition and depends on R >= 3.0.0.

install.packages("wooldridge")

Example

Load the wooldridge package and use the data() function to bring the desired data set into the working environment. Data set names match those in the text. Once present in the working environment, modelling data is quick and easy, leaving learners with more time to focus on interpretation.

library(wooldridge)

data("wage1")

lm(lwage ~ educ + exper + tenure, data = wage1)

Documentation

It's always recommended that one read supporting documentation for data sets of interest. This becomes trivially easy with the wooldridge package:

?wage1

Documentation includes variable column names, original source of data, and page number(s) where data appear in the text.

Copy Link

Version

Install

install.packages('wooldridge')

Monthly Downloads

24,091

Version

1.3.1

License

GPL-3

Maintainer

Justin Shea

Last Published

October 10th, 2018

Functions in wooldridge (1.3.1)

benefits

benefits
big9salary

big9salary
card

card
catholic

catholic
crime4

crime4
crime3

crime3
gpa1

gpa1
fringe

fringe
corn

corn
beveridge

beveridge
countymurders

countymurders
bwght

bwght
ceosal1

ceosal1
ceosal2

ceosal2
discrim

discrim
fertil1

fertil1
fertil2

fertil2
driving

driving
hseinv

hseinv
cement

cement
htv

htv
bwght2

bwght2
approval

approval
inven

inven
k401ksubs

k401ksubs
k401k

k401k
cps78_85

cps78_85
campus

campus
census2000

census2000
cps91

cps91
meap01

meap01
jtrain

jtrain
meap93

meap93
elem94_95

elem94_95
crime1

crime1
fair

fair
ezunem

ezunem
gpa2

gpa2
murder

murder
barium

barium
beauty

beauty
phillips

phillips
crime2

crime2
nbasal

nbasal
gpa3

gpa3
sleep75

sleep75
kielmc

kielmc
lawsch85

lawsch85
engin

engin
meapsingle

meapsingle
fertil3

fertil3
charity

charity
happiness

happiness
minwage

minwage
fish

fish
openness

openness
infmrt

infmrt
pntsprd

pntsprd
pension

pension
rental

rental
recid

recid
slp75_81

slp75_81
volat

volat
injury

injury
smoke

smoke
consump

consump
traffic1

traffic1
vote1

vote1
hprice1

hprice1
wine

wine
jtrain2

jtrain2
intdef

intdef
traffic2

traffic2
earns

earns
jtrain3

jtrain3
loanapp

loanapp
intqrt

intqrt
mlb1

mlb1
lowbrth

lowbrth
econmath

econmath
expendshares

expendshares
prison

prison
mroz

mroz
ezanders

ezanders
hprice2

hprice2
twoyear

twoyear
hprice3

hprice3
prminwge

prminwge
mathpnl

mathpnl
wagepan

wagepan
rdchem

rdchem
wageprc

wageprc
meap00_01

meap00_01
nyse

nyse
rdtelec

rdtelec
vote2

vote2
okun

okun
saving

saving
return

return
voucher

voucher
wage1

wage1
wage2

wage2
airfare

airfare
audit

audit
attend

attend
alcohol

alcohol
athlet2

athlet2
affairs

affairs
admnrev

admnrev
athlet1

athlet1
apple

apple