Learn R Programming

wooldridge: 115 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, 7e" by Jeffrey M. Wooldridge, they are in luck!

The wooldridge package aims to lighten the task by easily loading any data set from the text. The package contains full documentation for each 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 R resources, such as Using R for Introductory Econometrics by Florian Heiss.

Note: All data sets are from the 7th edition (Wooldridge 2020, ISBN-13: 978-1-337-55886-0), which is compatible with all other editions.

Installation

One can Install wooldridge directly from Github or The Comprehensive R Archive Network (CRAN). Recent additions to the data set has bumped the dependency up to R >= 3.5.0.

# 7th edition on CRAN
install.packages("wooldridge")
# 7th edition
remotes::install_github("JustinMShea/wooldridge")

Documentation

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

?wage1

Documentation includes Wooldridge's original source, variable descriptions, as well as page numbers in the referenced text. Some sets even contain additional notes suggesting related research projects or exploration.

Example

Load the wooldridge package and use the data() function to load the desired data set. Data set names match those in the text. Once loaded into the working environment, modeling data is quick and easy, leaving learners with more time to focus on interpretation of results and general diagnostics.

library(wooldridge)

data("wage1")

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

summary(wageModel)

Copy Link

Version

Install

install.packages('wooldridge')

Monthly Downloads

12,032

Version

1.4-7

License

GPL-3

Maintainer

Justin M. Shea

Last Published

July 12th, 2026

Functions in wooldridge (1.4-7)

cps78_85

cps78_85
charity

charity
earns

earns
crime2

crime2
crime1

crime1
econmath

econmath
consump

consump
ceosal2

ceosal2
ceosal1

ceosal1
fertil1

fertil1
fertil2

fertil2
engin

engin
gpa1

gpa1
elem94_95

elem94_95
fringe

fringe
expendshares

expendshares
hprice2

hprice2
cps91

cps91
hprice3

hprice3
ezanders

ezanders
jtrain98

jtrain98
intdef

intdef
k401k

k401k
corn

corn
happiness

happiness
hprice1

hprice1
hseinv

hseinv
crime3

crime3
census2000

census2000
beauty

beauty
cement

cement
driving

driving
fair

fair
ezunem

ezunem
discrim

discrim
countymurders

countymurders
mathpnl

mathpnl
gpa2

gpa2
mlb1

mlb1
meap93

meap93
meap01

meap01
intqrt

intqrt
inven

inven
htv

htv
murder

murder
meap00_01

meap00_01
mroz

mroz
jtrain2

jtrain2
meapsingle

meapsingle
nyse

nyse
fish

fish
injury

injury
jtrain3

jtrain3
k401ksubs

k401ksubs
fertil3

fertil3
ncaa_rpi

ncaa_rpi
gpa3

gpa3
infmrt

infmrt
prison

prison
crime4

crime4
saving

saving
nbasal

nbasal
pntsprd

pntsprd
jtrain

jtrain
minwage

minwage
vote1

vote1
volat

volat
school93_98

school93_98
traffic2

traffic2
phillips

phillips
rental

rental
twoyear

twoyear
labsup

labsup
pension

pension
rdtelec

rdtelec
kielmc

kielmc
recid

recid
lawsch85

lawsch85
return

return
okun

okun
rdchem

rdchem
prminwge

prminwge
openness

openness
lowbrth

lowbrth
loanapp

loanapp
smoke

smoke
voucher

voucher
vote2

vote2
wage1

wage1
wage2

wage2
traffic1

traffic1
slp75_81

slp75_81
wine

wine
sleep75

sleep75
wageprc

wageprc
wagepan

wagepan
attend

attend
athlet1

athlet1
airfare

airfare
bwght

bwght
audit

audit
affairs

affairs
admnrev

admnrev
apple

apple
barium

barium
benefits

benefits
big9salary

big9salary
athlet2

athlet2
campus

campus
bwght2

bwght2
approval

approval
alcohol

alcohol
catholic

catholic
beveridge

beveridge
card

card