The official R data package for "Introductory Econometrics: A Modern Approach". A vignette contains example models from each chapter.
Implemented Github Actions for R
Fix minor spelling mistakes
marked quantmod
examples as DO NOT RUN for now, due to error on CRAN checks for Fedora Linux 36 (Workstation Edition). It was not able to download inflation and Tbill data from FRED to display an updated example.
Reduced scope of vignette, removing examples and Suggested pkgs AER
, plm
, and prais
from the wooldridge DESCRIPTION file. The wooldridge package builds & tests much quicker and cleaner as AER
& plm
in particular have grown larger dependency trees over the years. prias
also has a habit of breaking its API(see notes around release wooldridge 1.3.1), and this has happened yet again in the recent release of praise v1.1.2
, triggering wooldridge
WARNINGS on CRAN. A helpful note from Prof Brian Ripley was quick to follow, with the usual notification that wooldridge would be removed from CRAN. Given its limited use in an example, it makes sense to remove it all together to avoid future complications. After all, my time as maintainer is limited and this data package should be the easiest of my open source packages to maintain. These Vignette examples are nice, but they are given a much better treatment elsewhere and I refer readers to those sources.
Added quantmod
and xts
(very mature and stable packages) to extend a time series example with current data.
Add new data sets for the 7th addressing issues #5. These are JTRAIN98
, LABSUP
, NCAA_RPI
, and SCHOOL93_98
.
Swapped out testthat
for tinytest
for greater reliability of course. #tinyverse
Updated bibliography in vignette
Bumped R dependency up to R (>= 3.5.0)
Add LazyDataCompression: xz
to vignette, although datasets were already compressed with the xz algo
Updated vignette to reflect breaking changes to the prais package api in which the function prais.winsten became prais_winsten. Minor changes in DESCRIPTION file to content.
Also, bumped R dependency up to R (>= 3.2.0) to bring this package inline with the maximum dependency of its dependent packages (prais).
Updated vignette to add new graphs through chapter 7. Also, removed tidy = TRUE markdown chunk parameters as breaking changes appear to have been made, which now require the installation of a separate package.
Removed chapter 17 examples for now, as glm(formula, family = poisson, cata=crime1) is outputting an error which requires deeper exploration.
Update bibliography pages with current packages.
This update adds six data sets and documentation for the most recent edition of the text,
"Introductory Econometrics: A Modern Approach, 6th edition" (Wooldridge 2016,
ISBN-13: 978-1-305-27010-7). The data sets are: approval
, catholic
, census2000
, countymurders
, econmath
, meapsingle
.
Further compression of data sets by writing a function to delete unnecessary attributes attached to each data.frame. Excess attributes were assigned to each data.frame during the import from Stata .dta files. In addition, the row.names attribute was previously saved as a character type so I converted to integer, which reduced the size of each data set and the package as a whole.
Those new to econometrics and R may find themselves challenged by data
management tasks inherent to both. The wooldridge data package aims to lighten
the task by efficiently loading any data set from the text with a single command.
Collectively, all data sets have been compressed to 62.73% of their original
size. Most sets have robust documentation including page numbers on which they
are used, original data sources, original year of publication, and notes which
chronicle their history while offering ideas for further exploration and research.
To resurrect a data set, one can pass it's name to the data()
function or just
define it as the data =
argument of the model function. The data will lazily load
and, provided the syntax is correct, model estimates shall spring forth from
the otherwise lifeless abyss of your R console! If the syntax is an issue, the
wooldridge-vignette displays solutions to examples from each chapter of the
text, providing a relevant introduction to econometric modeling with R. The vignette
closes with an Appendix of recommended sources for R and econometrics. Note:
Data sets are from the 5th edition (Wooldridge 2013, ISBN-13:978-1-111-53104-1),
and are compatible with all others.
Content updates and clearer formatting.