The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

PCRA: Companion to Portfolio Construction and Risk Analysis

A collection of functions and data sets that support teaching a quantitative finance MS level course on Portfolio Construction and Risk Analysis, and the writing of a textbook for such a course. The package is unique in providing several real-world data sets that may be used for problem assignments and student projects. The data sets include cross-sections of stock data from the Center for Research on Security Prices, LLC (CRSP), corresponding factor exposures data from S&P Global, and several SP500 data sets.

Version: 1.3.1
Depends: R (≥ 4.0.0)
Imports: PerformanceAnalytics, PortfolioAnalytics, boot, corpcor, data.table, lattice, methods, MASS, quadprog, RobStatTM, robustbase, R.cache, xts, zoo, devtools
Suggests: R.rsp, CVXR, dplyr, ellipse, facmodCS, fit.models, foreach, ggplot2, hitandrun, lubridate, Matrix, reshape2, RPEIF, RPESE, sandwich, tensr
Published: 2026-07-15
DOI: 10.32614/CRAN.package.PCRA
Author: Doug Martin [cre, aut], Alexios Galanos [ctb], Kirk Li [aut, ctb], Jon Spinney [ctb], Thomas Philips [ctb]
Maintainer: Doug Martin <martinrd3d at gmail.com>
License: GPL-2
Copyright: (c) 2022-2024
URL: https://github.com/robustport/PCRA
NeedsCompilation: no
CRAN checks: PCRA results

Documentation:

Reference manual: PCRA.html , PCRA.pdf
Vignettes: CRSP Stocks and SPGMI Factors in PCRA (source)
PCRA Package and Data Overview (source)
PCRA Reproducibility Code (source)

Downloads:

Package source: PCRA_1.3.1.tar.gz
Windows binaries: r-devel: PCRA_1.3.1.zip, r-release: PCRA_1.3.1.zip, r-oldrel: PCRA_1.2.1.zip
macOS binaries: r-release (arm64): PCRA_1.3.1.tgz, r-oldrel (arm64): PCRA_1.3.1.tgz, r-release (x86_64): PCRA_1.3.1.tgz, r-oldrel (x86_64): PCRA_1.3.1.tgz
Old sources: PCRA archive

Reverse dependencies:

Reverse suggests: facmodCS, PortfolioAnalytics, robustGarch

Linking:

Please use the canonical form https://CRAN.R-project.org/package=PCRA to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.