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

18,094

Version

1.4-4

License

GPL-3

Maintainer

Justin Shea

Last Published

December 4th, 2024

Functions in wooldridge (1.4-4)

barium

barium
beveridge

beveridge
catholic

catholic
bwght

bwght
card

card
benefits

benefits
bwght2

bwght2
beauty

beauty
big9salary

big9salary
campus

campus
cement

cement
census2000

census2000
corn

corn
ceosal2

ceosal2
ceosal1

ceosal1
charity

charity
consump

consump
cps91

cps91
crime2

crime2
cps78_85

cps78_85
crime1

crime1
econmath

econmath
earns

earns
driving

driving
fair

fair
fertil2

fertil2
discrim

discrim
ezunem

ezunem
countymurders

countymurders
expendshares

expendshares
crime3

crime3
crime4

crime4
fertil1

fertil1
gpa1

gpa1
fringe

fringe
elem94_95

elem94_95
happiness

happiness
infmrt

infmrt
injury

injury
ezanders

ezanders
hprice2

hprice2
jtrain98

jtrain98
k401k

k401k
hseinv

hseinv
fertil3

fertil3
k401ksubs

k401ksubs
engin

engin
htv

htv
fish

fish
kielmc

kielmc
hprice1

hprice1
jtrain2

jtrain2
gpa2

gpa2
jtrain

jtrain
meapsingle

meapsingle
minwage

minwage
lawsch85

lawsch85
hprice3

hprice3
gpa3

gpa3
inven

inven
labsup

labsup
intqrt

intqrt
loanapp

loanapp
intdef

intdef
meap01

meap01
meap00_01

meap00_01
lowbrth

lowbrth
phillips

phillips
okun

okun
ncaa_rpi

ncaa_rpi
prminwge

prminwge
murder

murder
meap93

meap93
nyse

nyse
rdchem

rdchem
pension

pension
mathpnl

mathpnl
school93_98

school93_98
jtrain3

jtrain3
mlb1

mlb1
saving

saving
openness

openness
rental

rental
mroz

mroz
sleep75

sleep75
pntsprd

pntsprd
traffic2

traffic2
prison

prison
vote2

vote2
nbasal

nbasal
voucher

voucher
twoyear

twoyear
wage1

wage1
slp75_81

slp75_81
wine

wine
volat

volat
vote1

vote1
recid

recid
rdtelec

rdtelec
smoke

smoke
return

return
wage2

wage2
traffic1

traffic1
wagepan

wagepan
wageprc

wageprc
audit

audit
apple

apple
affairs

affairs
airfare

airfare
admnrev

admnrev
athlet1

athlet1
attend

attend
alcohol

alcohol
athlet2

athlet2
approval

approval