Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

⚠️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 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

16,858

Version

1.4-3

License

GPL-3

Maintainer

Justin Shea

Last Published

May 3rd, 2023

Functions in wooldridge (1.4-3)

approval

approval
alcohol

alcohol
audit

audit
attend

attend
airfare

airfare
admnrev

admnrev
affairs

affairs
catholic

catholic
card

card
campus

campus
bwght

bwght
barium

barium
beveridge

beveridge
benefits

benefits
big9salary

big9salary
bwght2

bwght2
beauty

beauty
cps78_85

cps78_85
cement

cement
cps91

cps91
charity

charity
consump

consump
census2000

census2000
crime1

crime1
discrim

discrim
ceosal1

ceosal1
earns

earns
ceosal2

ceosal2
driving

driving
elem94_95

elem94_95
engin

engin
econmath

econmath
crime3

crime3
crime4

crime4
corn

corn
fair

fair
ezunem

ezunem
countymurders

countymurders
expendshares

expendshares
ezanders

ezanders
happiness

happiness
hprice1

hprice1
fertil1

fertil1
fertil2

fertil2
fringe

fringe
gpa1

gpa1
hseinv

hseinv
htv

htv
gpa2

gpa2
crime2

crime2
fertil3

fertil3
hprice3

hprice3
fish

fish
hprice2

hprice2
jtrain98

jtrain98
gpa3

gpa3
k401k

k401k
inven

inven
jtrain

jtrain
k401ksubs

k401ksubs
jtrain2

jtrain2
infmrt

infmrt
injury

injury
jtrain3

jtrain3
kielmc

kielmc
intdef

intdef
intqrt

intqrt
lowbrth

lowbrth
minwage

minwage
lawsch85

lawsch85
meapsingle

meapsingle
meap00_01

meap00_01
loanapp

loanapp
mathpnl

mathpnl
labsup

labsup
meap01

meap01
meap93

meap93
nbasal

nbasal
ncaa_rpi

ncaa_rpi
nyse

nyse
mlb1

mlb1
phillips

phillips
pension

pension
openness

openness
rental

rental
saving

saving
recid

recid
okun

okun
murder

murder
rdtelec

rdtelec
mroz

mroz
return

return
slp75_81

slp75_81
school93_98

school93_98
traffic2

traffic2
pntsprd

pntsprd
smoke

smoke
traffic1

traffic1
prison

prison
twoyear

twoyear
voucher

voucher
prminwge

prminwge
wagepan

wagepan
sleep75

sleep75
rdchem

rdchem
vote2

vote2
wageprc

wageprc
volat

volat
wage1

wage1
vote1

vote1
wage2

wage2
wine

wine
apple

apple
athlet1

athlet1
athlet2

athlet2