Learn R Programming

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

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 Hess.

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

9,998

Version

1.4-2

License

GPL-3

Maintainer

Justin Shea

Last Published

November 8th, 2021

Functions in wooldridge (1.4-2)

approval

approval
affairs

affairs
airfare

airfare
alcohol

alcohol
admnrev

admnrev
audit

audit
attend

attend
athlet2

athlet2
athlet1

athlet1
apple

apple
barium

barium
bwght

bwght
big9salary

big9salary
beauty

beauty
campus

campus
corn

corn
bwght2

bwght2
countymurders

countymurders
ceosal2

ceosal2
ceosal1

ceosal1
benefits

benefits
beveridge

beveridge
cps78_85

cps78_85
crime3

crime3
card

card
cps91

cps91
catholic

catholic
engin

engin
elem94_95

elem94_95
crime4

crime4
ezunem

ezunem
fair

fair
injury

injury
infmrt

infmrt
earns

earns
cement

cement
hseinv

hseinv
fertil1

fertil1
census2000

census2000
econmath

econmath
fertil2

fertil2
fertil3

fertil3
jtrain2

jtrain2
jtrain3

jtrain3
htv

htv
fish

fish
gpa2

gpa2
meap00_01

meap00_01
mathpnl

mathpnl
expendshares

expendshares
crime1

crime1
inven

inven
labsup

labsup
crime2

crime2
hprice2

hprice2
ezanders

ezanders
mlb1

mlb1
lawsch85

lawsch85
jtrain

jtrain
okun

okun
charity

charity
gpa3

gpa3
saving

saving
openness

openness
rental

rental
k401ksubs

k401ksubs
mroz

mroz
hprice3

hprice3
jtrain98

jtrain98
meap01

meap01
k401k

k401k
nyse

nyse
meap93

meap93
ncaa_rpi

ncaa_rpi
consump

consump
return

return
meapsingle

meapsingle
rdtelec

rdtelec
recid

recid
kielmc

kielmc
volat

volat
discrim

discrim
pension

pension
minwage

minwage
twoyear

twoyear
traffic2

traffic2
vote1

vote1
smoke

smoke
traffic1

traffic1
school93_98

school93_98
wagepan

wagepan
phillips

phillips
wageprc

wageprc
happiness

happiness
fringe

fringe
driving

driving
gpa1

gpa1
voucher

voucher
prminwge

prminwge
vote2

vote2
rdchem

rdchem
wine

wine
loanapp

loanapp
intqrt

intqrt
intdef

intdef
lowbrth

lowbrth
hprice1

hprice1
murder

murder
pntsprd

pntsprd
prison

prison
nbasal

nbasal
sleep75

sleep75
wage1

wage1
wage2

wage2
slp75_81

slp75_81