Vignettes

The book is accompanied by three vignettes that provide hands-on documentation for the PCRA R package and its data. Click any title below to view the vignette PDF.

1 Current vignettes

Vignette 1

Structure and contents of the PCRA package: the 31 included data sets, the two package versions (CRAN and development), data.table basics, the CRSP and SPGMI datasets, and the non-open-source data policy.

Vignette 2

Deep dive into stocksCRSPmonthly and factorsSPGMI: data structure, monthly, weekly and daily CRSP data, monthly SPGMI factor exposures, the selectCRSPandSPGMI function, xts time series manipulation, sector/capitalization subsetting.

Vignette 3

How to access and run the demo R scripts that reproduce most of the figures and tables in the chapters: the demo() command, copy/paste workflow, sourcing with rstudioapi, character of the scripts, and setup of devtools and Rtools.


Back to top