Learn R Programming

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

wooldridge

Economics students new to both econometrics and R may find the simultaneous introduction to both a bit challenging. However, if your text is "Introductory Econometrics: A Modern Approach" by Jeffrey M. Wooldridge, then you are in luck!

The wooldridge data package aims to lighten the task by loading any data set from the text through a single command. The package contains documentation for each set and all data has been compressed to 62.73% of its original size. Just install the package, load it, and use the data() function to call the data set you need to work with.

But wait...there's more! Act now and you will receive the wooldridge-vignette!:sparkles: The vignette 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 to helpful resources, such as Using R for Introductory Econometrics by Florian Hess.

While the course companion site also provides publicly available data sets for Eviews, Excel, MiniTab, and Stata commercial software, R is the open source option. Furthermore, using R while building a foundation in econometrics, can become the first step in a student's longer journey toward using the most innovative new methods in statistical computing for handling larger, more modern data sets.

Note: All data sets are from the 5th edition (Wooldridge 2013, ISBN-13: 978-1-111-53104-1), which is compatible with most other editions.

Installation

Install directly from CRAN, which depends on R version >= 3.4.0.

install.packages("wooldridge")

For developer version (with dependencies relaxed to R version >= 3.1.0), install from GitHub.

devtools::install_github("JustinMShea/wooldridge")

Note: the vignette may fail to build with older versions of R, knitr, and devtools. However, you can download that here and the data will still be accessible.

devtools::install_github("JustinMShea/wooldridge", build_vignettes = TRUE)

Example

Load the wooldridge package and use the data() function to load the desired data set. Data set names match those in the text.

library(wooldridge)

data("jtrain")

View the jtrain data set

View(jtrain)

Check out the documentation on jtrain, including variable column names and what they are.

?jtrain

In addition, load the wooldridge-vignette for a recreation of examples from the text.

 vignette("wooldridge-vignette")

Copy Link

Version

Install

install.packages('wooldridge')

Monthly Downloads

18,884

Version

1.1.0

License

GPL-3

Maintainer

Justin Shea

Last Published

August 29th, 2017

Functions in wooldridge (1.1.0)

airfare

airfare
alcohol

alcohol
athlet2

athlet2
attend

attend
apple

apple
athlet1

athlet1
`401k`

`401k`
`401ksubs`

`401ksubs`
admnrev

admnrev
affairs

affairs
beveridge

beveridge
big9salary

big9salary
audit

audit
barium

barium
cps78_85

cps78_85
crime1

crime1
crime2

crime2
crime3

crime3
cps91

cps91
earns

earns
elem94_95

elem94_95
bwght

bwght
bwght2

bwght2
consump

consump
corn

corn
fertil2

fertil2
fertil3

fertil3
hprice3

hprice3
discrim

discrim
driving

driving
gpa1

gpa1
gpa2

gpa2
injury

injury
beauty

beauty
benefits

benefits
cement

cement
engin

engin
crime4

crime4
fish

fish
fringe

fringe
intqrt

intqrt
inven

inven
hseinv

hseinv
lowbrth

lowbrth
mathpnl

mathpnl
ceosal1

ceosal1
intdef

intdef
jtrain3

jtrain3
kielmc

kielmc
nyse

nyse
jtrain

jtrain
jtrain2

jtrain2
mlb1

mlb1
okun

okun
phillips

phillips
pntsprd

pntsprd
campus

campus
card

card
ceosal2

ceosal2
charity

charity
ezanders

ezanders
mroz

mroz
return

return
saving

saving
vote2

vote2
voucher

voucher
expendshares

expendshares
gpa3

gpa3
happiness

happiness
htv

htv
infmrt

infmrt
murder

murder
nbasal

nbasal
prison

prison
meap00_01

meap00_01
meap01

meap01
meap93

meap93
minwage

minwage
rdchem

rdchem
wagepan

wagepan
wageprc

wageprc
ezunem

ezunem
fair

fair
fertil1

fertil1
prminwge

prminwge
smoke

smoke
traffic1

traffic1
rdtelec

rdtelec
volat

volat
vote1

vote1
wine

wine
sleep75

sleep75
slp75_81

slp75_81
wage1

wage1
wage2

wage2
hprice1

hprice1
hprice2

hprice2
lawsch85

lawsch85
loanapp

loanapp
openness

openness
pension

pension
recid

recid
rental

rental
traffic2

traffic2
twoyear

twoyear